Rev 3639 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Factory\Plugin;
use Laminas\ServiceManager\Factory\FactoryInterface;
use LeadersLinked\Plugin\CurrentNetworkPlugin;
use Psr\Container\ContainerInterface;
class CurrentNetworkPluginFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
$adapter = $container->get('leaders-linked-db');
return new CurrentNetworkPlugin($adapter);
}
}