Commit a940fbe3 authored by Dave Marshall's avatar Dave Marshall

Clarify docblock

parent 0bce9898
...@@ -408,15 +408,12 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -408,15 +408,12 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
/** /**
* Registers a view handler. * Registers a view handler.
* *
* View handlers are simple callables which take a single * View handlers are simple callables which take a controller result and the
* GetResponseForControllerResultEvent as an argument. They care called * request as arguments, whenever a controller returns a value that is not
* when a controller returns a value that is not an instance of Response. * an instance of Response. When this occurs, all suitable handlers will be
* called, until one returns a Response object.
* *
* Call setResponse() to set the response that will be returned for the * @param mixed $callback View handler callback
* current request. The propagation of this event is stopped as soon as a
* response is set.
*
* @param mixed $callback View handelr callback
* @param integer $priority The higher this value, the earlier an event * @param integer $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0) * listener will be triggered in the chain (defaults to 0)
*/ */
......
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