module/Application/src/Command/PicturesFillPointCommandFactory.php
<?php
declare(strict_types=1);
namespace Application\Command;
use Application\Model\Picture;
use Autowp\Image\Storage;
use interop\container\containerinterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
class PicturesFillPointCommandFactory implements FactoryInterface
{
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
* @param string $requestedName
* @param ?array<string, mixed> $options
*/
public function __invoke(
containerinterface $container,
$requestedName,
?array $options = null
): PicturesFillPointCommand {
return new PicturesFillPointCommand(
'pictures-fill-point',
$container->get(Picture::class),
$container->get(Storage::class)
);
}
}