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 src/DependencyInjection/ContainerAwareInterface.php \Drupal\service_container\DependencyInjection\ContainerAwareInterface
ContainerAwareInterface should be implemented by classes that depend on a Container.
Hierarchy
- interface \Drupal\service_container\DependencyInjection\ContainerAwareInterface
Expanded class hierarchy of ContainerAwareInterface
All classes that implement ContainerAwareInterface
File
- src/
DependencyInjection/ ContainerAwareInterface.php, line 17 - Contains \Drupal\service_container\DependencyInjection\ContainerAwareInterface
Namespace
Drupal\service_container\DependencyInjectionView source
interface ContainerAwareInterface {
/**
* Sets the Container associated with this service.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface|null $container
* A ContainerInterface instance or NULL to be injected in the service.
*/
public function setContainer(SymfonyContainerInterface $container = NULL);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ContainerAwareInterface:: |
public | function | Sets the Container associated with this service. | 3 |