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