public function addDir(string $pathname): self
    {
        $this->dirs[] = $pathname;
        $this->optimizedDirs = null;
        return $this;
    }
public function addDir(string $pathname): self
    {
        $this->dirs[] = $pathname;
        $this->optimizedDirs = null;
        return $this;
    }
public function addDir ( string $ pathname ) : self { $ this -> dirs [ ] = $ pathname ; $ this -> optimizedDirs = null ; return $ this ; }
Registers a directory that will be publicly accessible.

@param string $pathname The directory name.
@return self Returns a reference to itself.
@see BearFramework\App
@see BearFramework\App\DataRepository::validate
@see BearFramework\App\DataRepository::set()
@example Routes.php description
Registers a directory that will be publicly accessible .