protected function registerMedia($name, $options)
    {
        $this->media_files[$name] = new Manager($name, $this->mergeOptions($options));
        $this->media_files[$name]->setInstance($this);
    }
protected function registerMedia($name, $options)
    {
        $this->media_files[$name] = new Manager($name, $this->mergeOptions($options));
        $this->media_files[$name]->setInstance($this);
    }
protected function registerMedia ( $ name , $ options ) { $ this -> media_files [ $ name ] = new Manager ( $ name , $ this -> mergeOptions ( $ options ) ) ; $ this -> media_files [ $ name ] -> setInstance ( $ this ) ; }
Register an media type and add the media to the
list of media to be processed during saving.

@param string $name
@param array  $options

@return void
@throws Exception
Register an media type and add the media to the list of media to be processed during saving .