You are here

public function LoggerChannel::setRequestStack in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/Logger/LoggerChannel.php \Drupal\service_container\Logger\LoggerChannel::setRequestStack()

Sets the request stack.

Parameters

\Symfony\Component\HttpFoundation\RequestStack|null $requestStack: The current request object.

Overrides LoggerChannelInterface::setRequestStack

File

src/Logger/LoggerChannel.php, line 103
Contains \Drupal\service_container\Logger\LoggerChannel.

Class

LoggerChannel
Defines a logger channel that most implementations will use.

Namespace

Drupal\service_container\Logger

Code

public function setRequestStack(RequestStack $requestStack = NULL) {
  $this->requestStack = $requestStack;
}