From aa7e3dde80f058c31d0abef0957582e5ea06e35f Mon Sep 17 00:00:00 2001 From: Nyholm Date: Wed, 21 Apr 2021 11:43:34 +0200 Subject: [PATCH] Fixed syntax errors on 5.x --- doctrine/events.rst | 4 +--- rate_limiter.rst | 8 ++++---- security.rst | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/doctrine/events.rst b/doctrine/events.rst index d130ce210e3..abe574a1867 100644 --- a/doctrine/events.rst +++ b/doctrine/events.rst @@ -454,8 +454,6 @@ with the ``doctrine.event_subscriber`` tag: - - @@ -475,7 +473,7 @@ with the ``doctrine.event_subscriber`` tag: // to the same event (default priority = 0; higher numbers = listener is run earlier) 'priority' => 500, - # you can also restrict listeners to a specific Doctrine connection + // you can also restrict listeners to a specific Doctrine connection 'connection' => 'default', ]) ; diff --git a/rate_limiter.rst b/rate_limiter.rst index c95b96161a4..2ab832d7031 100644 --- a/rate_limiter.rst +++ b/rate_limiter.rst @@ -178,7 +178,7 @@ enforce different levels of service (free or paid): // config/packages/rate_limiter.php $container->loadFromExtension('framework', [ - rate_limiter' => [ + 'rate_limiter' => [ 'anonymous_api' => [ // use 'sliding_window' if you prefer that policy 'policy' => 'fixed_window', @@ -401,7 +401,7 @@ Use the ``cache_pool`` option to override the cache used by a specific limiter cache-pool="cache.anonymous_rate_limiter" /> - @@ -410,7 +410,7 @@ Use the ``cache_pool`` option to override the cache used by a specific limiter // config/packages/rate_limiter.php $container->loadFromExtension('framework', [ - rate_limiter' => [ + 'rate_limiter' => [ 'anonymous_api' => [ // ... @@ -484,7 +484,7 @@ you can use a specific :ref:`named lock ` via the // config/packages/rate_limiter.php $container->loadFromExtension('framework', [ - rate_limiter' => [ + 'rate_limiter' => [ 'anonymous_api' => [ // ... diff --git a/security.rst b/security.rst index 1bf3cf2408e..e2a355a0217 100644 --- a/security.rst +++ b/security.rst @@ -712,7 +712,7 @@ and set the ``limiter`` option to its service ID: 'firewalls' => [ 'main' => [ // use a custom rate limiter via its service ID - 'login_throttling' => + 'login_throttling' => [ 'limiter' => 'app.login_rate_limiter', ], ],