Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15391 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

<?php

declare(strict_types=1);

namespace LeadersLinked\Factory\Plugin;

use Interop\Container\ContainerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use LeadersLinked\Plugin\CurrentUserPlugin;

class CurrentUserPluginFactory implements FactoryInterface
{
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    {
        $adapter    = $container->get('leaders-linked-db');
        
        return new CurrentUserPlugin($adapter);
    }
}