class ControllerFactory {    public function createController($controller)    {        if (file_exists($path = __DIR__ . 'app/controllers/' . $controller . '.php')) {            require_once $path;            return true;        }    }}It seems a bit overkill to have a class to do this. To intiate a class to build another one, am I correct? Anyother way I can do these/ or to improve this one. I guess make it static would be an alternative?
Small factory class
php