|
5 | 5 | ======== |
6 | 6 |
|
7 | 7 | Symfony's security system is incredibly powerful, but it can also be confusing |
8 | | -tosetup. In this chapter, you'll learn how tosetup your application's security |
| 8 | +toset up. In this chapter, you'll learn how toset up your application's security |
9 | 9 | step-by-step, from configuring your firewall and how you load users to denying |
10 | 10 | access and fetching the User object. Depending on what you need, sometimes |
11 | 11 | the initial setup can be tough. But once it's done, Symfony's security system |
@@ -300,7 +300,7 @@ provider, but it's better to think of it as an "in configuration" provider: |
300 | 300 | memory: |
301 | 301 | users: |
302 | 302 | ryan: |
303 | | -password:ryanpass, |
| 303 | +password:ryanpass |
304 | 304 | roles:'ROLE_USER' |
305 | 305 | admin: |
306 | 306 | password:kitten |
@@ -808,9 +808,6 @@ You can easily deny access from inside a controller:: |
808 | 808 | The ``security.authorization_checker`` service was introduced in Symfony 2.6. Prior |
809 | 809 | to Symfony 2.6, you had to use the ``isGranted()`` method of the ``security.context`` service. |
810 | 810 |
|
811 | | -..versionadded::2.5 |
812 | | - The ``createAccessDeniedException`` method was introduced in Symfony 2.5. |
813 | | - |
814 | 811 | The:method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException` |
815 | 812 | method creates a special:class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException` |
816 | 813 | object, which ultimately triggers a 403 HTTP response inside Symfony. |
@@ -925,9 +922,6 @@ special attributes like this: |
925 | 922 |
|
926 | 923 | .. _book-security-template-expression: |
927 | 924 |
|
928 | | -..versionadded::2.4 |
929 | | - The ``expression`` functionality was introduced in Symfony 2.4. |
930 | | - |
931 | 925 | You can also use expressions inside your templates: |
932 | 926 |
|
933 | 927 | ..configuration-block:: |
@@ -1304,11 +1298,6 @@ cookie will be ever created by Symfony): |
1304 | 1298 | Checking for Known Security Vulnerabilities in Dependencies |
1305 | 1299 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
1306 | 1300 |
|
1307 | | -..versionadded::2.5 |
1308 | | - The ``security:check`` command was introduced in Symfony 2.5. This command is |
1309 | | - included in ``SensioDistributionBundle``, which has to be registered in your |
1310 | | - application in order to use this command. |
1311 | | - |
1312 | 1301 | When using lots of dependencies in your Symfony projects, some of them may |
1313 | 1302 | contain security vulnerabilities. That's why Symfony includes a command called |
1314 | 1303 | ``security:check`` that checks your ``composer.lock`` file to find any known |
|