Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. 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;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal