class Repository extends Repository (View source)

Properties

protected SaverInterface $saver
protected LoaderInterface $loader

Methods

__construct(LoaderInterface $loader, SaverInterface $saver, $environment)

Create a new configuration repository.

clear(string $key)

Clear specific key.

bool
save($key, $value)

Save a key.

package(string $package, string $hint = null, string $namespace = null)

Register a package for cascading configuration.

getPackageNamespace($package, $namespace)

No description

clearCache()

No description

clearNamespace($namespace)

No description

getSaver()

No description

setSaver(SaverInterface $saver)

Set the saver instance.

parsePackageSegments($key, $namespace, $item)

No description

Details

__construct(LoaderInterface $loader, SaverInterface $saver, $environment)

Create a new configuration repository.

Parameters

LoaderInterface $loader
SaverInterface $saver
$environment

clear(string $key)

Clear specific key.

Parameters

string $key

bool save($key, $value)

Save a key.

Parameters

$key
$value

Return Value

bool

package(string $package, string $hint = null, string $namespace = null)

Register a package for cascading configuration.

Parameters

string $package
string $hint
string $namespace

protected getPackageNamespace($package, $namespace)

No description

Parameters

$package
$namespace

clearCache()

No description

clearNamespace($namespace)

No description

Parameters

$namespace

SaverInterface getSaver()

No description

Return Value

SaverInterface

setSaver(SaverInterface $saver)

Set the saver instance.

Parameters

SaverInterface $saver

protected parsePackageSegments($key, $namespace, $item)

No description

Parameters

$key
$namespace
$item