Issues (7)

Business/Middleware/MiddlewareLocatorFactory.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\Middleware;
15
16
use Micro\Framework\Kernel\KernelInterface;
17
18
/**
19
 * @author Stanislau Komar <[email protected]>
20
 */
21
readonly class MiddlewareLocatorFactory implements MiddlewareLocatorFactoryInterface
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(private KernelInterface $kernel)
24
    {
25 2
    }
26
27 1
    public function create(): MiddlewareLocatorInterface
28
    {
29 1
        return new MiddlewareLocator($this->kernel);
30
    }
31
}
32