Completed
Push — master ( 2979c3...e5282b )
by Vítor
12:19
created

Factory/Controller/Http/IndexControllerFactory.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
 * ZfDebugModule. Console commands and other utilities for debugging ZF2 apps.
4
 *
5
 * @license http://www.opensource.org/licenses/mit-license.html MIT License
6
 * @copyright 2016 Vítor Brandão <[email protected]>
7
 */
8
9
namespace Noiselabs\ZfDebugModule\Factory\Controller\Http;
10
11
use Interop\Container\ContainerInterface;
12
use Noiselabs\ZfDebugModule\Controller\Http\IndexController;
13
use Zend\ServiceManager\FactoryInterface;
14
use Zend\ServiceManager\ServiceLocatorInterface;
15
16
/**
17
 * IndexControllerFactory creates instances of IndexController.
18
 */
19
class IndexControllerFactory 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...
20
{
21
    const SERVICE_NAME = IndexController::class;
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function createService(ServiceLocatorInterface $serviceLocator)
27
    {
28
        return $this($serviceLocator, self::SERVICE_NAME);
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
35
    {
36
        return new IndexController();
37
    }
38
}
39