src/ItemCollectors/ViewEngineCollector.php
public function register(callable $factory): self
    {
        $this->data->register($factory, $this->crtPriority);
        return $this;
    }
public function register(callable $factory): self
    {
        $this->data->register($factory, $this->crtPriority);
        return $this;
    }
public function register ( callable $ factory ) : self { $ this -> data -> register ( $ factory , $ this -> crtPriority ) ; return $ this ; }
Defines a new view engine

@param callable $factory

@return ViewEngineCollector
Defines a new view engine