Commit 0e9c1150 authored by katbailey's avatar katbailey
Browse files

Adding a docblock with an explanation of why need a factory method for the Exception Listener

parent e665805c
......@@ -28,6 +28,15 @@ class ExceptionController extends ContainerAware {
protected $negotiation;
* Factory method for getting an Exception Listener. Since this needs to be
* instanciated with a controller callable, i.e. an ExceptionConroller object
* and the name of the method to call, we can't just register it to the DIC
* the regular way.
* @todo: This probably doesn't belong here, but I'm not sure where would be a better
* place to put it... in a class of its own?
public static function getExceptionListener(Container $container) {
$negotiation = $container->get('content_negotiation');
$exceptionController = new self($negotiation);
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