Skip to content

Instantly share code, notes, and snippets.

View rdohms's full-sized avatar
🔧
fixing all the things

Rafael Dohms rdohms

🔧
fixing all the things
View GitHub Profile
/**
* @extra:Route("/", name="homepage")
* @extra:Template()
*/
public function indexAction()
{
return array();
}
@jaytaph
jaytaph / complete_console.sh
Last active October 5, 2015 21:08
Console completion for Symfony2
#!/bin/sh
#
# Symfony2 App/Console autocompletion (commands and arguments only)
#
# Usable for both bash and zsh (probably)
#
# Usage:
# Load the script (or add to your .bashrc)
#
# source ./complete_console.sh
@everzet
everzet / RethrowExceptionListener.php
Last active February 27, 2017 12:18
Rethrow non-HTTP exceptions in the test environment (aka functional tester saver)
<?php
namespace App\EventListener;
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
class ExceptionRethrowListener
{
public function onKernelException(GetResponseForExceptionEvent $event)