public function section($name, $class = null)
    {
        /** @var \Foil\Contracts\SectionInterface $section */
        $section = $this->factory->factory($name, $this->mode(), $class);
        $section->start();
        $this->stack->push($section);
        $this->names->push($name);
    }
public function section($name, $class = null)
    {
        /** @var \Foil\Contracts\SectionInterface $section */
        $section = $this->factory->factory($name, $this->mode(), $class);
        $section->start();
        $this->stack->push($section);
        $this->names->push($name);
    }
public function section ( $ name , $ class = null ) { /** @var \Foil\Contracts\SectionInterface $section */ $ section = $ this -> factory -> factory ( $ name , $ this -> mode ( ) , $ class ) ; $ section -> start ( ) ; $ this -> stack -> push ( $ section ) ; $ this -> names -> push ( $ name ) ; }
Open a section. Optionally is possible to use a custom section class.

@param string $name  Section id
@param string $class Custom class name
Open a section . Optionally is possible to use a custom section class .