8000 Use :: instead of .. code-block: php by OskarStark · Pull Request #11123 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Use :: instead of .. code-block: php #11123

< 8000 div class="d-flex flex-order-2 flex-md-order-1 mx-2">
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions best_practices/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ For controlling access on a controller-by-controller basis, use the ``@Security`
annotation whenever possible. Placing it above each action makes it consistent and readable.

In our application, you need the ``ROLE_ADMIN`` in order to create a new post.
Using ``@Security``, this looks like:

.. code-block:: php
Using ``@Security``, this looks like::

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
use Symfony\Component\Routing\Annotation\Route;
Expand Down
0