public function normalize($widget): void
    {
        list($controllerMethod, $ctrlClass) = $this->determineDataMethod($widget);

        $this->checkControllerExists($ctrlClass);
        $this->checkDataMethodExists($ctrlClass);

        $widget->controller = $controllerMethod;
    }
public function normalize($widget): void
    {
        list($controllerMethod, $ctrlClass) = $this->determineDataMethod($widget);

        $this->checkControllerExists($ctrlClass);
        $this->checkDataMethodExists($ctrlClass);

        $widget->controller = $controllerMethod;
    }
public function normalize ( $ widget ) : void { list ( $ controllerMethod , $ ctrlClass ) = $ this -> determineDataMethod ( $ widget ) ; $ this -> checkControllerExists ( $ ctrlClass ) ; $ this -> checkDataMethodExists ( $ ctrlClass ) ; $ widget -> controller = $ controllerMethod ; }
Figures out which method should be called as the controller.
@param object $widget
@return void
Figures out which method should be called as the controller .