src/Directive/InclusionDirective.php
public function setFiles()
    {
        $this->files = [];
        $path = $this->getValue();

        if (!preg_match('#^/#', $path)) {
            $path = $this->parser->getServer()->getPrefix().'/'.$path;
        }

        $iterator = new GlobIterator($path);
        foreach ($iterator as $path) {
            $this->files[] = $path;
        }

        return $this;
    }
public function setFiles()
    {
        $this->files = [];
        $path = $this->getValue();

        if (!preg_match('#^/#', $path)) {
            $path = $this->parser->getServer()->getPrefix().'/'.$path;
        }

        $iterator = new GlobIterator($path);
        foreach ($iterator as $path) {
            $this->files[] = $path;
        }

        return $this;
    }
public function setFiles ( ) { $ this -> files = [ ] ; $ path = $ this -> getValue ( ) ; if ( ! preg_match ( '#^/#' , $ path ) ) { $ path = $ this -> parser -> getServer ( ) -> getPrefix ( ) . '/' . $ path ; } $ iterator = new GlobIterator ( $ path ) ; foreach ( $ iterator as $ path ) { $ this -> files [ ] = $ path ; } return $ this ; }
Detects and memoizes the included files.
Detects and memoizes the included files .