eee
This commit is contained in:
@@ -5,13 +5,11 @@ namespace Kiri\Router\Annotate;
|
||||
|
||||
use Kiri;
|
||||
use Kiri\Router\Constrict\RequestMethod;
|
||||
use Kiri\Router\Interface\InjectRouteInterface;
|
||||
use Kiri\Di\Interface\InjectMethodInterface;
|
||||
use Kiri\Router\Router;
|
||||
use ReflectionClass;
|
||||
use ReflectionException;
|
||||
|
||||
#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
|
||||
class Head extends AbstractRequestMethod implements InjectRouteInterface
|
||||
class Head extends AbstractRequestMethod implements InjectMethodInterface
|
||||
{
|
||||
|
||||
|
||||
@@ -25,14 +23,13 @@ class Head extends AbstractRequestMethod implements InjectRouteInterface
|
||||
|
||||
|
||||
/**
|
||||
* @param ReflectionClass $class
|
||||
* @param string $class
|
||||
* @param string $method
|
||||
* @return void
|
||||
* @throws ReflectionException
|
||||
*/
|
||||
public function dispatch(ReflectionClass $class, string $method): void
|
||||
public function dispatch(string $class, string $method): void
|
||||
{
|
||||
$controller = Kiri::getDi()->makeReflection($class);
|
||||
$controller = Kiri::getDi()->get($class);
|
||||
// TODO: Implement dispatch() method.
|
||||
$path = '/' . ltrim($this->path, '/');
|
||||
if (!empty($this->version)) {
|
||||
|
||||
Reference in New Issue
Block a user