for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the OrbitaleCmsBundle package.
*
* (c) Alexandre Rock Ancelet <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Orbitale\Bundle\CmsBundle\Repository;
use Doctrine\ORM\EntityRepository;
/**
* This class is used to allow all CmsBundle's repositories to use Doctrine cache.
* @author Sandor Farkas <[email protected]>
class AbstractCmsRepository extends EntityRepository
{
* @var bool
protected $cacheEnabled = false;
* @var int
protected $cacheTtl;
* @param array $cacheConfig
public function setConfig(array $cacheConfig)
$this->cacheEnabled = $cacheConfig['enabled'];
$this->cacheTtl = $cacheConfig['ttl'];
}