public static function getBundleName()
    {
        $path = (new ReflectionClass(get_called_class()))->getFileName();
        $basePath = substr($path, 0, strrpos(strtolower($path), 'bundle') + 7);
        $files = glob(sprintf('%s/*Bundle.php', $basePath));
        $firstBundle = current($files);
        if ($firstBundle) {
            return pathinfo($firstBundle, PATHINFO_FILENAME);
        }

        return '';
    }