2021-05-08 21:09:48 +00:00
|
|
|
<?php
|
2021-05-08 22:50:26 +00:00
|
|
|
|
2021-05-08 21:09:48 +00:00
|
|
|
declare(strict_types=1);
|
2021-05-08 22:50:26 +00:00
|
|
|
|
2021-05-08 21:09:48 +00:00
|
|
|
namespace Fbrinker\ExtensionCheck\Parser;
|
|
|
|
|
|
|
|
use Interop\Container\ContainerInterface;
|
|
|
|
use Laminas\ServiceManager\Factory\FactoryInterface;
|
|
|
|
use Symfony\Component\Finder\Finder;
|
|
|
|
|
|
|
|
class FileParserFactory implements FactoryInterface
|
|
|
|
{
|
2021-05-08 22:50:26 +00:00
|
|
|
/**
|
|
|
|
* @param array<mixed> $options
|
|
|
|
*/
|
2021-05-08 21:09:48 +00:00
|
|
|
public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
|
|
|
|
{
|
|
|
|
return new FileParser(
|
|
|
|
new Finder()
|
|
|
|
);
|
|
|
|
}
|
2021-05-08 22:50:26 +00:00
|
|
|
}
|