PHP Class ProjectServiceContainer

This class has been auto-generated by the Symfony Dependency Injection Component.
Inheritance: extends Symfony\Component\DependencyInjection\Container
Mostra file Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
compile ( )
getParameter ( $name )
getParameterBag ( )
hasParameter ( $name )
isFrozen ( )
setParameter ( $name, $value )

Protected Methods

Method Description
getDefaultParameters ( ) : array Gets the default parameters.
getFooService ( ) : Foo Gets the 'foo' service.
getServiceFromAnonymousFactoryService ( ) : Bar\FooClass Gets the 'service_from_anonymous_factory' service.
getServiceWithMethodCallAndFactoryService ( ) : Bar\FooClass Gets the 'service_with_method_call_and_factory' service.

Private Methods

Method Description
getDynamicParameter ( $name ) : mixed Computes a dynamic parameter.

Method Details

__construct() public method

Constructor.
public __construct ( )

compile() public method

public compile ( )

getDefaultParameters() protected method

Gets the default parameters.
protected getDefaultParameters ( ) : array
return array An array of the default parameters

getFooService() protected method

This service is autowired.
protected getFooService ( ) : Foo
return Foo A Foo instance

getParameter() public method

public getParameter ( $name )

getParameterBag() public method

public getParameterBag ( )

getServiceFromAnonymousFactoryService() protected method

This service is shared. This method always returns the same instance of the service.
protected getServiceFromAnonymousFactoryService ( ) : Bar\FooClass
return Bar\FooClass A Bar\FooClass instance

getServiceWithMethodCallAndFactoryService() protected method

This service is shared. This method always returns the same instance of the service.
protected getServiceWithMethodCallAndFactoryService ( ) : Bar\FooClass
return Bar\FooClass A Bar\FooClass instance

hasParameter() public method

public hasParameter ( $name )

isFrozen() public method

public isFrozen ( )

setParameter() public method

public setParameter ( $name, $value )