FOF30\Factory\BasicFactory::createView PHP Méthode

createView() protected méthode

Creates a View object
protected createView ( string $viewClass, array $config = [] ) : Model
$viewClass string The fully qualified class name for the View
$config array Optional MVC configuration values for the View object.
Résultat FOF30\Model\Model
    protected function createView($viewClass, array $config = array())
    {
        if (!class_exists($viewClass)) {
            throw new ViewNotFound($viewClass);
        }
        return new $viewClass($this->container, $config);
    }