Commit 49c21595 authored by catch's avatar catch
Browse files

Issue #2068797 by tstoeckler: ModuleHandler::parseDependency should be public.

parent cc3b5c8c
......@@ -149,7 +149,7 @@ public function buildModuleDependencies(array $modules) {
$graph[$module->name]['edges'] = array();
if (isset($module->info['dependencies']) && is_array($module->info['dependencies'])) {
foreach ($module->info['dependencies'] as $dependency) {
$dependency_data = $this->parseDependency($dependency);
$dependency_data = static::parseDependency($dependency);
$graph[$module->name]['edges'][$dependency_data['name']] = $dependency_data;
}
}
......@@ -459,7 +459,7 @@ protected function getImplementationInfo($hook) {
*
* @see drupal_check_incompatibility()
*/
protected function parseDependency($dependency) {
public static function parseDependency($dependency) {
// We use named subpatterns and support every op that version_compare
// supports. Also, op is optional and defaults to equals.
$p_op = '(?<operation>!=|==|=|<|<=|>|>=|<>)?';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment