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