DebugKit\Panel\PanelRegistry::_create PHP Method

_create() protected method

Part of the template method for Cake\Utility\ObjectRegistry::load()
protected _create ( string $class, string $alias, array $config ) : DebugPanel
$class string The classname to create.
$alias string The alias of the panel.
$config array An array of config to use for the panel.
return DebugKit\DebugPanel The constructed panel class.
    protected function _create($class, $alias, $config)
    {
        $instance = new $class($this, $config);
        $this->eventManager()->on($instance);
        return $instance;
    }