X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fsymfony%2Fhttp-kernel%2FDebug%2FTraceableEventDispatcher.php;h=ddf4fa7cecf0546950064de98f12d9dad05aebd9;hb=1c1cb0980bfa6caf0c24cce671b6bb541dc87583;hp=eb1d8a8e97ce4a99af95629dfa861e043a3098b7;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/symfony/http-kernel/Debug/TraceableEventDispatcher.php b/vendor/symfony/http-kernel/Debug/TraceableEventDispatcher.php index eb1d8a8e9..ddf4fa7ce 100644 --- a/vendor/symfony/http-kernel/Debug/TraceableEventDispatcher.php +++ b/vendor/symfony/http-kernel/Debug/TraceableEventDispatcher.php @@ -12,9 +12,8 @@ namespace Symfony\Component\HttpKernel\Debug; use Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher as BaseTraceableEventDispatcher; -use Symfony\Component\HttpKernel\Profiler\Profiler; -use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\EventDispatcher\Event; +use Symfony\Component\HttpKernel\KernelEvents; /** * Collects some data about event listeners. @@ -25,22 +24,6 @@ use Symfony\Component\EventDispatcher\Event; */ class TraceableEventDispatcher extends BaseTraceableEventDispatcher { - /** - * Sets the profiler. - * - * The traceable event dispatcher does not use the profiler anymore. - * The job is now done directly by the Profiler listener and the - * data collectors themselves. - * - * @param Profiler|null $profiler A Profiler instance - * - * @deprecated since version 2.4, to be removed in 3.0. - */ - public function setProfiler(Profiler $profiler = null) - { - @trigger_error('The '.__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0.', E_USER_DEPRECATED); - } - /** * {@inheritdoc} */ @@ -78,7 +61,7 @@ class TraceableEventDispatcher extends BaseTraceableEventDispatcher protected function postDispatch($eventName, Event $event) { switch ($eventName) { - case KernelEvents::CONTROLLER: + case KernelEvents::CONTROLLER_ARGUMENTS: $this->stopwatch->start('controller', 'section'); break; case KernelEvents::RESPONSE: