public static function getWorkflowManagementConfig($forceReload = false)
{
$config = null;
if (\Zend_Registry::isRegistered("pimcore_config_workflowmanagement") && !$forceReload) {
$config = \Zend_Registry::get("pimcore_config_workflowmanagement");
} else {
try {
$file = \Pimcore\Config::locateConfigFile("workflowmanagement.php");
if (is_file($file)) {
$config = (include $file);
if (is_array($config)) {
self::setWorkflowManagementConfig($config);
} else {
Logger::error("{$file} exists but it is not a valid PHP array configuration.");
}
}
} catch (\Exception $e) {
$file = \Pimcore\Config::locateConfigFile("workflowmanagement.php");
Logger::emergency("Cannot find workflow configuration, should be located at: " . $file);
}
}
return $config;
}