public function onCommandStart(ConsoleCommandEvent $event)
 {
     $command = $event->getCommand();
     if (!in_array($command->getName(), $this->listenedCommands)) {
         return;
     }
     $commandSlug = preg_replace('/[^a-zA-Z0-9_.]/', '', $command->getName());
     $this->watcher->start($commandSlug);
 }
 public function onRequestStart(GetResponseEvent $event)
 {
     $route = $event->getRequest()->attributes->get('_route');
     if ('_' === substr($route, 0, 1)) {
         // symfony system routes
         return;
     }
     $requestUriSlug = preg_replace('/[^a-zA-Z0-9_.]/', '', $route);
     $this->watcher->start($requestUriSlug);
 }