Skip to content

Instantly share code, notes, and snippets.

View carlosbelisario's full-sized avatar

Carlos Belisario carlosbelisario

  • Buenos Aires, Argentina
View GitHub Profile
@carlosbelisario
carlosbelisario / ManagerRegistry.php
Last active August 29, 2015 14:26 — forked from umpirsky/ManagerRegistry.php
Use the entity form type in Silex
<?php
namespace Umpirsky\Doctrine\Common\Persistance;
use Doctrine\Common\Persistence\AbstractManagerRegistry;
use Silex\Application;
/**
* References Doctrine connections and entity/document managers.
*
<?php
namespace AppBundle\Doctrine;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Repository\DefaultRepositoryFactory;
use Doctrine\ORM\Repository\RepositoryFactory;
class MyCustomRepositoryFactory implements RepositoryFactory
{