Skip to content
Merged
Show file tree
Hide file tree
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 doctrine/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,6 @@ with the ``doctrine.event_subscriber`` tag:
<service id="App\EventListener\DatabaseActivitySubscriber">
<tag name="doctrine.event_subscriber" priority="500" connection="default"/>
</service>

</service>
</services>
</container>

Expand All @@ -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',
])
;
Expand Down
8 changes: 4 additions & 4 deletions rate_limiter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -401,7 +401,7 @@ Use the ``cache_pool`` option to override the cache used by a specific limiter
cache-pool="cache.anonymous_rate_limiter"
/>

<!-- ... ->
<!-- ... -->
</framework:rate-limiter>
</framework:config>
</container>
Expand All @@ -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' => [
// ...

Expand Down Expand Up @@ -484,7 +484,7 @@ you can use a specific :ref:`named lock <lock-named-locks>` via the

// config/packages/rate_limiter.php
$container->loadFromExtension('framework', [
rate_limiter' => [
'rate_limiter' => [
'anonymous_api' => [
// ...

Expand Down
2 changes: 1 addition & 1 deletion security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
],
Expand Down