diff options
author | Tristan Darricau <github@nicofuma.fr> | 2014-09-05 16:33:57 +0200 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2014-11-20 20:15:45 +0100 |
commit | 014eed385bf761d9e3f0992835f44f58bf055afd (patch) | |
tree | 7c1e824a9346efd0dbe05c732926ae9fd006cd0b /tests/controller/ext | |
parent | 7cd0fd83b8047f40edfb69a427b14997801ef25b (diff) | |
download | forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar.gz forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar.bz2 forums-014eed385bf761d9e3f0992835f44f58bf055afd.tar.xz forums-014eed385bf761d9e3f0992835f44f58bf055afd.zip |
[ticket/12620] Add support of the environments for the ext routing files
PHPBB3-12620
Diffstat (limited to 'tests/controller/ext')
-rw-r--r-- | tests/controller/ext/vendor2/bar/config/production/routing.yml | 3 | ||||
-rw-r--r-- | tests/controller/ext/vendor2/bar/config/services.yml | 3 | ||||
-rw-r--r-- | tests/controller/ext/vendor2/bar/controller.php | 18 |
3 files changed, 24 insertions, 0 deletions
diff --git a/tests/controller/ext/vendor2/bar/config/production/routing.yml b/tests/controller/ext/vendor2/bar/config/production/routing.yml new file mode 100644 index 0000000000..85c93b453f --- /dev/null +++ b/tests/controller/ext/vendor2/bar/config/production/routing.yml @@ -0,0 +1,3 @@ +controller3: + pattern: /bar + defaults: { _controller: bar.controller:handle } diff --git a/tests/controller/ext/vendor2/bar/config/services.yml b/tests/controller/ext/vendor2/bar/config/services.yml new file mode 100644 index 0000000000..05a8a1994d --- /dev/null +++ b/tests/controller/ext/vendor2/bar/config/services.yml @@ -0,0 +1,3 @@ +services: + bar.controller: + class: bar\controller diff --git a/tests/controller/ext/vendor2/bar/controller.php b/tests/controller/ext/vendor2/bar/controller.php new file mode 100644 index 0000000000..ad35f5a051 --- /dev/null +++ b/tests/controller/ext/vendor2/bar/controller.php @@ -0,0 +1,18 @@ +<?php + +namespace bar; + +use Symfony\Component\HttpFoundation\Response; + +class controller +{ + /** + * Handle method + * + * @return null + */ + public function handle() + { + return new Response('Test', 200); + } +} |