Proyectos de Subversion LeadersLinked - Services

Rev

Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked\Factory\Plugin;
6
 
7
use Laminas\ServiceManager\Factory\FactoryInterface;
8
use LeadersLinked\Plugin\CurrentUserPlugin;
9
use Psr\Container\ContainerInterface;
10
 
11
 
12
class CurrentUserPluginFactory implements FactoryInterface
13
{
14
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
15
    {
16
        $adapter = $container->get('leaders-linked-db');
17
 
18
        return new CurrentUserPlugin($adapter);
19
    }
20
}