public Container::set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER)
File
core/lib/Drupal/Component/DependencyInjection/Container.php, line 364
Class
Container Provides a container optimized for Drupal's needs.
Namespace
Drupal\Component\DependencyInjection
Code
public function set($id, $service, $scope = ContainerInterface::SCOPE_CONTAINER) {
if (!in_array($scope, array('container', 'request')) || ('request' === $scope && 'request' !== $id)) {
@trigger_erro