Proyectos de Subversion LeadersLinked - Backend

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1343 eleazar 1
<?php
2
/**
3
 * Factory para el controlador de Reclutamiento y Seleccion
4
 */
5
declare(strict_types=1);
6
 
7
namespace LeadersLinked\Factory\Controller;
8
 
15391 efrain 9
use Psr\Container\ContainerInterface;
1343 eleazar 10
use Laminas\ServiceManager\Factory\FactoryInterface;
1459 eleazar 11
use LeadersLinked\Controller\RecruitmentSelectionCandidateController;
1343 eleazar 12
 
1455 eleazar 13
class RecruitmentSelectionCandidateFactory implements FactoryInterface
1343 eleazar 14
{
15
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
16
    {
17
 
18
        $db         = $container->get('leaders-linked-db');
19
        $cache      = $container->get('leaders-linked-cache');
20
        $log        = $container->get('leaders-linked-log');
21
        $config     = $container->get('ServiceManager')->get('config');
22
 
23
        $config = array_filter($config, function($k) {
24
            return strpos($k, 'leaderslinked.') !== false;
25
        }, ARRAY_FILTER_USE_KEY);
26
 
27
 
1459 eleazar 28
        return new RecruitmentSelectionCandidateController($db, $cache, $log,  $config);
1343 eleazar 29
    }
15391 efrain 30
}