Skip to content

Commit aa7e3dd

Browse files
committed
Fixed syntax errors on 5.x
1 parent 62c3584 commit aa7e3dd

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

doctrine/events.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ with the ``doctrine.event_subscriber`` tag:
454454
<service id="App\EventListener\DatabaseActivitySubscriber">
455455
<tag name="doctrine.event_subscriber" priority="500" connection="default"/>
456456
</service>
457-
458-
</service>
459457
</services>
460458
</container>
461459
@@ -475,7 +473,7 @@ with the ``doctrine.event_subscriber`` tag:
475473
// to the same event (default priority = 0; higher numbers = listener is run earlier)
476474
'priority' => 500,
477475
478-
# you can also restrict listeners to a specific Doctrine connection
476+
// you can also restrict listeners to a specific Doctrine connection
479477
'connection' => 'default',
480478
])
481479
;

rate_limiter.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ enforce different levels of service (free or paid):
178178
179179
// config/packages/rate_limiter.php
180180
$container->loadFromExtension('framework', [
181-
rate_limiter' => [
181+
'rate_limiter' => [
182182
'anonymous_api' => [
183183
// use 'sliding_window' if you prefer that policy
184184
'policy' => 'fixed_window',
@@ -401,7 +401,7 @@ Use the ``cache_pool`` option to override the cache used by a specific limiter
401401
cache-pool="cache.anonymous_rate_limiter"
402402
/>
403403
404-
<!-- ... ->
404+
<!-- ... -->
405405
</framework:rate-limiter>
406406
</framework:config>
407407
</container>
@@ -410,7 +410,7 @@ Use the ``cache_pool`` option to override the cache used by a specific limiter
410410
411411
// config/packages/rate_limiter.php
412412
$container->loadFromExtension('framework', [
413-
rate_limiter' => [
413+
'rate_limiter' => [
414414
'anonymous_api' => [
415415
// ...
416416
@@ -484,7 +484,7 @@ you can use a specific :ref:`named lock <lock-named-locks>` via the
484484
485485
// config/packages/rate_limiter.php
486486
$container->loadFromExtension('framework', [
487-
rate_limiter' => [
487+
'rate_limiter' => [
488488
'anonymous_api' => [
489489
// ...
490490

security.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ and set the ``limiter`` option to its service ID:
712712
'firewalls' => [
713713
'main' => [
714714
// use a custom rate limiter via its service ID
715-
'login_throttling' =>
715+
'login_throttling' => [
716716
'limiter' => 'app.login_rate_limiter',
717717
],
718718
],

0 commit comments

Comments
 (0)