src/EventListener/RequestListener.php line 59

Open in your IDE?
  1. <?php
  2. namespace App\EventListener;
  3. //use PHPUnit\Util\Filesystem;
  4. use Acme\Config\Loader\YamlUserLoader;
  5. use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
  6. use Symfony\Component\Config\Loader\FileLoader;
  7. use Symfony\Component\DependencyInjection\ContainerBuilder;
  8. use Symfony\Component\DependencyInjection\ContainerInterface;
  9. use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
  10. use Symfony\Component\HttpFoundation\RedirectResponse;
  11. use Symfony\Component\HttpFoundation\Response;
  12. //use Symfony\Component\EventDispatcher\Event;
  13. use Symfony\Component\EventDispatcher\EventDispatcherInterface;
  14. use Symfony\Component\EventDispatcher\LegacyEventProxy;
  15. //use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
  16. use Symfony\Component\HttpFoundation\Session\SessionInterface;
  17. use Symfony\Component\HttpKernel\KernelInterface;
  18. use Symfony\Component\Routing\RequestContext;
  19. use Symfony\Component\HttpFoundation\RequestStack;
  20. use Symfony\Component\HttpKernel\Event\RequestEvent;
  21. use Symfony\Contracts\EventDispatcher\Event;
  22. use Symfony\Component\Security\Core\Security;
  23. use Symfony\Component\HttpFoundation\Session;
  24. use Symfony\Component\HttpKernel\Event\GetResponseEvent;
  25. use Symfony\Component\HttpKernel\HttpKernel;
  26. use Symfony\Component\Filesystem\Exception\IOExceptionInterface;
  27. use Symfony\Component\Filesystem\Filesystem;
  28. use Symfony\Component\Config\Loader\DelegatingLoader;
  29. use Symfony\Component\Config\Loader\LoaderResolver;
  30. use Symfony\Component\Config\FileLocator;
  31. use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
  32. class RequestListener
  33. {
  34. //    private $session;
  35.     private $previousRoute;
  36. //    public function __construct(ParameterBagInterface $params, Security $security, SessionInterface $session)
  37. //    {
  38. //        $this->session = $session;
  39. //    }
  40.     public function __construct(ParameterBagInterface $paramsSecurity $security)
  41.     {
  42.     }
  43.     public function onKernelRequest(RequestEvent $event)
  44.     {
  45.     }
  46.     public static function getSubscribedEvents()
  47.     {
  48.         return array(
  49.             KernelEvents::REQUEST => array(array('onKernelRequest'15)),
  50.         );
  51.     }
  52. }