* animated gif and camera urls are moved to funService
This commit is contained in:
19
src/App/Service/FunServiceFactory.php
Normal file
19
src/App/Service/FunServiceFactory.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
use Interop\Container\ContainerInterface;
|
||||
use Zend\Config\Config;
|
||||
|
||||
class FunServiceFactory
|
||||
{
|
||||
public function __invoke(ContainerInterface $container)
|
||||
{
|
||||
$appConfig = $container->get('config')['app.config'];
|
||||
$cache = $container->get('service.cache');
|
||||
return new FunService(
|
||||
$cache,
|
||||
new Config($appConfig)
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user