File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ If the above options don't fit your needs you can configure any service implemen
215
215
security :
216
216
firewalls :
217
217
secured_area :
218
- request_matcher : app.firewall.secured_area.request_matcher
218
+ request_matcher : App\Security\CustomRequestMatcher
219
219
# ...
220
220
221
221
.. code-block :: xml
@@ -232,7 +232,7 @@ If the above options don't fit your needs you can configure any service implemen
232
232
233
233
<config >
234
234
<!-- ... -->
235
- <firewall name =" secured_area" request-matcher =" app.firewall.secured_area.request_matcher " >
235
+ <firewall name =" secured_area" request-matcher =" App\Security\CustomRequestMatcher " >
236
236
<!-- ... -->
237
237
</firewall >
238
238
</config >
@@ -241,13 +241,14 @@ If the above options don't fit your needs you can configure any service implemen
241
241
.. code-block :: php
242
242
243
243
// config/packages/security.php
244
+ use App\Security\CustomRequestMatcher;
244
245
use Symfony\Config\SecurityConfig;
245
246
246
247
return static function (SecurityConfig $security) {
247
248
// ....
248
249
249
250
$security->firewall('secured_area')
250
- ->requestMatcher('app.firewall.secured_area.request_matcher' )
251
+ ->requestMatcher(CustomRequestMatcher::class )
251
252
// ...
252
253
;
253
254
};
Original file line number Diff line number Diff line change @@ -368,7 +368,6 @@ order:
368
368
* ``workflow.[workflow name].completed ``
369
369
* ``workflow.[workflow name].completed.[transition name] ``
370
370
371
-
372
371
``workflow.announce ``
373
372
Triggered for each transition that now is accessible for the subject.
374
373
@@ -378,7 +377,12 @@ order:
378
377
* ``workflow.[workflow name].announce ``
379
378
* ``workflow.[workflow name].announce.[transition name] ``
380
379
381
- You can avoid triggering those events by using the context::
380
+ After a transition is applied, the announce event tests for all available
381
+ transitions. That will trigger all :ref: `guard events <workflow-usage-guard-events >`
382
+ once more, which could impact performance if they include intensive CPU or
383
+ database workloads.
384
+
385
+ If you don't need the announce event, disable it using the context::
382
386
383
387
$workflow->apply($subject, $transitionName, [Workflow::DISABLE_ANNOUNCE_EVENT => true]);
384
388
@@ -494,6 +498,8 @@ missing a title::
494
498
}
495
499
}
496
500
501
+ .. _workflow-chosing-events-to-dispatch :
502
+
497
503
Choosing which Events to Dispatch
498
504
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
499
505
You can’t perform that action at this time.
0 commit comments