コード例 #1
0
 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);
 }
コード例 #2
0
 public function __construct(ServerRequestInterface $request)
 {
     $msg = sprintf('You are not allowed to make this request via %s.', strtoupper($request->getMethod()));
     parent::__construct($msg, $request);
 }