<?php
namespace Routeria;
use Symfony\Component\HttpFoundation\Request;

class Dispatcher implements DispatcherInterface
{
	private $router;

	public function __construct(RouterInterface $router)
	{
		$this->router = $router;
	}

	public function dispatch(Request $request)
	{
		if ($this->router->route($request))
		{
			$callback = $this->router->getCallback();
			$callback($this->router);
		}
		else
		{
			throw new Exception('No route found for this path');
		}

	}
}
<?php
namespace Routeria;
use Symfony\Component\HttpFoundation\Request;

class Dispatcher implements DispatcherInterface
{
	private $router;

	public function __construct(RouterInterface $router)
	{
		$this->router = $router;
	}

	public function dispatch(Request $request)
	{
		if ($this->router->route($request))
		{
			$callback = $this->router->getCallback();
			$callback($this->router);
		}
		else
		{
			throw new \Exception('No route found for this path');
		}

	}
}
Fix class exception not found'
Fix class exception not found'
