From a96cb3a856a577baa160d84f042d3f6616f882c7 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Sun, 17 Mar 2019 16:19:41 +0100 Subject: [PATCH] use :: instead of .. code-block:: php --- components/expression_language/extending.rst | 4 +--- components/security/authorization.rst | 2 +- deployment/proxies.rst | 4 +--- workflow/usage.rst | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/components/expression_language/extending.rst b/components/expression_language/extending.rst index ec98dcdc089..f35db98254b 100644 --- a/components/expression_language/extending.rst +++ b/components/expression_language/extending.rst @@ -27,9 +27,7 @@ This method has 3 arguments: * **name** - The name of the function in an expression; * **compiler** - A function executed when compiling an expression using the function; -* **evaluator** - A function executed when the expression is evaluated. - -.. code-block:: php +* **evaluator** - A function executed when the expression is evaluated:: use Symfony\Component\ExpressionLanguage\ExpressionLanguage; diff --git a/components/security/authorization.rst b/components/security/authorization.rst index cf88ed8642e..b3893bf84a7 100644 --- a/components/security/authorization.rst +++ b/components/security/authorization.rst @@ -49,7 +49,7 @@ recognizes several strategies: ``unanimous`` only grant access if none of the voters has denied access; -.. code-block:: php +Usage of the available options in detail:: use Symfony\Component\Security\Core\Authorization\AccessDecisionManager; diff --git a/deployment/proxies.rst b/deployment/proxies.rst index 76a7debbf2b..db8f05898be 100644 --- a/deployment/proxies.rst +++ b/deployment/proxies.rst @@ -59,9 +59,7 @@ In this case, you'll need to - *very carefully* - trust *all* proxies. other than your load balancers. For AWS, this can be done with `security groups`_. #. Once you've guaranteed that traffic will only come from your trusted reverse - proxies, configure Symfony to *always* trust incoming request: - - .. code-block:: php + proxies, configure Symfony to *always* trust incoming request:: // web/app.php diff --git a/workflow/usage.rst b/workflow/usage.rst index bff4a62ad42..d9f69ffea89 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -142,7 +142,7 @@ like this: ], ]); -.. code-block:: php +As configured, the following property is used by the marking store:: class BlogPost {