W3cubDocs

/Laravel 4.2

Repository

class Repository extends NamespacedItemResolver implements ArrayAccess (View source)

Methods

array parseKey(string $key)

Parse a key into namespace, group, and item.

from NamespacedItemResolver
void setParsedKey(string $key, array $parsed)

Set the parsed value of a key.

from NamespacedItemResolver
void __construct(LoaderInterface $loader, string $environment)

Create a new configuration repository.

bool has(string $key)

Determine if the given configuration value exists.

bool hasGroup(string $key)

Determine if a configuration group exists.

mixed get(string $key, mixed $default = null)

Get the specified configuration value.

void set(string $key, mixed $value)

Set a given configuration value.

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

Register a package for cascading configuration.

void afterLoading(string $namespace, Closure $callback)

Register an after load callback for a given namespace.

void addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

array getNamespaces()

Returns all registered namespaces with the config loader.

LoaderInterface getLoader()

Get the loader implementation.

void setLoader(LoaderInterface $loader)

Set the loader implementation.

string getEnvironment()

Get the current configuration environment.

array getAfterLoadCallbacks()

Get the after load callback array.

array getItems()

Get all of the configuration items.

bool offsetExists(string $key)

Determine if the given configuration option exists.

mixed offsetGet(string $key)

Get a configuration option.

void offsetSet(string $key, mixed $value)

Set a configuration option.

void offsetUnset(string $key)

Unset a configuration option.

Details

array parseKey(string $key)

Parse a key into namespace, group, and item.

Parameters

string $key

Return Value

array

void setParsedKey(string $key, array $parsed)

Set the parsed value of a key.

Parameters

string $key
array $parsed

Return Value

void

void __construct(LoaderInterface $loader, string $environment)

Create a new configuration repository.

Parameters

LoaderInterface $loader
string $environment

Return Value

void

bool has(string $key)

Determine if the given configuration value exists.

Parameters

string $key

Return Value

bool

bool hasGroup(string $key)

Determine if a configuration group exists.

Parameters

string $key

Return Value

bool

mixed get(string $key, mixed $default = null)

Get the specified configuration value.

Parameters

string $key
mixed $default

Return Value

mixed

void set(string $key, mixed $value)

Set a given configuration value.

Parameters

string $key
mixed $value

Return Value

void

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

Register a package for cascading configuration.

Parameters

string $package
string $hint
string $namespace

Return Value

void

void afterLoading(string $namespace, Closure $callback)

Register an after load callback for a given namespace.

Parameters

string $namespace
Closure $callback

Return Value

void

void addNamespace(string $namespace, string $hint)

Add a new namespace to the loader.

Parameters

string $namespace
string $hint

Return Value

void

array getNamespaces()

Returns all registered namespaces with the config loader.

Return Value

array

LoaderInterface getLoader()

Get the loader implementation.

Return Value

LoaderInterface

void setLoader(LoaderInterface $loader)

Set the loader implementation.

Parameters

LoaderInterface $loader

Return Value

void

string getEnvironment()

Get the current configuration environment.

Return Value

string

array getAfterLoadCallbacks()

Get the after load callback array.

Return Value

array

array getItems()

Get all of the configuration items.

Return Value

array

bool offsetExists(string $key)

Determine if the given configuration option exists.

Parameters

string $key

Return Value

bool

mixed offsetGet(string $key)

Get a configuration option.

Parameters

string $key

Return Value

mixed

void offsetSet(string $key, mixed $value)

Set a configuration option.

Parameters

string $key
mixed $value

Return Value

void

void offsetUnset(string $key)

Unset a configuration option.

Parameters

string $key

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Config/Repository.html