mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Bundle - getBundleViewPath() method - return path using namespaced syntax
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user