This commit is contained in:
2021-04-26 12:37:50 +08:00
parent 0db6782135
commit c907c42c07
4 changed files with 4 additions and 57 deletions
+3 -9
View File
@@ -30,18 +30,12 @@ use Snowflake\Snowflake;
/**
* @param array $handler
* @return array
* @return bool
* @throws Exception
*/
public function execute(array $handler): array
public function execute(array $handler): bool
{
[$class, $method] = $handler;
/** @var HttpFilter $filter */
$filter = Snowflake::app()->get('filter');
$filter->register($class::class, $method, $this->rules);
return $handler;
return true;
}