mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Fix config check
This commit is contained in:
@@ -143,7 +143,7 @@ class module_console_fileConfigCheck extends Command
|
|||||||
private function checkParse(OutputInterface $output)
|
private function checkParse(OutputInterface $output)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (!$this->configuration->getConfigurations())
|
if (!$this->configuration)
|
||||||
{
|
{
|
||||||
throw new \Exception("Unable to load configurations\n");
|
throw new \Exception("Unable to load configurations\n");
|
||||||
}
|
}
|
||||||
@@ -163,7 +163,7 @@ class module_console_fileConfigCheck extends Command
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$this->configuration->getConfiguration();
|
$this->configuration;
|
||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
{
|
{
|
||||||
@@ -178,15 +178,8 @@ class module_console_fileConfigCheck extends Command
|
|||||||
{
|
{
|
||||||
$configuration = Core\Configuration::build();
|
$configuration = Core\Configuration::build();
|
||||||
|
|
||||||
try
|
$env = $configuration->getEnvironnement();
|
||||||
{
|
$output->writeln("<info>Get Selected Environment from file : ".$env."</info>");
|
||||||
$configuration->getConfiguration();
|
|
||||||
}
|
|
||||||
catch (\Exception $e)
|
|
||||||
{
|
|
||||||
throw new \Exception(sprintf("Check get selected environment from file\n"), null, $e);
|
|
||||||
}
|
|
||||||
$output->writeln("<info>Get Selected Environment from file OK</info>");
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user