package and depencies
This commit is contained in:
@@ -23,9 +23,6 @@ use Symfony\Component\HttpKernel\KernelEvents;
|
||||
*/
|
||||
class TraceableEventDispatcher extends BaseTraceableEventDispatcher
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function beforeDispatch(string $eventName, object $event)
|
||||
{
|
||||
switch ($eventName) {
|
||||
@@ -52,15 +49,12 @@ class TraceableEventDispatcher extends BaseTraceableEventDispatcher
|
||||
// which must be caught.
|
||||
try {
|
||||
$this->stopwatch->openSection($sectionId);
|
||||
} catch (\LogicException $e) {
|
||||
} catch (\LogicException) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function afterDispatch(string $eventName, object $event)
|
||||
{
|
||||
switch ($eventName) {
|
||||
@@ -83,7 +77,7 @@ class TraceableEventDispatcher extends BaseTraceableEventDispatcher
|
||||
}
|
||||
try {
|
||||
$this->stopwatch->stopSection($sectionId);
|
||||
} catch (\LogicException $e) {
|
||||
} catch (\LogicException) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user