interface ContainerAwareInterface in Service Container 7
Same name in this branch
- 7 src/DependencyInjection/ContainerAwareInterface.php \Drupal\service_container\DependencyInjection\ContainerAwareInterface
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareInterface.php \Symfony\Component\DependencyInjection\ContainerAwareInterface
Same name and namespace in other branches
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareInterface.php \Symfony\Component\DependencyInjection\ContainerAwareInterface
ContainerAwareInterface should be implemented by classes that depends on a Container.
@author Fabien Potencier <fabien@symfony.com>
@api
Hierarchy
- interface \Symfony\Component\DependencyInjection\ContainerAwareInterface
Expanded class hierarchy of ContainerAwareInterface
All classes that implement ContainerAwareInterface
2 files declare their use of ContainerAwareInterface
- ClassResolver.php in lib/
Drupal/ Core/ DependencyInjection/ ClassResolver.php - Contains \Drupal\Core\DependencyInjection\ClassResolver.
- ZfExtensionManagerSfContainer.php in lib/
Drupal/ Component/ Bridge/ ZfExtensionManagerSfContainer.php - Contains \Drupal\Component\Bridge\ZfExtensionManagerSfContainer.
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ ContainerAwareInterface.php, line 21
Namespace
Symfony\Component\DependencyInjectionView source
interface ContainerAwareInterface {
/**
* Sets the Container.
*
* @param ContainerInterface|null $container A ContainerInterface instance or null
*
* @api
*/
public function setContainer(ContainerInterface $container = null);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerAwareInterface:: |
public | function | Sets the Container. |