This commit is contained in:
2021-09-06 11:26:22 +08:00
parent 4fac0621e7
commit 3088530d9d
3 changed files with 164 additions and 137 deletions
+10
View File
@@ -50,4 +50,14 @@ class LoggerAspect implements IAspect
}
public function before(): void
{
// TODO: Implement before() method.
}
public function after(mixed $response): void
{
// TODO: Implement after() method.
}
}
+10 -1
View File
@@ -8,11 +8,20 @@ interface IAspect
{
public function before(): void;
/**
* @param mixed $response
*/
public function after(mixed $response): void;
/**
* @param mixed $handler
* @param array $params
* @return mixed
*/
public function invoke(mixed $handler, array $params = []): mixed;
public function invoke(mixed $handler, array $params = []): mixed;
}