Преглед изворни кода

make RouteCollection::remove() fluent

Alan Bem пре 13 година
родитељ
комит
ab62310543
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      Route/RouteCollection.php

+ 3 - 1
Route/RouteCollection.php

@@ -115,11 +115,13 @@ class RouteCollection
 
     /**
      * @param $name
-     * @return void
+     * @return \Sonata\AdminBundle\Route\RouteCollection
      */
     public function remove($name)
     {
         unset($this->elements[$this->getCode($name)]);
+
+        return $this;
     }
 
     /**