Skip to content

Fixed syntax errors in 5.x #15268

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

Merged
merged 1 commit into from
Apr 21, 2021
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