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