Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15396 | Rev 16768 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 15396 Rev 16766
Línea 7... Línea 7...
7
namespace LeadersLinked\Factory\Controller;
7
namespace LeadersLinked\Factory\Controller;
Línea 8... Línea 8...
8
 
8
 
9
use Psr\Container\ContainerInterface;
9
use Psr\Container\ContainerInterface;
10
use Laminas\ServiceManager\Factory\FactoryInterface;
10
use Laminas\ServiceManager\Factory\FactoryInterface;
-
 
11
use LeadersLinked\Controller\JobDescriptionController;
Línea 11... Línea 12...
11
use LeadersLinked\Controller\JobDescriptionController;
12
use LeadersLinked\Cache\CacheImpl;
12
 
13
 
13
class JobDescriptionControllerFactory implements FactoryInterface
14
class JobDescriptionControllerFactory implements FactoryInterface
14
{
15
{
Línea 15... Línea 16...
15
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    {
-
 
-
 
17
    {
17
        
18
        
18
        $db         = $container->get('leaders-linked-db');
19
        $db         = $container->get('leaders-linked-db');
Línea 19... Línea 20...
19
        $cache      = $container->get('leaders-linked-cache');
20
       
Línea 26... Línea 27...
26
        $config = array_filter($config, function($k) {
27
        $config = array_filter($config, function($k) {
27
            return strpos($k, 'leaderslinked.') !== false;
28
            return strpos($k, 'leaderslinked.') !== false;
28
        }, ARRAY_FILTER_USE_KEY);
29
        }, ARRAY_FILTER_USE_KEY);
Línea -... Línea 30...
-
 
30
            
-
 
31
        
29
            
32
        $cache = CacheImpl::getInstance($config);
30
        
33
        
31
            return new JobDescriptionController($db, $cache, $log,  $config,  $translator);
34
        return new JobDescriptionController($db, $cache, $log,  $config,  $translator);