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 11... Línea 11...
11
class CurrentUserPluginFactory implements FactoryInterface
11
class CurrentUserPluginFactory 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
    {
14
    {
15
        $adapter    = $container->get('leaders-linked-db');
15
        $adapter    = $container->get('leaders-linked-db');
-
 
16
        $config     = $container->get('ServiceManager')->get('config');
Línea -... Línea 17...
-
 
17
        
-
 
18
   
-
 
19
        
-
 
20
        $config = array_filter($config, function($k) {
-
 
21
            return strpos($k, 'leaderslinked.') !== false;
-
 
22
        }, ARRAY_FILTER_USE_KEY);
16
        
23
 
17
        return new CurrentUserPlugin($adapter);
24
        return CurrentUserPlugin::getInstance($config, $adapter);
Línea 18... Línea 25...
18
    }
25
    }