<?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
 */

define('_WV24_DBG_PATH', dirname(__FILE__).'/');

// init autloader
sly_Loader::addLoadPath(_WV24_DBG_PATH.'lib');

// register listener
if (sly_Core::isBackend() && sly_Util_User::getCurrentUser() !== null) {
	$dispatcher = sly_Core::dispatcher();
	$dispatcher->register('PAGE_HEADER', array('_WV24_Dbg_Extensions', 'initLayout'));
	$dispatcher->register('SLY_CONTROLLER_FOUND', array('_WV24_Dbg_Extensions', 'onControllerFound'));
}
