Skip to content

Commit f368f7e

Browse files
committed
Deprecat service "session"
1 parent a2cd43b commit f368f7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DependencyInjection/RegisterControllerArgumentLocatorsPass.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
use Symfony\Component\DependencyInjection\Reference;
2424
use Symfony\Component\DependencyInjection\TypedReference;
2525
use Symfony\Component\HttpFoundation\Request;
26+
use Symfony\Component\HttpFoundation\Session\SessionInterface;
2627

2728
/**
2829
* Creates the service-locators required by ServiceValueResolver.
@@ -165,7 +166,7 @@ public function process(ContainerBuilder $container)
165166
$invalidBehavior = ContainerInterface::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE;
166167
}
167168

168-
if (Request::class === $type) {
169+
if (Request::class === $type || SessionInterface::class === $type) {
169170
continue;
170171
}
171172

0 commit comments

Comments
 (0)