for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the AsmTranslationLoaderBundle package.
*
* (c) Marc Aschmann <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Asm\TranslationLoaderBundle\Config\Resource;
use Asm\TranslationLoaderBundle\Translation\DatabaseLoader;
use Symfony\Component\Config\Resource\ResourceInterface;
/**
* Resource plugging the TranslationManager into the Symfony Translator.
* @author Christian Flothmann <[email protected]>
class TranslationManagerResource implements ResourceInterface
{
* @var DatabaseLoader
private $loader;
* @param DatabaseLoader $loader
public function __construct(DatabaseLoader $loader)
$this->loader = $loader;
}
* {@inheritDoc}
public function isFresh($timestamp)
return $this->loader->isFresh($timestamp);
public function getResource()
return $this->loader;
public function __toString()
return 'DatabaseLoader';