Completed
Push — master ( c3465a...e27b3b )
by Tom
03:42 queued 15s
created

CliConfiguratorFactory::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 3
crap 2
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