Core/Json/Bundle/Bundle.php
public function setClass($class)
    {
        preg_match('/\\\([\w]+Bundle)$/', $class, $match);
        if (empty($match[1])) {
            throw new InvalidJsonParameterException(sprintf("The class %s does not seem to be a valid bundle class. Check your autoloader.json file", $class));
        }
        $this->name = basename($match[1]);
        $this->class = $class;

        return $this;
    }
public function setClass($class)
    {
        preg_match('/\\\([\w]+Bundle)$/', $class, $match);
        if (empty($match[1])) {
            throw new InvalidJsonParameterException(sprintf("The class %s does not seem to be a valid bundle class. Check your autoloader.json file", $class));
        }
        $this->name = basename($match[1]);
        $this->class = $class;

        return $this;
    }
Sets the bundle class

@param  string                                               $class
@return \RedKiteLabs\RedKiteCms\BootstrapBundle\Core\Json\Bundle\Bundle
@throws InvalidJsonParameterException