1 | <?php |
||
16 | class DispatcherPlugin extends PluginAbstract |
||
17 | { |
||
18 | /** |
||
19 | * @var BenchmarkInterface |
||
20 | */ |
||
21 | protected $benchmarkDispatch; |
||
22 | |||
23 | /** |
||
24 | * @var BenchmarkInterface |
||
25 | */ |
||
26 | protected $benchmarkRoute; |
||
27 | |||
28 | /** |
||
29 | * Start dispatch loop benchmark |
||
30 | * |
||
31 | * @param Event $event |
||
32 | */ |
||
33 | 1 | public function beforeDispatchLoop(Event $event) |
|
38 | |||
39 | /** |
||
40 | * Stop dispatch loop benchmark |
||
41 | */ |
||
42 | 1 | public function afterDispatchLoop() |
|
46 | |||
47 | /** |
||
48 | * Start execute route benchmark |
||
49 | * |
||
50 | * @param Event $event |
||
51 | * @param DispatcherInterface $dispatcher |
||
52 | */ |
||
53 | 1 | public function beforeExecuteRoute(Event $event, DispatcherInterface $dispatcher) |
|
65 | |||
66 | /** |
||
67 | * Stop dispatch loop benchmark |
||
68 | */ |
||
69 | 1 | public function afterExecuteRoute() |
|
73 | } |
||
74 |