upd: app-import-heidelberg
This commit is contained in:
@@ -5,9 +5,9 @@ namespace App\Command;
|
|||||||
use App\Entity\Reference;
|
use App\Entity\Reference;
|
||||||
|
|
||||||
use Doctrine\ORM\EntityManagerInterface;
|
use Doctrine\ORM\EntityManagerInterface;
|
||||||
use Pdo\Sqlite;
|
|
||||||
use Symfony\Component\Console\Attribute\AsCommand;
|
use Symfony\Component\Console\Attribute\AsCommand;
|
||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
|
use Symfony\Component\Console\Input\InputArgument;
|
||||||
use Symfony\Component\Console\Input\InputInterface;
|
use Symfony\Component\Console\Input\InputInterface;
|
||||||
use Symfony\Component\Console\Output\OutputInterface;
|
use Symfony\Component\Console\Output\OutputInterface;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
@@ -80,7 +80,7 @@ class ImportHeidelbergCommand extends Command
|
|||||||
{
|
{
|
||||||
$files = glob($this->dir . "/*.md");
|
$files = glob($this->dir . "/*.md");
|
||||||
|
|
||||||
if (!$this->files || count($this->files) === 0) {
|
if (!$files || count($files) === 0) {
|
||||||
$this->io->warning("No files found in this directory\n{$this->dir}");
|
$this->io->warning("No files found in this directory\n{$this->dir}");
|
||||||
$files = [];
|
$files = [];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user