Skip to content

Commit 8ba6ec2

Browse files
committed
Merge branch '3.4' into 4.0
* 3.4: Fix issue #9798
2 parents fb54224 + b82199d commit 8ba6ec2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

security.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,10 +1069,10 @@ the User object, and use the ``isGranted()`` method (or
10691069

10701070
An alternative way to get the current user in a controller is to type-hint
10711071
the controller argument with
1072-
:class:`Symfony\\Component\\Security\\Core\\User\\UserInterface\\UserInterface`
1072+
:class:`Symfony\\Component\\Security\\Core\\User\\UserInterface`
10731073
(and default it to ``null`` if being logged-in is optional)::
10741074

1075-
use Symfony\Component\Security\Core\User\UserInterface\UserInterface;
1075+
use Symfony\Component\Security\Core\User\UserInterface;
10761076

10771077
public function index(UserInterface $user = null)
10781078
{

service_container/factories.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ configure the service container to use the
7070
7171
// config/services.php
7272
use App\Email\NewsletterManager;
73-
use App\NumberGenerator;
7473
use App\Email\NewsletterManagerStaticFactory;
7574
// ...
7675
77-
$container->register(NumberGenerator::class)
76+
$container->register(NewsletterManager::class)
7877
// call the static method
7978
->setFactory(array(NewsletterManagerStaticFactory::class, 'createNewsletterManager'));
8079

0 commit comments

Comments
 (0)