Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class WebProcessorFactory extends AbstractFactory |
||
14 | { |
||
15 | /** |
||
16 | * @var array<string, string> |
||
17 | */ |
||
18 | private array $defaultExtraFields = [ |
||
19 | 'url' => 'REQUEST_URI', |
||
20 | 'ip' => 'REMOTE_ADDR', |
||
21 | 'http_method' => 'REQUEST_METHOD', |
||
22 | 'server' => 'SERVER_NAME', |
||
23 | 'referrer' => 'HTTP_REFERER', |
||
24 | ]; |
||
25 | |||
26 | /** |
||
27 | * @throws ServiceNotCreatedException |
||
28 | * @throws ContainerExceptionInterface |
||
29 | */ |
||
30 | public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): WebProcessor |
||
52 |