src/Utilities/Regex.php
public static function isValidBundleName($bundleName)
    {
        /*
         * Not a string?
         * Nothing to do
         */
        if (!is_string($bundleName)) {
            return false;
        }

        $pattern = self::getBundleNamePattern();

        return (bool)preg_match($pattern, $bundleName);
    }
public static function isValidBundleName($bundleName)
    {
        /*
         * Not a string?
         * Nothing to do
         */
        if (!is_string($bundleName)) {
            return false;
        }

        $pattern = self::getBundleNamePattern();

        return (bool)preg_match($pattern, $bundleName);
    }
public static function isValidBundleName ( $ bundleName ) { /*
         * Not a string?
         * Nothing to do
         */ if ( ! is_string ( $ bundleName ) ) { return false ; } $ pattern = self :: getBundleNamePattern ( ) ; return ( bool ) preg_match ( $ pattern , $ bundleName ) ; }
Returns information if given name of bundle is valid

@param string $bundleName Full name of bundle to verify, e.g. "MyExtraBundle"
@return bool
Returns information if given name of bundle is valid