Commit 4005cf28 authored by Fabien Potencier's avatar Fabien Potencier

removed flush() argument

parent e98dd5f7
...@@ -399,12 +399,10 @@ class Application extends Container implements HttpKernelInterface, TerminableIn ...@@ -399,12 +399,10 @@ class Application extends Container implements HttpKernelInterface, TerminableIn
/** /**
* Flushes the controller collection. * Flushes the controller collection.
*
* @param string $prefix The route prefix
*/ */
public function flush($prefix = '') public function flush()
{ {
$this['routes']->addCollection($this['controllers']->flush($prefix)); $this['routes']->addCollection($this['controllers']->flush());
} }
/** /**
......
...@@ -182,11 +182,9 @@ class ControllerCollection ...@@ -182,11 +182,9 @@ class ControllerCollection
/** /**
* Persists and freezes staged controllers. * Persists and freezes staged controllers.
* *
* @param string $prefix
*
* @return RouteCollection A RouteCollection instance * @return RouteCollection A RouteCollection instance
*/ */
public function flush($prefix = '') public function flush()
{ {
if (null === $this->routesFactory) { if (null === $this->routesFactory) {
$routes = new RouteCollection(); $routes = new RouteCollection();
...@@ -194,7 +192,7 @@ class ControllerCollection ...@@ -194,7 +192,7 @@ class ControllerCollection
$routes = $this->routesFactory; $routes = $this->routesFactory;
} }
return $this->doFlush($prefix, $routes); return $this->doFlush('', $routes);
} }
private function doFlush($prefix, RouteCollection $routes) private function doFlush($prefix, RouteCollection $routes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment