Issues (8)

src/Middleware/Registry/MiddlewareRegistry.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Kafkiansky\SymfonyMiddleware\Middleware\Registry;
6
7
use Psr\Http\Server\MiddlewareInterface;
8
use Kafkiansky\SymfonyMiddleware\Middleware\MiddlewareNotConfigured;
9
10
interface MiddlewareRegistry
11
{
12
    /**
13
     * Array-key where global middleware may be defined.
14
     */
15
    public const GLOBAL_MIDDLEWARE_GROUP = 'global';
16
17
    /**
18
     * @param class-string<MiddlewareInterface>|string $middlewareFqcnOrGroup
0 ignored issues
show
Documentation Bug introduced by
The doc comment class-string<MiddlewareInterface>|string at position 0 could not be parsed: Unknown type name 'class-string' at position 0 in class-string<MiddlewareInterface>|string.
Loading history...
19
     *
20
     * @throws MiddlewareNotConfigured
21
     *
22
     * @return MiddlewareInterface[]
23
     */
24
    public function byName(string $middlewareFqcnOrGroup): array;
25
}
26