public function __construct($method, $path, array $allowed = []) { $this->method = $method; $this->path = $path; $this->allowed = $allowed; parent::__construct("Method {$method} not allowed for {$path}"); }
public function __construct($method, $path) { $this->method = $method; $this->path = $path; parent::__construct("No route found for {$method} {$path}"); }