Ejemplo n.º 1
0
 public function __construct(SourceInterface $subtype)
 {
     list($this->type, $this->subtype) = explode(DIRECTORY_SEPARATOR, $subtype->getPath());
     $this->partial = Navigation::escapePath($subtype->getNormalizedPath());
     $this->path = Navigation::escapePath($subtype->getPath());
 }
Ejemplo n.º 2
0
 public function makePath(SourcePattern $pattern)
 {
     $path = Navigation::escapePath($pattern->getPath());
     return PatternLab::makePath([$path, "{$path}.html"]);
 }