original_string: protected function registerMedia($name, $options)
      {
          $this->media_files[$name] = new Manager($name, $this->mergeOptions($options));
          $this->media_files[$name]->setInstance($this);
      }
code: protected function registerMedia($name, $options)
      {
          $this->media_files[$name] = new Manager($name, $this->mergeOptions($options));
          $this->media_files[$name]->setInstance($this);
      }
code_tokens: protected function registerMedia ( $ name , $ options ) { $ this -> media_files [ $ name ] = new Manager ( $ name , $ this -> mergeOptions ( $ options ) ) ; $ this -> media_files [ $ name ] -> setInstance ( $ this ) ; }
docstring: 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
docstring_tokens: Register an media type and add the media to the list of media to be processed during saving .