<?php
/*
 * Copyright (c) 2012, webvariants GbR, http://www.webvariants.de
 *
 * This file is released under the terms of the MIT license. You can find the
 * complete text in the attached LICENSE file or online at:
 *
 * http://www.opensource.org/licenses/mit-license.php
 */

sly_Loader::addLoadPath(dirname(__FILE__).'/lib');

$dispatcher = sly_Core::dispatcher();
$deployer   = 'WV5_Deployment';

$dispatcher->register('SLY_CACHE_CLEARED', array($deployer, 'clearCache'));
$dispatcher->register('SLY_SYSTEM_CACHES', array($deployer, 'systemCacheList'));
$dispatcher->register('HEADER_CSS', array($deployer, 'compressCSS'));
$dispatcher->register('HEADER_CSS_FILES', array($deployer, 'compressCSSFiles'));
$dispatcher->register('HEADER_JAVASCRIPT', array($deployer, 'compressJS'));
$dispatcher->register('HEADER_JAVASCRIPT_FILES', array($deployer, 'compressJSFiles'));
$dispatcher->register('OUTPUT_FILTER', array($deployer, 'updateAssetCache'));
$dispatcher->register('SLY_BOOTCACHE_CLASSES_FRONTEND', array($deployer, 'bootcache'));
$dispatcher->register('SLY_BOOTCACHE_CLASSES_BACKEND', array($deployer, 'bootcache'));
