PHP Class Symfony\Component\DependencyInjection\Compiler\AutowirePass

Author: Kévin Dunglas ([email protected])
Inheritance: implements Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface
Datei anzeigen Open project: symfony/symfony Class Usage Examples

Public Methods

Method Description
createResourceForClass ( ReflectionClass $reflectionClass ) : Symfony\Component\DependencyInjection\Config\AutowireServiceResource Creates a resource to help know if this service has changed.
process ( ContainerBuilder $container )

Private Methods

Method Description
addServiceToAmbiguousType ( $id, $type )
autowireMethod ( string $id, Definition $definition, ReflectionMethod $reflectionMethod ) Autowires the constructor or a setter.
completeDefinition ( string $id, Definition $definition, array $autowiredMethods ) Wires the given definition.
createAutowiredDefinition ( ReflectionClass $typeHint, string $id ) : Reference Registers a definition for the type if possible or throws an exception.
getMethodsToAutowire ( string $id, ReflectionClass $reflectionClass, array $autowiredMethods ) : ReflectionMethod[] Gets the list of methods to autowire.
getReflectionClass ( string $id, Definition $definition ) : ReflectionClass | false Retrieves the reflection class associated with the given service.
getResourceMetadataForMethod ( ReflectionMethod $method )
populateAvailableType ( string $id, Definition $definition ) Populates the list of available types for a given definition.
populateAvailableTypes ( ) Populates the list of available types.
set ( string $type, string $id ) Associates a type and a service id if applicable.

Method Details

createResourceForClass() public static method

Creates a resource to help know if this service has changed.
public static createResourceForClass ( ReflectionClass $reflectionClass ) : Symfony\Component\DependencyInjection\Config\AutowireServiceResource
$reflectionClass ReflectionClass
return Symfony\Component\DependencyInjection\Config\AutowireServiceResource

process() public method

public process ( ContainerBuilder $container )
$container Symfony\Component\DependencyInjection\ContainerBuilder