diff --git a/composer.json b/composer.json index 21aa15c..bcdd26d 100644 --- a/composer.json +++ b/composer.json @@ -3,8 +3,8 @@ "type": "phpbb-extension", "description": "Provides a pastebin including syntax highlighting", "homepage": "https://www.phpbb.de/community/", - "version": "2.0.0", - "time": "2019-10-24", + "version": "2.0.1", + "time": "2020-01-24", "license": "GPL-2.0-only", "authors": [ { @@ -12,6 +12,12 @@ "email": "gn#36@phpbb.de", "homepage": "https://www.phpbb.de/", "role": "Lead Developer" + }, + { + "name": "Christian Schnegelberger", + "email": "crizzo@phpbb.de", + "homepage": "https://www.phpbb.de/", + "role": "Developer" } ], "require": { diff --git a/config/routing.yml b/config/routing.yml index f90ba44..895c4b7 100644 --- a/config/routing.yml +++ b/config/routing.yml @@ -1,3 +1,5 @@ phpbbde_pastebin_main_controller: - pattern: /pastebin/ - defaults: { _controller: phpbbde.pastebin.controller.main:handle, name: "" } \ No newline at end of file + path: /pastebin/ + defaults: + _controller: 'phpbbde.pastebin.controller.main:handle' + name: "" diff --git a/config/services.yml b/config/services.yml index 99d50f7..2693b5f 100644 --- a/config/services.yml +++ b/config/services.yml @@ -1,67 +1,67 @@ parameters: - phpbbde.pastebin.path: %core.root_path%ext/phpbbde/pastebin/ - phpbbde.pastebin.geshi: %phpbbde.pastebin.path%vendor/easybook/geshi/ - phpbbde.pastebin.geshilangs: %phpbbde.pastebin.geshi%geshi/ + phpbbde.pastebin.path: '%core.root_path%ext/phpbbde/pastebin/' + phpbbde.pastebin.geshi: '%phpbbde.pastebin.path%vendor/easybook/geshi/' + phpbbde.pastebin.geshilangs: '%phpbbde.pastebin.geshi%geshi/' phpbbde.pastebin.cron.prune_interval: 86400 - tables.phpbbde.pastebin.pastebin: %core.table_prefix%pastebin + tables.phpbbde.pastebin.pastebin: '%core.table_prefix%pastebin' services: phpbbde.pastebin.functions.utility: class: phpbbde\pastebin\functions\utility arguments: - - %phpbbde.pastebin.geshilangs% + - '%phpbbde.pastebin.geshilangs%' phpbbde.pastebin.functions.pastebin: class: phpbbde\pastebin\functions\pastebin arguments: - - @dbal.conn - - @user - - %tables.phpbbde.pastebin.pastebin% + - '@dbal.conn' + - '@user' + - '%tables.phpbbde.pastebin.pastebin%' phpbbde.pastebin.controller.main: class: phpbbde\pastebin\controller\main arguments: - - @auth - - @cache - - @config - - @request - - @dbal.conn - - @template - - @user - - @controller.helper - - @captcha.factory - - @phpbbde.pastebin.functions.utility - - @phpbbde.pastebin.functions.pastebin - - %core.root_path% - - %core.php_ext% - - %phpbbde.pastebin.geshi% - - %phpbbde.pastebin.geshilangs% - - %tables.phpbbde.pastebin.pastebin% + - '@auth' + - '@cache' + - '@config' + - '@request' + - '@dbal.conn' + - '@template' + - '@user' + - '@controller.helper' + - '@captcha.factory' + - '@phpbbde.pastebin.functions.utility' + - '@phpbbde.pastebin.functions.pastebin' + - '%core.root_path%' + - '%core.php_ext%' + - '%phpbbde.pastebin.geshi%' + - '%phpbbde.pastebin.geshilangs%' + - '%tables.phpbbde.pastebin.pastebin%' phpbbde.pastebin.base_listener: class: phpbbde\pastebin\event\base_events arguments: - - @auth - - @template - - @controller.helper - - @user - - %core.root_path% - - %core.php_ext% + - '@auth' + - '@template' + - '@controller.helper' + - '@user' + - '%core.root_path%' + - '%core.php_ext%' tags: - - { name: event.listener } + - {name: event.listener} phpbbde.pastebin.acp_listener: class: phpbbde\pastebin\event\acp_events tags: - - { name: event.listener } + - {name: event.listener} phpbbde.pastebin.cron.main: class: phpbbde\pastebin\cron\main arguments: - - @cache - - @config - - @dbal.conn - - @log - - %phpbbde.pastebin.path% - - %core.root_path% - - %core.php_ext% - - %phpbbde.pastebin.cron.prune_interval% - - %tables.phpbbde.pastebin.pastebin% + - '@cache' + - '@config' + - '@dbal.conn' + - '@log' + - '%phpbbde.pastebin.path%' + - '%core.root_path%' + - '%core.php_ext%' + - '%phpbbde.pastebin.cron.prune_interval%' + - '%tables.phpbbde.pastebin.pastebin%' calls: - [set_name, [phpbbde.pastebin.cron.main]] tags: - - { name: cron.task } \ No newline at end of file + - {name: cron.task}