PHP Class DebugKit\Panel\PanelRegistry

Inheritance: extends Cake\Core\ObjectRegistry, use trait Cake\Event\EventDispatcherTrait
Datei anzeigen Open project: cakephp/debug_kit Class Usage Examples

Public Methods

Method Description
__construct ( Cake\Event\EventManager $events ) Constructor

Protected Methods

Method Description
_create ( string $class, string $alias, array $config ) : DebugPanel Create the panels instance.
_resolveClassName ( string $class ) : string | false Resolve a panel class name.
_throwMissingClassError ( string $class, string $plugin ) : void Throws an exception when a component is missing.

Method Details

__construct() public method

Constructor
public __construct ( Cake\Event\EventManager $events )
$events Cake\Event\EventManager Event Manager that panels should bind to. Typically this is the global manager.

_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.

_resolveClassName() protected method

Part of the template method for Cake\Utility\ObjectRegistry::load()
protected _resolveClassName ( string $class ) : string | false
$class string Partial class name to resolve.
return string | false Either the correct class name or false.

_throwMissingClassError() protected method

Part of the template method for Cake\Utility\ObjectRegistry::load()
protected _throwMissingClassError ( string $class, string $plugin ) : void
$class string The classname that is missing.
$plugin string The plugin the component is missing in.
return void