Cake\Controller\Controller::_loadComponents PHP Method

_loadComponents() protected method

Loads the defined components using the Component factory.
protected _loadComponents ( ) : void
return void
    protected function _loadComponents()
    {
        if (empty($this->components)) {
            return;
        }
        $registry = $this->components();
        $components = $registry->normalizeArray($this->components);
        foreach ($components as $properties) {
            $this->loadComponent($properties['class'], $properties['config']);
        }
    }