<?php
/*
 * Copyright (c) 2013, 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
 */

define('DEVUTILS_PATH', rtrim(dirname(__FILE__), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR);

// load i18n stuff
sly_Core::getI18N()->appendFile(DEVUTILS_PATH.'lang');

// init autoloader
sly_Loader::addLoadPath(DEVUTILS_PATH.'lib');

// And here we go!
if (sly_Core::isBackend()) {
	$dispatcher = sly_Core::dispatcher();
	$dispatcher->register('SLY_CONTROLLER_FOUND', array('WV_Sally', 'init'));
	$dispatcher->register('SLY_BOOTCACHE_CLASSES_FRONTEND', array('WV_Sally', 'bootcache'));
	$dispatcher->register('SLY_BOOTCACHE_CLASSES_BACKEND', array('WV_Sally', 'bootcache'));
}
