mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10:08 +00:00
Remove RouteHandlerListener
It's obsolete now
This commit is contained in:
parent
6edf3169b4
commit
293ffee46f
@ -1,12 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<data xmlns="http://www.woltlab.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.woltlab.com http://www.woltlab.com/XSD/maelstrom/eventListener.xsd">
|
|
||||||
<import>
|
|
||||||
<eventlistener>
|
|
||||||
<eventclassname>wcf\system\request\RouteHandler</eventclassname>
|
|
||||||
<eventname>didInit</eventname>
|
|
||||||
<environment>user</environment>
|
|
||||||
<inherit>0</inherit>
|
|
||||||
<listenerclassname>chat\system\event\listener\RouteHandlerListener</listenerclassname>
|
|
||||||
</eventlistener>
|
|
||||||
</import>
|
|
||||||
</data>
|
|
@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
namespace chat\system\event\listener;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds a new route to RouteHandler
|
|
||||||
*
|
|
||||||
* @author Maximilian Mader
|
|
||||||
* @copyright 2010-2013 Tim Düsterhus
|
|
||||||
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
|
||||||
* @package be.bastelstu.chat
|
|
||||||
* @subpackage system.event.listener
|
|
||||||
*/
|
|
||||||
class RouteHandlerListener implements \wcf\system\event\IEventListener {
|
|
||||||
/**
|
|
||||||
* @see \wcf\system\event\IEventListener::execute()
|
|
||||||
*/
|
|
||||||
public function execute($eventObj, $className, $eventName) {
|
|
||||||
$route = new \wcf\system\request\Route('chatAction');
|
|
||||||
$route->setSchema('/{controller}/{action}/{id}');
|
|
||||||
$route->setParameterOption('controller', null, 'Chat');
|
|
||||||
$route->setParameterOption('action', null, '(Send)');
|
|
||||||
$route->setParameterOption('id', null, '\d+', true);
|
|
||||||
$eventObj->addRoute($route);
|
|
||||||
}
|
|
||||||
}
|
|
@ -32,7 +32,6 @@
|
|||||||
<instruction type="option">option.xml</instruction>
|
<instruction type="option">option.xml</instruction>
|
||||||
<instruction type="templateListener">templateListener.xml</instruction>
|
<instruction type="templateListener">templateListener.xml</instruction>
|
||||||
<instruction type="pageMenu">pagemenu.xml</instruction>
|
<instruction type="pageMenu">pagemenu.xml</instruction>
|
||||||
<instruction type="eventListener">eventListener.xml</instruction>
|
|
||||||
<instruction type="aclOption">acloptions.xml</instruction>
|
<instruction type="aclOption">acloptions.xml</instruction>
|
||||||
<instruction type="acpMenu">acpMenu.xml</instruction>
|
<instruction type="acpMenu">acpMenu.xml</instruction>
|
||||||
<instruction type="userGroupOption">userGroupOption.xml</instruction>
|
<instruction type="userGroupOption">userGroupOption.xml</instruction>
|
||||||
@ -50,7 +49,6 @@
|
|||||||
<instruction type="option">option.xml</instruction>
|
<instruction type="option">option.xml</instruction>
|
||||||
<instruction type="templateListener">templateListener.xml</instruction>
|
<instruction type="templateListener">templateListener.xml</instruction>
|
||||||
<instruction type="pageMenu">pagemenu.xml</instruction>
|
<instruction type="pageMenu">pagemenu.xml</instruction>
|
||||||
<instruction type="eventListener">eventListener.xml</instruction>
|
|
||||||
<instruction type="aclOption">acloptions.xml</instruction>
|
<instruction type="aclOption">acloptions.xml</instruction>
|
||||||
<instruction type="acpMenu">acpMenu.xml</instruction>
|
<instruction type="acpMenu">acpMenu.xml</instruction>
|
||||||
<instruction type="userGroupOption">userGroupOption.xml</instruction>
|
<instruction type="userGroupOption">userGroupOption.xml</instruction>
|
||||||
|
Loading…
Reference in New Issue
Block a user