AutorÃa | Ultima modificación | Ver Log |
<?phpdeclare(strict_types=1);namespace LeadersLinked\Factory\Helper;use Psr\Container\ContainerInterface;use Laminas\ServiceManager\Factory\FactoryInterface;use LeadersLinked\Helper\NetworkLogoHelper;class NetworkLogoHelperFactory implements FactoryInterface{public function __invoke(ContainerInterface $container, $requestedName, array $options = null){$db = $container->get('leaders-linked-db');$config = $container->get('ServiceManager')->get('config');$config = array_filter($config, function($k) {return strpos($k, 'leaderslinked.') !== false;}, ARRAY_FILTER_USE_KEY);return new NetworkLogoHelper($config, $db);}}