mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Check if application exists
This commit is contained in:
@@ -111,11 +111,12 @@ class Install extends Command
|
|||||||
$this->container['phraseanet.installer']->setPhraseaIndexerPath($indexer);
|
$this->container['phraseanet.installer']->setPhraseaIndexerPath($indexer);
|
||||||
$this->container['phraseanet.installer']->install($email, $password, $abConn, $serverName, $dataPath, $dbConn, $template, $this->detectBinaries());
|
$this->container['phraseanet.installer']->install($email, $password, $abConn, $serverName, $dataPath, $dbConn, $template, $this->detectBinaries());
|
||||||
|
|
||||||
|
if (null !== $this->getApplication()) {
|
||||||
$command = $this->getApplication()->find('crossdomain:generate');
|
$command = $this->getApplication()->find('crossdomain:generate');
|
||||||
$command->run(new ArrayInput(array(
|
$command->run(new ArrayInput(array(
|
||||||
'command' => 'crossdomain:generate'
|
'command' => 'crossdomain:generate'
|
||||||
)), $output);
|
)), $output);
|
||||||
|
}
|
||||||
|
|
||||||
$output->writeln("<info>Install successful !</info>");
|
$output->writeln("<info>Install successful !</info>");
|
||||||
|
|
||||||
|
@@ -106,10 +106,12 @@ class module_console_systemUpgrade extends Command
|
|||||||
$output->writeln("");
|
$output->writeln("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (null !== $this->getApplication()) {
|
||||||
$command = $this->getApplication()->find('crossdomain:generate');
|
$command = $this->getApplication()->find('crossdomain:generate');
|
||||||
$command->run(new ArrayInput(array(
|
$command->run(new ArrayInput(array(
|
||||||
'command' => 'crossdomain:generate'
|
'command' => 'crossdomain:generate'
|
||||||
)), $output);
|
)), $output);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$output->write('<info>Canceled</info>', true);
|
$output->write('<info>Canceled</info>', true);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user