Version 2.0.0-RC3

This commit is contained in:
dmzx
2016-03-26 09:15:07 +01:00
parent e6c96ec8f0
commit 5f8c5d3f09
84 changed files with 2046 additions and 1300 deletions

174
config/config_2_0_0.yml Normal file
View File

@@ -0,0 +1,174 @@
parameters:
# Global settings that only the administrator is allowed to modify.
# The values are stored in the phpbb_config table and can be
# accessed using the \phpbb\config\config $config class.
dmzx.mchat.config_global:
mchat_bbcode_disallowed:
default: ''
validation:
- 'string'
- false
- 0
- 255
mchat_custom_height:
default: 350
validation:
- 'num'
- false
- 50
- 1000
mchat_custom_page:
default: 1
mchat_edit_delete_limit:
default: 0
mchat_flood_time:
default: 0
validation:
- 'num'
- false
- 0
- 60
mchat_index_height:
default: 250
validation:
- 'num'
- false
- 50
- 1000
mchat_live_updates:
default: 1
mchat_max_message_lngth:
default: 500
validation:
- 'num'
- false
- 0
- 1000
mchat_message_num_archive:
default: 25
validation:
- 'num'
- false
- 10
- 100
mchat_message_num_custom:
default: 10
validation:
- 'num'
- false
- 5
- 50
mchat_message_num_index:
default: 10
validation:
- 'num'
- false
- 5
- 50
mchat_navbar_link:
default: 1
mchat_override_min_post_chars:
default: 0
mchat_override_smilie_limit:
default: 0
mchat_posts_edit:
default: 0
mchat_posts_quote:
default: 0
mchat_posts_reply:
default: 0
mchat_posts_topic:
default: 0
mchat_prune:
default: 0
mchat_prune_num:
default: 0
mchat_refresh:
default: 10
validation:
- 'num'
- false
- 5
- 60
mchat_rules:
default: ''
validation:
- 'string'
- false
- 0
- 255
mchat_static_message:
default: ''
validation:
- 'string'
- false
- 0
- 255
mchat_timeout:
default: 0
validation:
- 'num'
- false
- 0
- -1 # This value is replaced with $config['session_length'] in the \dmzx\mchat\core\settings class
mchat_whois:
default: 1
mchat_whois_refresh:
default: 60
validation:
- 'num'
- false
- 10
- 300
# User-specific settings for which the administrator can set default
# values as well as adjust permissions to allow users to customize them.
# For each setting a new column is added to the phpbb_users table.
dmzx.mchat.config_ucp:
mchat_avatars:
default: 1
type: 'BOOL'
mchat_capital_letter:
default: 1
type: 'BOOL'
mchat_character_count:
default: 1
type: 'BOOL'
mchat_date:
default: 'D M d, Y g:i a'
type: 'VCHAR:64'
validation:
- 'string'
- false
- 0
- 64
mchat_index:
default: 1
type: 'BOOL'
mchat_input_area:
default: 1
type: 'BOOL'
mchat_location:
default: 1
type: 'BOOL'
mchat_message_top:
default: 1
type: 'BOOL'
mchat_pause_on_input:
default: 0
type: 'BOOL'
mchat_posts:
default: 1
type: 'BOOL'
mchat_relative_time:
default: 1
type: 'BOOL'
mchat_sound:
default: 1
type: 'BOOL'
mchat_stats_index:
default: 0
type: 'BOOL'
mchat_whois_index:
default: 1
type: 'BOOL'

View File

@@ -1,18 +1,18 @@
imports:
- { resource: tables.yml }
- { resource: user_config_keys.yml }
- { resource: config_2_0_0.yml }
services:
dmzx.mchat.acp.controller:
class: dmzx\mchat\controller\acp_controller
arguments:
- '@config'
- '@template'
- '@log'
- '@user'
- '@dbal.conn'
- '@cache'
- '@request'
- '@dmzx.mchat.settings'
- '%dmzx.mchat.table.mchat%'
- '%dmzx.mchat.table.mchat_deleted_messages%'
- '%core.root_path%'
@@ -20,12 +20,14 @@ services:
dmzx.mchat.ucp.controller:
class: dmzx\mchat\controller\ucp_controller
arguments:
- '@config'
- '@template'
- '@user'
- '@auth'
- '@dbal.conn'
- '@request'
- '%user_config_keys%'
- '@dmzx.mchat.settings'
- '%core.root_path%'
- '%core.php_ext%'
dmzx.mchat.main.controller:
class: dmzx\mchat\controller\main_controller
arguments:
@@ -36,7 +38,7 @@ services:
class: dmzx\mchat\core\mchat
arguments:
- '@dmzx.mchat.functions'
- '@config'
- '@dmzx.mchat.settings'
- '@controller.helper'
- '@template'
- '@user'
@@ -50,7 +52,7 @@ services:
dmzx.mchat.functions:
class: dmzx\mchat\core\functions
arguments:
- '@config'
- '@dmzx.mchat.settings'
- '@user'
- '@auth'
- '@log'
@@ -61,19 +63,28 @@ services:
- '%dmzx.mchat.table.mchat%'
- '%dmzx.mchat.table.mchat_deleted_messages%'
- '%dmzx.mchat.table.mchat_sessions%'
dmzx.mchat.settings:
class: dmzx\mchat\core\settings
arguments:
- '@user'
- '@config'
- '@auth'
- '%dmzx.mchat.config_global%'
- '%dmzx.mchat.config_ucp%'
dmzx.mchat.acp.listener:
class: dmzx\mchat\event\acp_listener
arguments:
- '@template'
- '@request'
- '@user'
- '%user_config_keys%'
- '@dmzx.mchat.settings'
- '%core.root_path%'
- '%core.php_ext%'
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,9 +0,0 @@
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