public function addModule($name, $location, $replace = false)
    {
        if ($name == '') {
            throw new exception\InvalidArgumentException('The require.js module name must not be empty');
        }

        if ($replace || !isset($this->modules[$name])) {
            $this->modules[$name] = (string)$location;
        }

        return $this;
    }
public function addModule($name, $location, $replace = false)
    {
        if ($name == '') {
            throw new exception\InvalidArgumentException('The require.js module name must not be empty');
        }

        if ($replace || !isset($this->modules[$name])) {
            $this->modules[$name] = (string)$location;
        }

        return $this;
    }
public function addModule ( $ name , $ location , $ replace = false ) { if ( $ name == '' ) { throw new exception \ InvalidArgumentException ( 'The require.js module name must not be empty' ) ; } if ( $ replace || ! isset ( $ this -> modules [ $ name ] ) ) { $ this -> modules [ $ name ] = ( string ) $ location ; } return $ this ; }
Define a require.js module location

@see http://requirejs.org/docs/api.html#config-paths
@param string $name
@param string $location
@param bool $replace Replace the module definition if it already exists
Define a require . js module location