Proyectos de Subversion LeadersLinked - Backend

Rev

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

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