Skip to content

Instantly share code, notes, and snippets.

@teklakct
teklakct / gist:17c6e94fddfb8ab0a86a
Created January 8, 2015 07:57
fosrest i nelmiocors
fos_rest:
routing_loader:
default_format: json
include_format: false
param_fetcher_listener: true
body_converter:
enabled: true
serializer:
groups: ['Default']
body_listener: true
@teklakct
teklakct / Controller.php
Last active May 15, 2017 18:26
Symfony 2.5 profiler a Behat 3
<?php
namespace Bundle\WebsiteBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\RouterInterface;