<?php
namespace Gt\WebEngine\Dispatch;

use Gt\Http\Request;

class DispatcherFactory {
	public static function create(Request $request):Dispatcher {
		$dispatcher = new Dispatcher();
	}
}
<?php
namespace Gt\WebEngine\Dispatch;

use Gt\WebEngine\Route\Router;

class DispatcherFactory {
	public static function create(Router $router):Dispatcher {
		$dispatcher = new Dispatcher();
		return $dispatcher;
	}
}
Change signature to accept Router object
Change signature to accept Router object
