src/ContainerParserFactory.php
<?php
/**
* This file is part of the mimmi20/navigation-helper-containerparser package.
*
* Copyright (c) 2021-2024, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace Mimmi20\NavigationHelper\ContainerParser;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerInterface;
final class ContainerParserFactory implements FactoryInterface
{
/**
* Create and return a navigation view helper instance.
*
* @param string $requestedName
* @param array<mixed>|null $options
*
* @throws void
*
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
*/
public function __invoke(
ContainerInterface $container,
$requestedName,
array | null $options = null,
): ContainerParser {
return new ContainerParser($container);
}
}