access the container getting it from the kernel

This commit is contained in:
Christian Flothmann 2018-12-28 10:13:17 +01:00 committed by Fabien Potencier
parent ed1500fb4b
commit 68ea3f1a64

View File

@ -94,7 +94,7 @@ EOT
$targetArg = rtrim($input->getArgument('target'), '/');
if (!$targetArg) {
$targetArg = $this->getPublicDirectory($this->getContainer());
$targetArg = $this->getPublicDirectory($kernel->getContainer());
}
if (!is_dir($targetArg)) {