Bundle - getBundleViewPath() method - return path using namespaced syntax

This commit is contained in:
Meritoo
2017-12-21 23:44:39 +01:00
parent 7d23ff59d1
commit ebbed4825c
4 changed files with 130 additions and 7 deletions

View File

@@ -737,8 +737,18 @@ class Regex
return false;
}
$pattern = self::$patterns['bundleName'];
$pattern = self::getBundleNamePattern();
return (bool)preg_match($pattern, $bundleName);
}
/**
* Returns pattern used to validate / verify name of bundle
*
* @return string
*/
public static function getBundleNamePattern()
{
return self::$patterns['bundleName'];
}
}