@@ -598,12 +598,12 @@ Fetching the Firewall Configuration for a Request
598
598
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
599
599
600
600
If you need to get the configuration of the firewall that matched a given request,
601
- use the :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ` service::
601
+ use the :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security ` service::
602
602
603
603
// src/Service/ExampleService.php
604
604
// ...
605
605
606
- use Symfony\Bundle\SecurityBundle\Security\Security ;
606
+ use Symfony\Bundle\SecurityBundle\Security;
607
607
use Symfony\Component\HttpFoundation\RequestStack;
608
608
609
609
class ExampleService
@@ -1609,23 +1609,23 @@ Login Programmatically
1609
1609
1610
1610
.. versionadded :: 6.2
1611
1611
1612
- The :class: `Symfony\B undle\S ecurityBundle\S ecurity\S ecurity <Symfony\\ Bundle\\ SecurityBundle\\ Security \\ Security> `
1612
+ The :class: `Symfony\B undle\S ecurityBundle\S ecurity <Symfony\\ Bundle\\ SecurityBundle\\ Security> `
1613
1613
class was introduced in Symfony 6.2. Prior to 6.2, it was called
1614
1614
``Symfony\Component\Security\Core\Security ``.
1615
1615
1616
1616
.. versionadded :: 6.2
1617
1617
1618
- The :method: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ::login `
1618
+ The :method: `Symfony\\ Bundle\\ SecurityBundle\\ Security::login `
1619
1619
method was introduced in Symfony 6.2.
1620
1620
1621
1621
You can log in a user programmatically using the `login() ` method of the
1622
- :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ` helper::
1622
+ :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security ` helper::
1623
1623
1624
1624
// src/Controller/SecurityController.php
1625
1625
namespace App\Controller\SecurityController;
1626
1626
1627
1627
use App\Security\Authenticator\ExampleAuthenticator;
1628
- use Symfony\Bundle\SecurityBundle\Security\Security ;
1628
+ use Symfony\Bundle\SecurityBundle\Security;
1629
1629
1630
1630
class SecurityController
1631
1631
{
@@ -1779,22 +1779,22 @@ Logout programmatically
1779
1779
1780
1780
.. versionadded :: 6.2
1781
1781
1782
- The :class: `Symfony\B undle\S ecurityBundle\S ecurity\S ecurity <Symfony\\ Bundle\\ SecurityBundle\\ Security \\ Security> `
1782
+ The :class: `Symfony\B undle\S ecurityBundle\S ecurity <Symfony\\ Bundle\\ SecurityBundle\\ Security> `
1783
1783
class was introduced in Symfony 6.2. Prior to 6.2, it was called
1784
1784
``Symfony\Component\Security\Core\Security ``.
1785
1785
1786
1786
.. versionadded :: 6.2
1787
1787
1788
- The :method: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ::logout `
1788
+ The :method: `Symfony\\ Bundle\\ SecurityBundle\\ Security::logout `
1789
1789
method was introduced in Symfony 6.2.
1790
1790
1791
1791
You can logout user programmatically using the ``logout() `` method of the
1792
- :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ` helper::
1792
+ :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security ` helper::
1793
1793
1794
1794
// src/Controller/SecurityController.php
1795
1795
namespace App\Controller\SecurityController;
1796
1796
1797
- use Symfony\Bundle\SecurityBundle\Security\Security ;
1797
+ use Symfony\Bundle\SecurityBundle\Security;
1798
1798
1799
1799
class SecurityController
1800
1800
{
@@ -1896,12 +1896,12 @@ Fetching the User from a Service
1896
1896
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1897
1897
1898
1898
If you need to get the logged in user from a service, use the
1899
- :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ` service::
1899
+ :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security ` service::
1900
1900
1901
1901
// src/Service/ExampleService.php
1902
1902
// ...
1903
1903
1904
- use Symfony\Bundle\SecurityBundle\Security\Security ;
1904
+ use Symfony\Bundle\SecurityBundle\Security;
1905
1905
1906
1906
class ExampleService
1907
1907
{
@@ -1925,7 +1925,7 @@ If you need to get the logged in user from a service, use the
1925
1925
1926
1926
.. versionadded :: 6.2
1927
1927
1928
- The :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security\\ Security ` class
1928
+ The :class: `Symfony\\ Bundle\\ SecurityBundle\\ Security ` class
1929
1929
was introduced in Symfony 6.2. In previous Symfony versions this class was
1930
1930
defined in ``Symfony\Component\Security\Core\Security ``.
1931
1931
@@ -2333,7 +2333,7 @@ want to include extra details only for users that have a ``ROLE_SALES_ADMIN`` ro
2333
2333
2334
2334
// ...
2335
2335
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
2336
- + use Symfony\Bundle\SecurityBundle\Security\Security ;
2336
+ + use Symfony\Bundle\SecurityBundle\Security;
2337
2337
2338
2338
class SalesReportManager
2339
2339
{
0 commit comments