[FrameworkBundle] Add project directory default for installing assets
This commit is contained in:
parent
635d77b32a
commit
7a11f3ecf3
@ -81,9 +81,15 @@ EOT
|
||||
{
|
||||
$targetArg = rtrim($input->getArgument('target'), '/');
|
||||
|
||||
if (!is_dir($targetArg)) {
|
||||
$appRoot = $this->getContainer()->getParameter('kernel.root_dir').'/..';
|
||||
|
||||
$targetArg = $appRoot.'/'.$targetArg;
|
||||
|
||||
if (!is_dir($targetArg)) {
|
||||
throw new \InvalidArgumentException(sprintf('The target directory "%s" does not exist.', $input->getArgument('target')));
|
||||
}
|
||||
}
|
||||
|
||||
$this->filesystem = $this->getContainer()->get('filesystem');
|
||||
|
||||
|
Reference in New Issue
Block a user