/home/sharedstore/public_html/prestashop.sharedstore.ma/src/PrestaShopBundle/Cache
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/PrestaShopBundle/Cache/CacheWarmer.php (1898B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
namespace PrestaShopBundle\Cache;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
class CacheWarmer implements CacheWarmerInterface
{
private $fileSystem;
public function __construct(FileSystem $fileSystem)
{
$this->fileSystem = $fileSystem;
}
public function warmUp($cacheDir)
{
$legacyDirs = [
$cacheDir . DIRECTORY_SEPARATOR . 'cachefs',
$cacheDir . DIRECTORY_SEPARATOR . 'purifier',
$cacheDir . DIRECTORY_SEPARATOR . 'push',
$cacheDir . DIRECTORY_SEPARATOR . 'sandbox',
$cacheDir . DIRECTORY_SEPARATOR . 'tcpdf',
];
$this->fileSystem->mkdir($legacyDirs);
}
public function isOptional()
{
return false;
}
}