Skip to content

Instantly share code, notes, and snippets.

@TomAdam
TomAdam / IdentityToEntityTransformer.php
Created March 30, 2015 17:29
Simple Entity Form Type
<?php
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
class IdentityToEntityTransformer implements DataTransformerInterface
{
private $repository;
private $repositoryMethod;
private $identifierMethod;
@TomAdam
TomAdam / config.yaml
Created December 12, 2014 00:12
PuPHPet config that results in bad nginx configuration
---
vagrantfile-local:
vm:
box: puphpet/debian75-x64
box_url: puphpet/debian75-x64
hostname: ''
memory: '512'
cpus: '1'
chosen_provider: virtualbox
network: