original_string: public function loadComponent($name, array $config = [])
      {
          list(, $prop) = pluginSplit($name);
  
          return $this->{$prop} = $this->components()->load($name, $config);
      }
code: public function loadComponent($name, array $config = [])
      {
          list(, $prop) = pluginSplit($name);
  
          return $this->{$prop} = $this->components()->load($name, $config);
      }
code_tokens: public function loadComponent ( $ name , array $ config = [ ] ) { list ( , $ prop ) = pluginSplit ( $ name ) ; return $ this -> { $ prop } = $ this -> components ( ) -> load ( $ name , $ config ) ; }
docstring: Add a component to the controller's registry.
  
  This method will also set the component to a property.
  For example:
  
  ```
  $this->loadComponent('Acl.Acl');
  ```
  
  Will result in a `Toolbar` property being set.
  
  @param string $name The name of the component to load.
  @param array $config The config for the component.
  @return \Cake\Controller\Component
  @throws \Exception
docstring_tokens: Add a component to the controller s registry .