ParameterBag::all()

array all() Returns the parameters. Return Value array An array of parameters

ParameterBag::all()

array all() Gets the service container parameters. Return Value array An array of parameters

ParameterBag::add()

add(array $parameters = array()) Adds parameters. Parameters array $parameters An array of parameters

ParameterBag::add()

add(array $parameters) Adds parameters to the service container parameters. Parameters array $parameters An array of parameters

ParameterBag

class ParameterBag implements IteratorAggregate, Countable ParameterBag is a container for key/value pairs. Methods __construct(array $parameters = array()) Constructor. array all() Returns the parameters. array keys() Returns the parameter keys. replace(array $parameters = array()) Replaces the current parameters by a new set. add(array $parameters = array()) Adds parameters. mixed get(string $key, mixed $default = null) Returns a parameter by name. set(str

ParameterBag

class ParameterBag implements ParameterBagInterface Holds parameters. Methods __construct(array $parameters = array()) clear() Clears all parameters. add(array $parameters) Adds parameters to the service container parameters. array all() Gets the service container parameters. mixed get(string $name) Gets a service container parameter. set(string $name, mixed $value) Sets a service container parameter. bool has(string $name) Returns true if a parameter name

Parameter

class Parameter Parameter represents a parameter reference. Methods __construct(string $id) string __toString() Details __construct(string $id) Parameters string $id The parameter key string __toString() Return Value string The parameter key

Packages::setDefaultPackage()

setDefaultPackage(PackageInterface $defaultPackage) Sets the default package. Parameters PackageInterface $defaultPackage The default package

Packages::getVersion()

string getVersion(string $path, string $packageName = null) Gets the version to add to public URL. Parameters string $path A public path string $packageName A package name Return Value string The current version

Packages::getUrl()

string getUrl(string $path, string $packageName = null) Returns the public path. Absolute paths (i.e. http://...) are returned unmodified. Parameters string $path A public path string $packageName The name of the asset package to use Return Value string A public path which takes into account the base path and URL path