PHP Class ProjectServiceContainer

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

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode Description
getDynamicParameter ( $name ) : mixed Computes a dynamic parameter.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

compile() public méthode

public compile ( )

getDefaultParameters() protected méthode

Gets the default parameters.
protected getDefaultParameters ( ) : array
Résultat array An array of the default parameters

getFooService() protected méthode

This service is autowired.
protected getFooService ( ) : Foo
Résultat Foo A Foo instance

getParameter() public méthode

public getParameter ( $name )

getParameterBag() public méthode

public getParameterBag ( )

getServiceFromAnonymousFactoryService() protected méthode

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

getServiceWithMethodCallAndFactoryService() protected méthode

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

hasParameter() public méthode

public hasParameter ( $name )

isFrozen() public méthode

public isFrozen ( )

setParameter() public méthode

public setParameter ( $name, $value )