Cuts the normal execution of a method to run all applied filter for the method.
public static on ( mixed $context, string $method, array $params, Closure $callback, array $filters = [] ) : mixed | ||
$context | mixed | The instance or class name context to perform the filtering on. |
$method | string | The name of the method which is going the be filtered. |
$params | array | The parameters passed to the original method. |
$callback | Closure | The original method logic closure. |
$filters | array | Additional filters to apply to the method for this call only. |
return | mixed | Returns The result of the chain. |