@@ -22,7 +22,7 @@ |
||
| 22 | 22 | ->getEventManager() |
| 23 | 23 | ->on( |
| 24 | 24 | $eventName, |
| 25 | - function () use ($handler) { |
|
| 25 | + function() use ($handler) { |
|
| 26 | 26 | $proc = new Proc($handler); |
| 27 | 27 | $proc->exec(); |
| 28 | 28 | } |
@@ -3,18 +3,18 @@ |
||
| 3 | 3 | return [ |
| 4 | 4 | 'Controller' => [ |
| 5 | 5 | '*.*' => [ |
| 6 | - 'before' => function () { |
|
| 6 | + 'before' => function() { |
|
| 7 | 7 | echo '<p>before all!</p>'; |
| 8 | 8 | }, |
| 9 | - 'after' => function () { |
|
| 9 | + 'after' => function() { |
|
| 10 | 10 | echo '<p>after all!</p>'; |
| 11 | 11 | } |
| 12 | 12 | ], |
| 13 | 13 | 'Test.event' => [ |
| 14 | - 'before' => function () { |
|
| 14 | + 'before' => function() { |
|
| 15 | 15 | echo '<p>before Hook!</p>'; |
| 16 | 16 | }, |
| 17 | - 'after' => function () { |
|
| 17 | + 'after' => function() { |
|
| 18 | 18 | echo '<p>after Hook!</p>'; |
| 19 | 19 | } |
| 20 | 20 | ] |