qqq
This commit is contained in:
@@ -36,6 +36,7 @@ class Delete extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
{
|
{
|
||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute(RequestMethod::REQUEST_DELETE, $path, [$class, $method]);
|
Router::addRoute(RequestMethod::REQUEST_DELETE, $path, [$class, $method]);
|
||||||
if ($this->enableOption) {
|
if ($this->enableOption) {
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class Get extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
{
|
{
|
||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute(RequestMethod::REQUEST_GET, $path, [$class, $method]);
|
Router::addRoute(RequestMethod::REQUEST_GET, $path, [$class, $method]);
|
||||||
if ($this->enableOption) {
|
if ($this->enableOption) {
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class Head extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
{
|
{
|
||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute(RequestMethod::REQUEST_HEAD, $path, [$class, $method]);
|
Router::addRoute(RequestMethod::REQUEST_HEAD, $path, [$class, $method]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ class Options extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
{
|
{
|
||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute(RequestMethod::REQUEST_OPTIONS, $path, [$class, $method]);
|
Router::addRoute(RequestMethod::REQUEST_OPTIONS, $path, [$class, $method]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class Post extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
{
|
{
|
||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute(RequestMethod::REQUEST_POST, $path, [$class, $method]);
|
Router::addRoute(RequestMethod::REQUEST_POST, $path, [$class, $method]);
|
||||||
if ($this->enableOption) {
|
if ($this->enableOption) {
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class Put extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
{
|
{
|
||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute(RequestMethod::REQUEST_PUT, $path, [$class, $method]);
|
Router::addRoute(RequestMethod::REQUEST_PUT, $path, [$class, $method]);
|
||||||
if ($this->enableOption) {
|
if ($this->enableOption) {
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ class Route extends AbstractRequestMethod implements InjectRouteInterface
|
|||||||
// TODO: Implement dispatch() method.
|
// TODO: Implement dispatch() method.
|
||||||
$path = '/' . ltrim($this->path, '/');
|
$path = '/' . ltrim($this->path, '/');
|
||||||
|
|
||||||
|
var_dump($path);
|
||||||
|
|
||||||
Router::addRoute([$this->method], $path, [$class, $method]);
|
Router::addRoute([$this->method], $path, [$class, $method]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user