Rev 3671 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpdeclare(strict_types=1);namespace LeadersLinked\Factory\Command;use Laminas\ServiceManager\Factory\FactoryInterface;use LeadersLinked\Command\ProcessQueueUserDeletedCommand;use Psr\Container\ContainerInterface;class ProcessQueueUserDeletedCommandFactory implements FactoryInterface{public function __invoke(ContainerInterface $container, $requestedName, array $options = null){$db = $container->get('leaders-linked-db');$log = $container->get('leaders-linked-log');$config = $container->get('ServiceManager')->get('config');$config = array_filter($config, function($k) {return strpos($k, 'leaderslinked.') !== false;}, ARRAY_FILTER_USE_KEY);return new ProcessQueueUserDeletedCommand($db, $cache, $log, $config);}}