aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-24 12:04:22 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-08-25 22:24:28 +0200
commit17e7a89a60f700efc8a0b082b7a82005e6288e80 (patch)
tree628505c1a127ba5b531e4bb24bda4f659bb7317d /phpBB/config
parentf6a4843c6df3a9b0490eb3d273ebed7d04a89582 (diff)
downloadforums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar
forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar.gz
forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar.bz2
forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.tar.xz
forums-17e7a89a60f700efc8a0b082b7a82005e6288e80.zip
[ticket/14124] Automatically translate exceptions in CLI
PHPBB3-14124
Diffstat (limited to 'phpBB/config')
-rw-r--r--phpBB/config/default/container/services_console.yml8
-rw-r--r--phpBB/config/development/config.yml3
-rw-r--r--phpBB/config/installer/container/services.yml8
3 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/config/default/container/services_console.yml b/phpBB/config/default/container/services_console.yml
index aee3cbdee6..71b6244e13 100644
--- a/phpBB/config/default/container/services_console.yml
+++ b/phpBB/config/default/container/services_console.yml
@@ -1,4 +1,12 @@
services:
+ console.exception_subscriber:
+ class: phpbb\console\exception_subscriber
+ arguments:
+ - @language
+ - %debug.exceptions%
+ tags:
+ - { name: kernel.event_subscriber }
+
console.command_collection:
class: phpbb\di\service_collection
arguments:
diff --git a/phpBB/config/development/config.yml b/phpBB/config/development/config.yml
index 93ae07fb3f..f39eb52e73 100644
--- a/phpBB/config/development/config.yml
+++ b/phpBB/config/development/config.yml
@@ -4,6 +4,9 @@ imports:
core:
require_dev_dependencies: true
+ debug:
+ exceptions: true
+
twig:
debug: true
auto_reload: true
diff --git a/phpBB/config/installer/container/services.yml b/phpBB/config/installer/container/services.yml
index 8296bcc079..5cd30f9222 100644
--- a/phpBB/config/installer/container/services.yml
+++ b/phpBB/config/installer/container/services.yml
@@ -68,3 +68,11 @@ services:
- null
- @template.twig.loader
- []
+
+ console.exception_subscriber:
+ class: phpbb\console\exception_subscriber
+ arguments:
+ - @language
+ - %debug.exceptions%
+ tags:
+ - { name: kernel.event_subscriber }