DebugKit\Controller\Component\ToolbarComponent::__construct PHP Method

__construct() public method

If debug is off the component will be disabled and not do any further time tracking or load the toolbar helper.
public __construct ( Cake\Controller\ComponentRegistry $registry, array $settings = [] )
$registry Cake\Controller\ComponentRegistry The ComponentRegistry
$settings array An array of config
    public function __construct(ComponentRegistry $registry, $settings = [])
    {
        parent::__construct($registry, $settings);
        $msg = 'DebugKit is now loaded through plugin bootstrapping. Make sure you have ' . '`Plugin::load("DebugKit", ["bootstrap" => true]);` in your application\'s bootstrap.php.';
        throw new \RuntimeException($msg);
    }
ToolbarComponent