Copied!
CloneableFinalInstantiable
Methods
public __construct(array $baseSchemas = [])
 
  • param array<string,\Schema> $baseSchemas
public addSchema(string $key, Nette\Schema\Schema $schema) : void
 

Registers a new configuration schema at the given top-level key

  • psalm-allow-private-mutation
public exists(string $key) : bool
 
  • psalm-external-mutation-free
public get(string $key)
 
  • psalm-external-mutation-free
public merge(array $config = []) : void
 
  • psalm-allow-private-mutation
public reader() : League\Config\ConfigurationInterface
 
  • psalm-mutation-free
public set(string $key, $value) : void
 
  • psalm-allow-private-mutation
Properties
private array $cache = []
 
  • var array<string,mixed>
  • psalm-allow-private-mutation
private array $configSchemas = []
 
  • var array<string,\Schema>
  • psalm-allow-private-mutation
private Dflydev\DotAccessData\Data $finalConfig
 
  • psalm-allow-private-mutation
private League\Config\ConfigurationInterface $reader
 
  • psalm-readonly
private Dflydev\DotAccessData\Data $userConfig
 
  • psalm-readonly
Methods
private build(string $topLevelKey) : void
 

Applies the schema against the configuration to return the final configuration

  • throws \ValidationException|\UnknownOptionException|\InvalidPathException
  • psalm-allow-private-mutation
private static convertStdClassesToArrays( $data)
 

Recursively converts stdClass instances to arrays

  • phpstan-template T
  • param \T $data
  • return mixed
  • phpstan-return ($data is \stdClass ? array<string, mixed> : T)
  • psalm-pure
private static getTopLevelKey(string $path) : string
 
  • throws \InvalidPathException
private invalidate() : void
 
  • psalm-external-mutation-free
private raiseAnyDeprecationNotices(array $warnings) : void
 
  • param string[] $warnings
Methods
private static convertStdClassesToArrays( $data)
 

Recursively converts stdClass instances to arrays

  • phpstan-template T
  • param \T $data
  • return mixed
  • phpstan-return ($data is \stdClass ? array<string, mixed> : T)
  • psalm-pure
private static getTopLevelKey(string $path) : string
 
  • throws \InvalidPathException
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration