bramstroker /
zf2-fullpage-cache
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /** |
||
| 3 | * @author Bram Gerritsen [email protected] |
||
| 4 | * @copyright (c) Bram Gerritsen 2013 |
||
| 5 | * @license http://opensource.org/licenses/mit-license.php |
||
| 6 | */ |
||
| 7 | |||
| 8 | namespace StrokerCache\Factory; |
||
| 9 | |||
| 10 | use Interop\Container\ContainerInterface; |
||
| 11 | use StrokerCache\Controller\CacheController; |
||
| 12 | use StrokerCache\Service\CacheService; |
||
| 13 | use Zend\ServiceManager\FactoryInterface; |
||
| 14 | use Zend\ServiceManager\ServiceLocatorInterface; |
||
| 15 | |||
| 16 | class CacheControllerFactory implements FactoryInterface |
||
|
1 ignored issue
–
show
|
|||
| 17 | { |
||
| 18 | /** |
||
| 19 | * {@inheritDoc} |
||
| 20 | */ |
||
| 21 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 22 | { |
||
| 23 | return $this($serviceLocator, CacheService::class); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritDoc} |
||
| 28 | */ |
||
| 29 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null) |
||
| 30 | { |
||
| 31 | $container = $container->getServiceLocator(); |
||
| 32 | |||
| 33 | return new CacheController($container->get(CacheService::class)); |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
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.