Create ProcessDDEXCommand.php

- Начало разработки DDEX процессора
This commit is contained in:
GeorgNation 2023-11-12 17:30:30 +06:00 committed by GitHub
parent 8ba792d9b9
commit ac335dc396
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,43 @@
<?php declare(strict_types=1);
namespace openvk\CLI;
use Chandler\Database\DatabaseConnection;
use openvk\Web\Models\Repositories\Photos;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Nette\Utils\ImageException;
class ProcessDDEXCommand extends Command
{
private $images;
protected static $defaultName = "process-ddex";
function __construct()
{
$this->images = DatabaseConnection::i()->getContext()->table("photos");
parent::__construct();
}
protected function configure(): void
{
$this->setDescription("Process DDEX ERN packages for music uploading")
->setHelp("This command allows you to process all DDEX ERN packages for music uploading");
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$header = $output->section();
$counter = $output->section();
$header->writeln([
"DDEX ERN processor utility",
"=====================",
"",
]);
return Command::SUCCESS;
}
}