Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created June 14, 2012 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreymcmahon/2929853 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2929853 to your computer and use it in GitHub Desktop.
Attaching the ExceptionHandler in our HttpKernel based framework - http://www.symfonycentral.com
<?php
require_once __DIR__.'/../vendor/.composer/autoload.php';
use Symfony\Component\HttpKernel;
// ...
$listener = new HttpKernel\EventListener\ExceptionListener('Calendar\\Controller\\ErrorController::exceptionAction');
$dispatcher->addSubscriber($listener);
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment