public function compose(Section $section = null): Result
    {
        $this->container->set('section', $section);
        
        if (null !== $section) {
            $this->initParams();
            $this->setParams($section->params);
            $this->container->set('params', $this->params);
        }
        
        $this->setData($section);
        
        return new Result($this->getView());
    }
public function compose(Section $section = null): Result
    {
        $this->container->set('section', $section);
        
        if (null !== $section) {
            $this->initParams();
            $this->setParams($section->params);
            $this->container->set('params', $this->params);
        }
        
        $this->setData($section);
        
        return new Result($this->getView());
    }
public function compose ( Section $ section = null ) : Result { $ this -> container -> set ( 'section' , $ section ) ; if ( null !== $ section ) { $ this -> initParams ( ) ; $ this -> setParams ( $ section -> params ) ; $ this -> container -> set ( 'params' , $ this -> params ) ; } $ this -> setData ( $ section ) ; return new Result ( $ this -> getView ( ) ) ; }
Main controller method, compose all content.
@param \Ufo\Core\Section $section = null
@return \Ufo\Core\Result
@throws \Ufo\Core\ModuleParameterConflictException
@throws \Ufo\Core\ModuleParameterFormatException;
@throws \Ufo\Core\ModuleParameterUnknownException
Main controller method compose all content .