This commit is contained in:
2021-08-02 18:12:32 +08:00
parent 3fb79847ce
commit f1a7928192
6 changed files with 97 additions and 39 deletions
+3 -2
View File
@@ -20,13 +20,14 @@ class LoggerAspect implements IAspect
/**
* @param mixed $handler
* @param array $params
* @return mixed
*/
public function invoke(mixed $handler): mixed
public function invoke(mixed $handler, array $params = []): mixed
{
$startTime = microtime(true);
$data = call_user_func($handler);
$data = call_user_func($handler, ...$params);
$this->print_runtime($handler, $startTime);