AM
Size: a a a
AM
K
AM
K
AV
class TestCommand extends Command
{
...
public function __construct(ReaderInterface $reader)
{
parent::__construct(self::COMMAND_NAME);
$this->reader = $reader;
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$sourceDir = $input->getArgument('sourcePath');
// Но sourceDir мы должны были передать в конструктор $this->reader!
return 0;
}
}
AV
F
class TestCommand extends Command
{
...
public function __construct(ReaderInterface $reader)
{
parent::__construct(self::COMMAND_NAME);
$this->reader = $reader;
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$sourceDir = $input->getArgument('sourcePath');
// Но sourceDir мы должны были передать в конструктор $this->reader!
return 0;
}
}
AV
F
F
AV
F
VM
class TestCommand extends Command
{
...
public function __construct(ReaderInterface $reader)
{
parent::__construct(self::COMMAND_NAME);
$this->reader = $reader;
}
protected function execute(InputInterface $input, OutputInterface $output): int
{
$sourceDir = $input->getArgument('sourcePath');
// Но sourceDir мы должны были передать в конструктор $this->reader!
return 0;
}
}
VM
AV
AV
AV
VM
VM