Completed
Push — master ( dcca99...06202c )
by Tom
03:20 queued 01:33
created

Service/CliConfiguratorFactory.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace DoctrineORMModule\Service;
4
5
use DoctrineORMModule\CliConfigurator;
6
use Interop\Container\ContainerInterface;
7
use Zend\ServiceManager\FactoryInterface;
8
use Zend\ServiceManager\ServiceLocatorInterface;
9
10
class CliConfiguratorFactory implements FactoryInterface
0 ignored issues
show
Deprecated Code introduced by
The interface Zend\ServiceManager\FactoryInterface has been deprecated with message: Use Zend\ServiceManager\Factory\FactoryInterface instead.

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.

Loading history...
11
{
12
    /**
13
     * {@inheritDoc}
14
     */
15
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    {
17
        return new CliConfigurator($container);
18
    }
19
20
    /**
21
     * {@inheritDoc}
22
     */
23
    public function createService(ServiceLocatorInterface $container)
24
    {
25
        return $this($container, CliConfigurator::class);
26
    }
27
}
28