Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6849 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6849 Rev 6866
Línea 15... Línea 15...
15
class HomeControllerFactory implements FactoryInterface
15
class HomeControllerFactory implements FactoryInterface
16
{
16
{
17
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
17
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
18
    {
18
    {
19
        $db         = $container->get('leaders-linked-db');
19
        $db         = $container->get('leaders-linked-db');
-
 
20
        $cache      = $container->get('leaders-linked-cache');
20
        $log        = $container->get('leaders-linked-log');
21
        $log        = $container->get('leaders-linked-log');
-
 
22
        
-
 
23
        $translator     = $container->get('ServiceManager')->get('MvcTranslator');
21
        $config     = $container->get('ServiceManager')->get('config');
24
        $config         = $container->get('ServiceManager')->get('config');
-
 
25
        
Línea 22... Línea 26...
22
        
26
        
23
        $config = array_filter($config, function($k) {
27
        $config = array_filter($config, function($k) {
24
            return strpos($k, 'leaderslinked.') !== false;
28
            return strpos($k, 'leaderslinked.') !== false;
25
        }, ARRAY_FILTER_USE_KEY);
-
 
26
        
29
        }, ARRAY_FILTER_USE_KEY);
27
        
-
 
28
            
30
       
29
        return new HomeController($db, $log, $config);
31
        return new HomeController($db, $cache, $log,  $config,  $translator);
30
    }
32
    }
31
}
33
}