diff --git a/src/LfmPath.php b/src/LfmPath.php index 81e97511..702501ff 100644 --- a/src/LfmPath.php +++ b/src/LfmPath.php @@ -120,7 +120,7 @@ public function pretty($item_path) $lfm_path = clone $this; $lfm_path = $lfm_path->setName($this->helper->getNameFromPath($item_path)); - return Container::getInstance()->make(LfmItem::class, [$lfm_path, $this->helper]); + return Container::getInstance()->makeWith(LfmItem::class, ['lfm' => $lfm_path, 'helper' => $this->helper]); } public function delete()