for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Loevgaard\DandomainAltapayBundle\Tests\Translation\Fixture;
use Loevgaard\DandomainAltapayBundle\Translation\TranslatorTrait;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Translation\TranslatorInterface;
class UsingTranslator
{
use TranslatorTrait;
/**
* @var ContainerInterface
*/
protected $container;
public function __construct(ContainerInterface $container)
$this->container = $container;
}
* @return TranslatorInterface
public function getIt()
return $this->getTranslator($this->container);