public function ContainerAwareInterface::setContainer in Service Container 7.2
Same name in this branch
- 7.2 src/DependencyInjection/ContainerAwareInterface.php \Drupal\service_container\DependencyInjection\ContainerAwareInterface::setContainer()
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/ContainerAwareInterface.php \Symfony\Component\DependencyInjection\ContainerAwareInterface::setContainer()
Same name and namespace in other branches
- 7 src/DependencyInjection/ContainerAwareInterface.php \Drupal\service_container\DependencyInjection\ContainerAwareInterface::setContainer()
Sets the Container associated with this service.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface|null $container: A ContainerInterface instance or NULL to be injected in the service.
1 method overrides ContainerAwareInterface::setContainer()
- ContainerAware::setContainer in src/
DependencyInjection/ ContainerAware.php - Sets the Container associated with this service.
File
- src/
DependencyInjection/ ContainerAwareInterface.php, line 25 - Contains \Drupal\service_container\DependencyInjection\ContainerAwareInterface
Class
- ContainerAwareInterface
- ContainerAwareInterface should be implemented by classes that depend on a Container.
Namespace
Drupal\service_container\DependencyInjectionCode
public function setContainer(SymfonyContainerInterface $container = NULL);