for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TreeHouse\QueueBundle\Flusher;
use Doctrine\Common\Persistence\ManagerRegistry;
class DoctrineFlusher implements FlushingInterface
{
/**
* @var ManagerRegistry
*/
protected $doctrine;
* @param ManagerRegistry $doctrine
public function __construct(ManagerRegistry $doctrine)
$this->doctrine = $doctrine;
}
* @inheritdoc
public function flush()
$this->doctrine->getManager()->flush();