heisencache-8.x-1.x-dev/heisencache.inc

heisencache.inc
<?php
/**
 * @file
 *   cache.inc: override existing caches.
 *
 * @author: Frederic G. MARAND <fgm@osinet.fr>
 *
 * @copyright (c) 2013-2014 Ouest Systèmes Informatiques (OSInet).
 *
 * @license General Public License version 2 or later
 */

use Drupal\heisencache\Config;

require_once __DIR__ . '/class_loader.inc';

function heisencache_setup($configuration) {
  $config = Config::instance($configuration);
  drupal_register_shutdown_function(array($config->getEmitter(), 'emit'), 'onShutdown', 'cache');
  return $config->override();
}

$GLOBALS['conf'] = heisencache_setup($GLOBALS['conf']);

$settings_path = conf_path() . '/settings.heisencache.inc';
if (is_file($settings_path)) {
  /** @noinspection PhpIncludeInspection */
  require_once $settings_path;
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc