mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
fail fast if gv_cli not provided
This commit is contained in:
@@ -57,6 +57,11 @@ class task_Scheduler
|
||||
$appbox = appbox::get_instance(\bootstrap::getCore());
|
||||
$registry = $appbox->get_registry();
|
||||
|
||||
//prevent scheduler to fail if GV_cli is not provided
|
||||
if( ! is_executable($registry->get('GV_cli'))){
|
||||
throw new \RuntimeException('PHP cli is not provided in registry');
|
||||
}
|
||||
|
||||
$this->method = self::METHOD_PROC_OPEN;
|
||||
|
||||
$nullfile = '/dev/null';
|
||||
|
Reference in New Issue
Block a user