Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16768 Rev 17002
Línea 10... Línea 10...
10
class CurrentUserHelperFactory implements FactoryInterface
10
class CurrentUserHelperFactory implements FactoryInterface
11
{
11
{
12
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
12
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
13
    {
13
    {
14
        $db = $container->get('leaders-linked-db');
14
        $db = $container->get('leaders-linked-db');
-
 
15
        $config = $container->get('ServiceManager')->get('config');
Línea -... Línea 16...
-
 
16
        
-
 
17
        
-
 
18
        $config = array_filter($config, function($k) {
-
 
19
            return strpos($k, 'leaderslinked.') !== false;
-
 
20
        }, ARRAY_FILTER_USE_KEY);
15
        
21
        
16
        return new CurrentUserHelper($db);
22
        return new CurrentUserHelper($config, $db);
17
    }
23
    }