Browse Source

make RouteCollection::remove() fluent

Alan Bem 13 years ago
parent
commit
ab62310543
1 changed files with 3 additions and 1 deletions
  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;
     }
 
     /**