Rev 6849 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
declare(strict_types=1);
namespace LeadersLinked\Factory\Command;
use Laminas\ServiceManager\Factory\FactoryInterface;
use LeadersLinked\Command\ProcessQueueEmailCommand;
use Psr\Container\ContainerInterface;
class ProcessQueueEmailCommandFactory implements FactoryInterface
{
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
{
$db = $container->get('leaders-linked-db');
$cache = $container->get('leaders-linked-cache');
$log = $container->get('leaders-linked-log');
$translator = $container->get('ServiceManager')->get('MvcTranslator');
$config = $container->get('ServiceManager')->get('config');
$config = array_filter($config, function($k) {
return strpos($k, 'leaderslinked.') !== false;
}, ARRAY_FILTER_USE_KEY);
return new ProcessQueueEmailCommand($db, $cache, $log, $config, $translator);
}
}