public function setPaths($paths, $namespace = self::DEFAULT_NAMESPACE)
    {
        if (! is_array($paths)) {
            $paths = [$paths];
        }
        $this->paths[$namespace] = [];
        foreach ($paths as $path) {
            $this->addPath($path, $namespace);
        }
    }
public function setPaths($paths, $namespace = self::DEFAULT_NAMESPACE)
    {
        if (! is_array($paths)) {
            $paths = [$paths];
        }
        $this->paths[$namespace] = [];
        foreach ($paths as $path) {
            $this->addPath($path, $namespace);
        }
    }
public function setPaths ( $ paths , $ namespace = self :: DEFAULT_NAMESPACE ) { if ( ! is_array ( $ paths ) ) { $ paths = [ $ paths ] ; } $ this -> paths [ $ namespace ] = [ ] ; foreach ( $ paths as $ path ) { $ this -> addPath ( $ path , $ namespace ) ; } }
Sets the paths where templates are stored.

@param string|array $paths     A path or an array of paths where to look for templates
@param string       $namespace A path namespace
Sets the paths where templates are stored .