public function ContainerInterface::set in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dependency-injection/ContainerInterface.php \Symfony\Component\DependencyInjection\ContainerInterface::set()
Sets a service.
Parameters
string $id The service identifier:
object $service The service instance:
string $scope The scope of the service:
3 methods override ContainerInterface::set()
- Container::set in vendor/
symfony/ dependency-injection/ Container.php - Sets a service.
- Container::set in core/
lib/ Drupal/ Component/ DependencyInjection/ Container.php - Sets a service.
- ContainerBuilder::set in vendor/
symfony/ dependency-injection/ ContainerBuilder.php - Sets a service.
File
- vendor/
symfony/ dependency-injection/ ContainerInterface.php, line 39
Class
- ContainerInterface
- ContainerInterface is the interface implemented by service container classes.
Namespace
Symfony\Component\DependencyInjectionCode
public function set($id, $service, $scope = self::SCOPE_CONTAINER);