Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16248 | Rev 16768 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 16248 Rev 16766
Línea 7... Línea 7...
7
namespace LeadersLinked\Factory\Controller;
7
namespace LeadersLinked\Factory\Controller;
Línea 8... Línea 8...
8
 
8
 
9
use Psr\Container\ContainerInterface;
9
use Psr\Container\ContainerInterface;
10
use Laminas\ServiceManager\Factory\FactoryInterface;
10
use Laminas\ServiceManager\Factory\FactoryInterface;
-
 
11
use LeadersLinked\Controller\KnowledgeAreaCategoryController;
Línea 11... Línea 12...
11
use LeadersLinked\Controller\KnowledgeAreaCategoryController;
12
use LeadersLinked\Cache\CacheImpl;
12
 
13
 
13
class KnowledgeAreaCategoryControllerFactory implements FactoryInterface
14
class KnowledgeAreaCategoryControllerFactory implements FactoryInterface
14
{
15
{
Línea 15... Línea 16...
15
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    {
-
 
-
 
17
    {
17
        
18
        
18
        $db         = $container->get('leaders-linked-db');
19
        $db         = $container->get('leaders-linked-db');
Línea 19... Línea 20...
19
        $cache      = $container->get('leaders-linked-cache');
20
       
20
        $log        = $container->get('leaders-linked-log');
21
        $log        = $container->get('leaders-linked-log');
21
        $config     = $container->get('ServiceManager')->get('config');
22
        $config     = $container->get('ServiceManager')->get('config');
22
        
23
        
-
 
24
        $config = array_filter($config, function($k) {
Línea 23... Línea 25...
23
        $config = array_filter($config, function($k) {
25
            return strpos($k, 'leaderslinked.') !== false;
24
            return strpos($k, 'leaderslinked.') !== false;
26
        }, ARRAY_FILTER_USE_KEY);
25
        }, ARRAY_FILTER_USE_KEY);
27