sampart/BreadcrumbsBundle

Make addItem() return $this (chaining)

Closed this issue · 1 comments

Hi,

thanks for this bundle, works like a charm!

Do you think it would be a good idea if the method WhiteOctober\BreadcrumbsBundle\Model\Breadcrumbs:addItem() returned $this so one could chain the item setup like this... ?

$this->get("white_october_breadcrumbs")
            ->addItem("Home", $this->get("router")->generate("index"))
            ->addItem("Other Stuff", $this->get("router")->generate("stuff"))
            ->addItem(...);

Dunno if i should fork your repository for just one line of code. :)

OK, i forked the project and supplied a commit. Sorry for "double posting" >.<