Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Removed App\Kernel call in RouterListener
Browse files Browse the repository at this point in the history
  • Loading branch information
divineniiquaye committed Jun 24, 2020
1 parent 19acb19 commit 6465bfc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/EventListeners/RouterListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

namespace BiuradPHP\MVC\EventListeners;

use App\Kernel;
use BiuradPHP\Events\Interfaces\EventSubscriberInterface;
use BiuradPHP\Http\Exceptions\ClientExceptions\MethodNotAllowedException;
use BiuradPHP\Http\Exceptions\ClientExceptions\NotFoundException;
Expand Down Expand Up @@ -59,11 +58,6 @@ public function onKernelRequest(RequestEvent $event, RouteCollectorInterface $ro
return;
}

if ($this->container instanceof Container && \class_exists(Kernel::class)) {
// Process Some routing settings before running annotations
$this->container->callMethod([Kernel::class, 'handleRouting']);
}

$request = $event->getRequest();

// matching a request is more powerful than matching a URL path + context, so try that first
Expand Down

0 comments on commit 6465bfc

Please sign in to comment.