public function addBundle($name, array $deps)
    {
        if ($name == '') {
            throw new exception\InvalidArgumentException('The require.js bundle name must not be empty');
        }

        $this->bundles[$name] = [];
        $this->addToBundle($name, $deps);

        return $this;
    }
public function addBundle($name, array $deps)
    {
        if ($name == '') {
            throw new exception\InvalidArgumentException('The require.js bundle name must not be empty');
        }

        $this->bundles[$name] = [];
        $this->addToBundle($name, $deps);

        return $this;
    }
public function addBundle ( $ name , array $ deps ) { if ( $ name == '' ) { throw new exception \ InvalidArgumentException ( 'The require.js bundle name must not be empty' ) ; } $ this -> bundles [ $ name ] = [ ] ; $ this -> addToBundle ( $ name , $ deps ) ; return $ this ; }
Add a new bundle definition.

If the bundle is already defined, it will be replaced.

@see http://requirejs.org/docs/api.html#config-bundles
@param string $name
@param array $deps
@return self
Add a new bundle definition .