Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16768 Rev 16769
Línea 13... Línea 13...
13
 
13
 
14
class DiscoveryContactReportControllerFactory implements FactoryInterface
14
class DiscoveryContactReportControllerFactory 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
    {
-
 
18
        
17
    {
19
        $db         = $container->get('leaders-linked-db');
-
 
-
 
18
        $db         = $container->get('leaders-linked-db');
20
       
19
        $cache      = $container->get('leaders-linked-cache');
-
 
20
        $log        = $container->get('leaders-linked-log');
21
        $log        = $container->get('leaders-linked-log');
21
        
22
        $config     = $container->get('ServiceManager')->get('config');
22
        $translator     = $container->get('ServiceManager')->get('MvcTranslator');
-
 
23
        $config         = $container->get('ServiceManager')->get('config');
Línea 23... Línea 24...
23
        $translator = $container->get('ServiceManager')->get('MvcTranslator');
24
        
24
        
25
        
25
        $config = array_filter($config, function($k) {
26
        $config = array_filter($config, function($k) {
26
            return strpos($k, 'leaderslinked.') !== false;
-
 
27
        }, ARRAY_FILTER_USE_KEY);
-
 
28
          
-
 
Línea 29... Línea 27...
29
        
27
            return strpos($k, 'leaderslinked.') !== false;
30
        
28
        }, ARRAY_FILTER_USE_KEY);
31
            
29
            
32
        return new DiscoveryContactReportController($db, $log,  $config, $translator);
30
        return new DiscoveryContactReportController($db, $cache, $log,  $config,  $translator);