Version 1.0.0-RC2

This commit is contained in:
dmzx
2016-03-06 16:06:56 +01:00
parent fdde6ee2b2
commit 7fc464ff17
92 changed files with 2909 additions and 1845 deletions

View File

@@ -1,13 +1,16 @@
dmzx_mchat_controller:
path: /mchat
methods: [GET]
defaults: { _controller: dmzx.mchat.main.controller:page, page: custom }
dmzx_mchat_page_controller:
path: /mchat/{page}
methods: [GET]
defaults: { _controller: dmzx.mchat.main.controller:page }
requirements:
action: 'archive|rules|whois'
page: 'archive|rules|whois'
dmzx_mchat_action_controller:
path: /mchat-{action}
path: /mchat/action-{action}
methods: [POST]
defaults: { _controller: dmzx.mchat.main.controller:action }
requirements:
action: 'add|edit|del|refresh|whois'

View File

@@ -1,9 +1,10 @@
imports:
- { resource: tables.yml }
- { resource: user_config_keys.yml }
services:
dmzx.mchat.admin.controller:
class: dmzx\mchat\controller\admin_controller
dmzx.mchat.acp.controller:
class: dmzx\mchat\controller\acp_controller
arguments:
- '@config'
- '@template'
@@ -13,17 +14,28 @@ services:
- '@cache'
- '@request'
- '%dmzx.mchat.table.mchat%'
- '%dmzx.mchat.table.mchat_deleted_messages%'
- '%core.root_path%'
- '%core.php_ext%'
dmzx.mchat.ucp.controller:
class: dmzx\mchat\controller\ucp_controller
arguments:
- '@config'
- '@template'
- '@user'
- '@dbal.conn'
- '@request'
- '%user_config_keys%'
dmzx.mchat.main.controller:
class: dmzx\mchat\controller\main_controller
arguments:
- '@user'
- '@dmzx.mchat.core'
- '@request'
dmzx.mchat.core:
class: dmzx\mchat\core\mchat
arguments:
- '@dmzx.mchat.functions_mchat'
- '@dmzx.mchat.functions'
- '@config'
- '@controller.helper'
- '@template'
@@ -32,10 +44,11 @@ services:
- '@pagination'
- '@request'
- '@dispatcher'
- '@ext.manager'
- '%core.root_path%'
- '%core.php_ext%'
dmzx.mchat.functions_mchat:
class: dmzx\mchat\core\functions_mchat
dmzx.mchat.functions:
class: dmzx\mchat\core\functions
arguments:
- '@config'
- '@user'
@@ -46,11 +59,21 @@ services:
- '%core.root_path%'
- '%core.php_ext%'
- '%dmzx.mchat.table.mchat%'
- '%dmzx.mchat.table.mchat_deleted_messages%'
- '%dmzx.mchat.table.mchat_sessions%'
dmzx.mchat.listener:
class: dmzx\mchat\event\listener
dmzx.mchat.acp.listener:
class: dmzx\mchat\event\acp_listener
arguments:
- '@dmzx.mchat.functions_mchat'
- '@template'
- '@request'
- '@user'
- '%user_config_keys%'
tags:
- { name: event.listener }
dmzx.mchat.main.listener:
class: dmzx\mchat\event\main_listener
arguments:
- '@dmzx.mchat.functions'
- '@dmzx.mchat.core'
- '@controller.helper'
- '@user'

View File

@@ -1,3 +1,4 @@
parameters:
dmzx.mchat.table.mchat: %core.table_prefix%mchat
dmzx.mchat.table.mchat_deleted_messages: %core.table_prefix%mchat_deleted_messages
dmzx.mchat.table.mchat_sessions: %core.table_prefix%mchat_sessions

View File

@@ -0,0 +1,9 @@
parameters:
user_config_keys:
- user_mchat_index
- user_mchat_sound
- user_mchat_stats_index
- user_mchat_topics
- user_mchat_avatars
- user_mchat_capital_letter
- user_mchat_input_area