function LoggerChannelFactory::setContainer

Sets the service container.

Deprecated

in drupal:10.3.0 and is removed from drupal:11.0.0. Use dependency injection instead.

See also

https://www.drupal.org/node/3416354

File

core/lib/Drupal/Core/Logger/LoggerChannelFactory.php, line 108

Class

LoggerChannelFactory
Defines a factory for logging channels.

Namespace

Drupal\Core\Logger

Code

public function setContainer() {
    @trigger_error('Calling ' . __METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use dependency injection instead. See https://www.drupal.org/node/3416354', E_USER_DEPRECATED);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.