public function register($alias, $source = null, $dependencies = [], $options = [])
    {
        $asset = $this->_factory->create($alias, $source, $dependencies, $options);
        $this->_collection->add($asset);

        return $this;
    }
public function register($alias, $source = null, $dependencies = [], $options = [])
    {
        $asset = $this->_factory->create($alias, $source, $dependencies, $options);
        $this->_collection->add($asset);

        return $this;
    }
public function register ( $ alias , $ source = null , $ dependencies = [ ] , $ options = [ ] ) { $ asset = $ this -> _factory -> create ( $ alias , $ source , $ dependencies , $ options ) ; $ this -> _collection -> add ( $ asset ) ; return $ this ; }
Registers an asset.

@param string       $alias
@param null|string  $source
@param array        $dependencies
@param string|array $options
@return $this
Registers an asset .