You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
926 B

namespace App\Command;
use App\Service\OpmlImporter;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class ImportOpmlfileCommand extends Command
* @var OpmlImporter
private $importer;
public function __construct(
OpmlImporter $importer
) {
$this->importer = $importer;
protected function configure()
$this->setDescription('Imports an OPML file.');
$this->addArgument('file', InputArgument::REQUIRED, 'The OPML file to import.');
protected function execute(InputInterface $input, OutputInterface $output): int
return 0;