mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Check if application exists
This commit is contained in:
@@ -106,10 +106,12 @@ class module_console_systemUpgrade extends Command
|
||||
$output->writeln("");
|
||||
}
|
||||
|
||||
$command = $this->getApplication()->find('crossdomain:generate');
|
||||
$command->run(new ArrayInput(array(
|
||||
'command' => 'crossdomain:generate'
|
||||
)), $output);
|
||||
if (null !== $this->getApplication()) {
|
||||
$command = $this->getApplication()->find('crossdomain:generate');
|
||||
$command->run(new ArrayInput(array(
|
||||
'command' => 'crossdomain:generate'
|
||||
)), $output);
|
||||
}
|
||||
} else {
|
||||
$output->write('<info>Canceled</info>', true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user