Skip to main content
Drupal API
Menu
User account menu
Log in
Breadcrumb
Drupal Core 11.1.x
ContainerInterface.php
function ContainerInterface::set
2 methods override
ContainerInterface::set()
Container::set
in core/
lib/
Drupal/
Component/
DependencyInjection/
Container.php
Container::set
in vendor/
symfony/
dependency-injection/
Container.php
Sets a service.
File
vendor/
symfony/
dependency-injection/
ContainerInterface.php
, line 33
Class
ContainerInterface
ContainerInterface is the interface implemented by service container classes.
Namespace
Symfony\Component\DependencyInjection
Code
public
function
set
(string
$id
, ?object
$service
) : void;
RSS feed