改名
This commit is contained in:
@@ -5,6 +5,7 @@ namespace Annotation\Route;
|
|||||||
|
|
||||||
|
|
||||||
use Annotation\Attribute;
|
use Annotation\Attribute;
|
||||||
|
use Exception;
|
||||||
use HttpServer\Route\Router;
|
use HttpServer\Route\Router;
|
||||||
use ReflectionException;
|
use ReflectionException;
|
||||||
use Snowflake\Exception\ComponentException;
|
use Snowflake\Exception\ComponentException;
|
||||||
@@ -33,16 +34,16 @@ use Snowflake\Snowflake;
|
|||||||
/**
|
/**
|
||||||
* @param array $handler
|
* @param array $handler
|
||||||
* @return Router
|
* @return Router
|
||||||
* @throws ComponentException
|
|
||||||
* @throws ConfigException
|
* @throws ConfigException
|
||||||
* @throws ReflectionException
|
* @throws Exception
|
||||||
* @throws NotFindClassException
|
|
||||||
*/
|
*/
|
||||||
public function execute(array $handler): Router
|
public function execute(array $handler): Router
|
||||||
{
|
{
|
||||||
// TODO: Implement setHandler() method.
|
// TODO: Implement setHandler() method.
|
||||||
$router = Snowflake::app()->getRouter();
|
$router = Snowflake::app()->getRouter();
|
||||||
|
|
||||||
|
var_dump($this->uri);
|
||||||
|
|
||||||
$router->addRoute($this->uri, $handler, $this->method);
|
$router->addRoute($this->uri, $handler, $this->method);
|
||||||
|
|
||||||
return $router;
|
return $router;
|
||||||
|
|||||||
Reference in New Issue
Block a user