corso https://vola.udemy.com/course/php-mvc-from-scratch/learn/lecture/40931984#overview
filippo.bertilotti
2024-05-27 61ad98a6e2914578cae32f249d2b496892c0f10b
src/Framework/Dispatcher.php
@@ -9,11 +9,11 @@
    public function __construct(private Router $router,
                                private Container $container) { }
    public function handle(string $path) {
        $params = $this->router->match($path);
    public function handle(string $path, $method) {
        $params = $this->router->match($path, $method);
        if($params === false) {
            throw new PageNotFoundException("No route matched for '$path'");
            throw new PageNotFoundException("No route matched for '$path' with method '$method'");
        }
        $controller = "App\Controllers\\" . ucwords($params["controller"]);