Skip to content

Instantly share code, notes, and snippets.

View 1ed's full-sized avatar

Gábor Egyed 1ed

View GitHub Profile
@1ed
1ed / ControllerListener.php
Last active April 20, 2016 14:50
Using Closures as controllers in Symfony
<?php
namespace AppBundle\EventListener;
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
class AppControllerListener
{
public function onKernelRequest(GetResponseEvent $event)
{

Keybase proof

I hereby claim:

  • I am 1ed on github.
  • I am 1ed (https://keybase.io/1ed) on keybase.
  • I have a public key ASDbYaYMIOzgyGDZWGoP-S0nQpMtKfUYqEJ0hRzs8wrgygo

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.