summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php')
-rw-r--r--core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php b/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
index 5b4bf73..6b6b063 100644
--- a/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
+++ b/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
@@ -88,6 +88,34 @@ class SystemTestController extends ControllerBase {
}
/**
+ * Controller to return $_GET['destination'] for testing.
+ *
+ * @param \Symfony\Component\HttpFoundation\Request $request
+ * The request.
+ *
+ * @return \Symfony\Component\HttpFoundation\Response
+ * The response.
+ */
+ public function getDestination(Request $request) {
+ $response = new Response($request->query->get('destination'));
+ return $response;
+ }
+
+ /**
+ * Controller to return $_REQUEST['destination'] for testing.
+ *
+ * @param \Symfony\Component\HttpFoundation\Request $request
+ * The request.
+ *
+ * @return \Symfony\Component\HttpFoundation\Response
+ * The response.
+ */
+ public function requestDestination(Request $request) {
+ $response = new Response($request->request->get('destination'));
+ return $response;
+ }
+
+ /**
* Try to acquire a named lock and report the outcome.
*/
public function lockAcquire() {