Issues (7)

Executor/RouteMiddlewareExecutorFactory.php (1 issue)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 *  This file is part of the Micro framework package.
7
 *
8
 *  (c) Stanislau Komar <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace Micro\Plugin\Http\Business\Executor;
15
16
use Micro\Plugin\Http\Business\Middleware\MiddlewareLocatorFactoryInterface;
17
18
/**
19
 * @author Stanislau Komar <[email protected]>
20
 */
21
readonly class RouteMiddlewareExecutorFactory implements RouteExecutorFactoryInterface
0 ignored issues
show
A parse error occurred: Syntax error, unexpected T_READONLY on line 21 at column 0
Loading history...
22
{
23 2
    public function __construct(
24
        private RouteExecutorInterface $decorated,
25
        private MiddlewareLocatorFactoryInterface $middlewareLocatorFactory
26
    ) {
27 2
    }
28
29 1
    public function create(): RouteExecutorInterface
30
    {
31 1
        return new RouteMiddlewareExecutor(
32 1
            $this->decorated,
33 1
            $this->middlewareLocatorFactory->create()
34 1
        );
35
    }
36
}
37