Commit 7cd21dc2 authored by Fabien Potencier's avatar Fabien Potencier

minor #890 Update phpDoc for ControllerCollection (Kilte)

This PR was squashed before being merged into the 1.2.x-dev branch (closes #890).

Discussion
----------

Update phpDoc for ControllerCollection

__call() forwards method-calls to Route, but returns instance of ControllerCollection.
 Added the listing Route's methods, so that IDEs know they are valid.

Commits
-------

53b3a357 Update phpDoc for ControllerCollection
parents 77871717 53b3a357
......@@ -21,6 +21,18 @@ use Symfony\Component\HttpFoundation\Request;
* until flush() is called, at which point all controllers are frozen and
* converted to a RouteCollection.
*
* __call() forwards method-calls to Route, but returns instance of ControllerCollection
* listing Route's methods below, so that IDEs know they are valid
*
* @method \Silex\ControllerCollection assert(string $variable, string $regexp)
* @method \Silex\ControllerCollection value(string $variable, mixed $default)
* @method \Silex\ControllerCollection convert(string $variable, mixed $callback)
* @method \Silex\ControllerCollection method(string $method)
* @method \Silex\ControllerCollection requireHttp()
* @method \Silex\ControllerCollection requireHttps()
* @method \Silex\ControllerCollection before(mixed $callback)
* @method \Silex\ControllerCollection after(mixed $callback)
*
* @author Igor Wiedler <igor@wiedler.ch>
* @author Fabien Potencier <fabien@symfony.com>
*/
......
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