original_string: protected function _create($class, $alias, $config)
      {
          $instance = new $class($this->_table, $config);
          $enable = isset($config['enabled']) ? $config['enabled'] : true;
          if ($enable) {
              $this->getEventManager()->on($instance);
          }
          $methods = $this->_getMethods($instance, $class, $alias);
          $this->_methodMap += $methods['methods'];
          $this->_finderMap += $methods['finders'];
  
          return $instance;
      }
code: protected function _create($class, $alias, $config)
      {
          $instance = new $class($this->_table, $config);
          $enable = isset($config['enabled']) ? $config['enabled'] : true;
          if ($enable) {
              $this->getEventManager()->on($instance);
          }
          $methods = $this->_getMethods($instance, $class, $alias);
          $this->_methodMap += $methods['methods'];
          $this->_finderMap += $methods['finders'];
  
          return $instance;
      }
code_tokens: protected function _create ( $ class , $ alias , $ config ) { $ instance = new $ class ( $ this -> _table , $ config ) ; $ enable = isset ( $ config [ 'enabled' ] ) ? $ config [ 'enabled' ] : true ; if ( $ enable ) { $ this -> getEventManager ( ) -> on ( $ instance ) ; } $ methods = $ this -> _getMethods ( $ instance , $ class , $ alias ) ; $ this -> _methodMap += $ methods [ 'methods' ] ; $ this -> _finderMap += $ methods [ 'finders' ] ; return $ instance ; }
docstring: Create the behavior instance.
  
  Part of the template method for Cake\Core\ObjectRegistry::load()
  Enabled behaviors will be registered with the event manager.
  
  @param string $class The classname that is missing.
  @param string $alias The alias of the object.
  @param array $config An array of config to use for the behavior.
  @return \Cake\ORM\Behavior The constructed behavior class.
docstring_tokens: Create the behavior instance .