File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ an **event bus**. The event bus could have zero or more subscribers.
3434 middleware :
3535 - validation
3636 event.bus :
37+ # the 'allow_no_handlers' middleware allows to have no handler
38+ # configured for this bus without throwing an exception
3739 default_middleware : allow_no_handlers
3840 middleware :
3941 - validation
@@ -60,6 +62,8 @@ an **event bus**. The event bus could have zero or more subscribers.
6062 <framework : bus name =" query.bus" >
6163 <framework : middleware id =" validation" />
6264 </framework : bus >
65+ <!-- the 'allow_no_handlers' middleware allows to have no handler
66+ configured for this bus without throwing an exception -->
6367 <framework : bus name =" event.bus" default-middleware =" allow_no_handlers" >
6468 <framework : middleware id =" validation" />
6569 </framework : bus >
@@ -87,6 +91,8 @@ an **event bus**. The event bus could have zero or more subscribers.
8791 ],
8892 ],
8993 'event.bus' => [
94+ // the 'allow_no_handlers' middleware allows to have no handler
95+ // configured for this bus without throwing an exception
9096 'default_middleware' => 'allow_no_handlers',
9197 'middleware' => [
9298 'validation',
You can’t perform that action at this time.
0 commit comments