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