Use configurtion file instead of GV

This commit is contained in:
Nicolas Le Goff
2014-07-28 11:59:21 +02:00
parent 76cb4fad28
commit c752141ff2
10 changed files with 11 additions and 22 deletions

View File

@@ -73,7 +73,7 @@ class module_console_taskrun extends Command
return self::EXITCODE_SETUP_ERROR;
}
if ($this->container['phraseanet.registry"].get("GV_disable_task_manager']) {
if (false === $this->container['phraseanet.configuration']['main']['task-manager']['enabled']) {
throw new RuntimeException('The use of the task manager is disabled on this instance.');
}