public function __construct(ServerRequestInterface $request) { $msg = sprintf('A route does not exist for "%s %s".', strtoupper($request->getMethod()), $request->getUri()->getPath()); parent::__construct($msg, $request); }
public function __construct(ServerRequestInterface $request) { $msg = sprintf('You are not allowed to make this request via %s.', strtoupper($request->getMethod())); parent::__construct($msg, $request); }