PHP Interface Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface

Author: Fabien Potencier ([email protected])
Datei anzeigen Open project: pmjones/php-framework-benchmarks Interface Usage Examples

Public Methods

Method Description
add ( array $parameters ) Adds parameters to the service container parameters.
all ( ) : array Gets the service container parameters.
clear ( ) Clears all parameters.
get ( string $name ) : mixed Gets a service container parameter.
has ( string $name ) : boolean Returns true if a parameter name is defined.
resolve ( ) Replaces parameter placeholders (%name%) by their values for all parameters.
resolveValue ( mixed $value ) Replaces parameter placeholders (%name%) by their values.
set ( string $name, mixed $value ) Sets a service container parameter.

Method Details

add() public method

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

all() public method

Gets the service container parameters.
public all ( ) : array
return array An array of parameters

clear() public method

Clears all parameters.
public clear ( )

get() public method

Gets a service container parameter.
public get ( string $name ) : mixed
$name string The parameter name
return mixed The parameter value

has() public method

Returns true if a parameter name is defined.
public has ( string $name ) : boolean
$name string The parameter name
return boolean true if the parameter name is defined, false otherwise

resolve() public method

Replaces parameter placeholders (%name%) by their values for all parameters.
public resolve ( )

resolveValue() public method

Replaces parameter placeholders (%name%) by their values.
public resolveValue ( mixed $value )
$value mixed A value

set() public method

Sets a service container parameter.
public set ( string $name, mixed $value )
$name string The parameter name
$value mixed The parameter value