Skip to content

Commit d0583bc

Browse files
committed
minor #16114 [Logger] Change $requestStack to $this->requestStack (HVSoftware)
This PR was merged into the 5.3 branch. Discussion ---------- [Logger] Change $requestStack to $this->requestStack Within the __invoke() method a call was made to $requestStack. This update will use the private $requestStack property as defined in the SessionRequestProcessor class. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 29a024a Change $requestStack to $this->requestStack
2 parents 8c70d45 + 29a024a commit d0583bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logging/processors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ using a processor::
3535
public function __invoke(array $record)
3636
{
3737
try {
38-
$session = $requestStack->getSession();
38+
$session = $this->requestStack->getSession();
3939
} catch (SessionNotFoundException $e) {
4040
return;
4141
}

0 commit comments

Comments
 (0)