for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/**
* @see https://github.com/soluble-io/soluble-mediatools-cli for the canonical repository
*
* @copyright Copyright (c) 2018-2019 Sébastien Vanvelthem. (https://github.com/belgattitude)
* @license https://github.com/soluble-io/soluble-mediatools-cli/blob/master/LICENSE.md MIT
*/
namespace Soluble\MediaTools\Cli\Service;
use Psr\Container\ContainerInterface;
use Soluble\MediaTools\Video\VideoAnalyzerInterface;
use Soluble\MediaTools\Video\VideoConverterInterface;
use Soluble\MediaTools\Video\VideoInfoReaderInterface;
use Soluble\MediaTools\Video\VideoThumbGeneratorInterface;
class MediaToolsServiceFactory
{
public function __invoke(ContainerInterface $container): MediaToolsService
return new MediaToolsService(
$container->get(VideoInfoReaderInterface::class),
$container->get(VideoConverterInterface::class),
$container->get(VideoThumbGeneratorInterface::class),
$container->get(VideoAnalyzerInterface::class)
);
}