public function addPath($dir) { if (empty($this->renderer)) { $this->renderer = new Renderer(); } $this->renderer->addPath($dir); return $this; }