These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace DoctrineModule\Service; |
||
6 | |||
7 | use DoctrineModule\Mvc\Router\Console\SymfonyCli; |
||
8 | use Interop\Container\ContainerInterface; |
||
9 | use Laminas\ServiceManager\FactoryInterface; |
||
10 | use Laminas\ServiceManager\ServiceLocatorInterface; |
||
11 | |||
12 | /** |
||
13 | * Factory responsible of instantiating {@see \DoctrineModule\Mvc\Router\Console\SymfonyCli} |
||
14 | */ |
||
15 | class SymfonyCliRouteFactory implements FactoryInterface |
||
0 ignored issues
–
show
|
|||
16 | { |
||
17 | /** |
||
18 | * {@inheritDoc} |
||
19 | */ |
||
20 | public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null) |
||
21 | { |
||
22 | $application = $container->get('doctrine.cli'); |
||
23 | |||
24 | return new SymfonyCli( |
||
25 | $application, |
||
26 | [ |
||
27 | 'controller' => 'DoctrineModule\Controller\Cli', |
||
28 | 'action' => 'cli', |
||
29 | ] |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * {@inheritDoc} |
||
35 | */ |
||
36 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
37 | { |
||
38 | return $this($serviceLocator->getServiceLocator(), SymfonyCli::class); |
||
39 | } |
||
40 | } |
||
41 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.