1 | <?php |
||
9 | class SecurityMiddleware implements Middleware |
||
10 | { |
||
11 | /** |
||
12 | * @var AuthorizationCheckerInterface |
||
13 | */ |
||
14 | private $authorizationChecker; |
||
15 | |||
16 | /** |
||
17 | * @param AuthorizationCheckerInterface $authorizationChecker |
||
18 | */ |
||
19 | 18 | public function __construct(AuthorizationCheckerInterface $authorizationChecker) |
|
23 | |||
24 | /** |
||
25 | * @param object $command |
||
26 | * @param callable $next |
||
27 | * |
||
28 | * @return mixed |
||
29 | */ |
||
30 | 18 | public function execute($command, callable $next) |
|
40 | } |
||
41 | |||
42 |