84978c9474e876569a79f6b8044cfabf0ee2a657
[yaffs-website] / session_test / session_test.routing.yml
1 session_test.get:
2   path: '/session-test/get'
3   defaults:
4     _title: 'Session value'
5     _controller: '\Drupal\session_test\Controller\SessionTestController::get'
6   options:
7     no_cache: TRUE
8   requirements:
9     _access: 'TRUE'
10 session_test.get_from_session_object:
11   path: '/session-test/get-from-session-object'
12   defaults:
13     _title: 'Session value'
14     _controller: '\Drupal\session_test\Controller\SessionTestController::getFromSessionObject'
15   options:
16     no_cache: TRUE
17   requirements:
18     _access: 'TRUE'
19 session_test.id:
20   path: '/session-test/id'
21   defaults:
22     _title: 'Session ID'
23     _controller: '\Drupal\session_test\Controller\SessionTestController::getId'
24   options:
25     no_cache: TRUE
26   requirements:
27     _access: 'TRUE'
28
29 session_test.id_from_cookie:
30   path: '/session-test/id-from-cookie'
31   defaults:
32     _title: 'Session ID from cookie'
33     _controller: '\Drupal\session_test\Controller\SessionTestController::getIdFromCookie'
34   requirements:
35     _access: 'TRUE'
36
37 session_test.set:
38   path: '/session-test/set/{test_value}'
39   defaults:
40     _title: 'Set session value'
41     _controller: '\Drupal\session_test\Controller\SessionTestController::set'
42   options:
43     no_cache: TRUE
44     converters:
45       test_value: '\s+'
46   requirements:
47     _access: 'TRUE'
48
49 session_test.no_set:
50   path: '/session-test/no-set/{test_value}'
51   defaults:
52     _title: 'Set session value but do not save session'
53     _controller: '\Drupal\session_test\Controller\SessionTestController::noSet'
54   options:
55     no_cache: TRUE
56     converters:
57       test_value: '\s+'
58   requirements:
59     _access: 'TRUE'
60
61 session_test.set_message:
62   path: '/session-test/set-message'
63   defaults:
64     _title: 'Set message'
65     _controller: '\Drupal\session_test\Controller\SessionTestController::setMessage'
66   requirements:
67     _access: 'TRUE'
68
69 session_test.set_message_but_dont_save:
70   path: '/session-test/set-message-but-dont-save'
71   defaults:
72     _title: 'Set message but do not save session'
73     _controller: '\Drupal\session_test\Controller\SessionTestController::setMessageButDontSave'
74   requirements:
75     _access: 'TRUE'
76
77 session_test.is_logged_in:
78   path: '/session-test/is-logged-in'
79   defaults:
80     _title: 'Check if user is logged in'
81     _controller: '\Drupal\session_test\Controller\SessionTestController::isLoggedIn'
82   requirements:
83     _user_is_logged_in: 'TRUE'
84
85 session_test.form:
86   path: '/session-test/form'
87   defaults:
88     _form: '\Drupal\session_test\Form\SessionTestForm'
89     _title: 'Test form'
90   requirements:
91     _access: 'TRUE'
92
93 session_test.trace_handler:
94   path: '/session-test/trace-handler'
95   defaults:
96     _title: 'Returns the trace recorded by test proxy session handlers as JSON'
97     _controller: '\Drupal\session_test\Controller\SessionTestController::traceHandler'
98   requirements:
99     _access: 'TRUE'
100
101 session_test.get_session_basic_auth:
102   path: '/session-test/get-session'
103   defaults:
104     _title: 'Get session information using basic authentication'
105     _controller: '\Drupal\session_test\Controller\SessionTestController::getSession'
106   options:
107     no_cache: TRUE
108     _auth: ['basic_auth']
109   requirements:
110     _permission: 'administer site configuration'
111
112 session_test.get_session_no_auth:
113   path: '/session-test/get-session-no-auth'
114   defaults:
115     _title: 'Get session information'
116     _controller: '\Drupal\session_test\Controller\SessionTestController::getSession'
117   options:
118     no_cache: TRUE
119   requirements:
120     _access: 'TRUE'
121
122 session_test.set_session:
123   path: '/session-test/set-session/{test_value}'
124   defaults:
125     _title: 'Set a session value using basic authentication'
126     _controller: '\Drupal\session_test\Controller\SessionTestController::setSession'
127   options:
128     no_cache: TRUE
129     _auth: ['basic_auth']
130     converters:
131       test_value: '\s+'
132   requirements:
133     _permission: 'administer site configuration'