@@ -111,7 +111,7 @@ URL Checker Renamed and Restructured
111111URL checkers have been completely restructured:
112112
113113- ``CakeRouterUrlChecker `` has been renamed to ``DefaultUrlChecker ``
114- - The old ``DefaultUrlChecker `` (framework-agnostic) has been renamed to ``GenericUrlChecker ``
114+ - The old ``DefaultUrlChecker `` has been renamed to ``StringUrlChecker ``
115115- Auto-detection has been removed - ``DefaultUrlChecker `` is now hardcoded
116116
117117**Before (3.x): **
@@ -127,7 +127,7 @@ URL checkers have been completely restructured:
127127 ],
128128 ]);
129129
130- // Using DefaultUrlChecker explicitly (framework-agnostic)
130+ // Using DefaultUrlChecker explicitly
131131 $service->loadAuthenticator('Authentication.Form', [
132132 'urlChecker' => 'Authentication.Default',
133133 'loginUrl' => '/users/login',
@@ -150,9 +150,9 @@ URL checkers have been completely restructured:
150150 ],
151151 ]);
152152
153- // For framework-agnostic projects , explicitly use GenericUrlChecker
153+ // For string-only URL checking , explicitly use StringUrlChecker
154154 $service->loadAuthenticator('Authentication.Form', [
155- 'urlChecker' => 'Authentication.Generic ',
155+ 'urlChecker' => 'Authentication.String ',
156156 'loginUrl' => '/users/login',
157157 ]);
158158
@@ -207,11 +207,10 @@ Auto-Detection Removed
207207URL Checkers
208208^^^^^^^^^^^^
209209
210- **Important: ** Auto-detection has been removed. ``DefaultUrlChecker `` is now hardcoded
211- and assumes CakePHP is available.
210+ **Important: ** Auto-detection has been removed. ``DefaultUrlChecker `` is now hardcoded.
212211
213212- **4.x default: ** Always uses ``DefaultUrlChecker `` (formerly ``CakeUrlChecker ``)
214- - **Framework-agnostic : ** Must explicitly configure ``GenericUrlChecker ``
213+ - **String URLs only : ** Must explicitly configure ``StringUrlChecker ``
215214- **Multiple URLs: ** Must explicitly configure ``MultiUrlChecker ``
216215
217216DefaultUrlChecker is Now CakePHP-Based
@@ -220,7 +219,7 @@ DefaultUrlChecker is Now CakePHP-Based
220219``DefaultUrlChecker `` is now the CakePHP checker (formerly ``CakeRouterUrlChecker ``).
221220It requires CakePHP Router and supports both string and array URLs.
222221
223- The 3.x framework-agnostic ``DefaultUrlChecker `` has been renamed to ``GenericUrlChecker ``.
222+ The 3.x ``DefaultUrlChecker `` has been renamed to ``StringUrlChecker ``.
224223
225224.. code-block :: php
226225
@@ -229,8 +228,8 @@ The 3.x framework-agnostic ``DefaultUrlChecker`` has been renamed to ``GenericUr
229228 $checker->check($request, ['controller' => 'Users', 'action' => 'login']); // Works
230229 $checker->check($request, '/users/login'); // Also works
231230
232- // For framework-agnostic usage:
233- $checker = new GenericUrlChecker ();
231+ // For string URL only usage:
232+ $checker = new StringUrlChecker ();
234233 $checker->check($request, '/users/login'); // Works
235234 $checker->check($request, ['controller' => 'Users']); // Throws exception
236235
@@ -285,17 +284,17 @@ Migration Tips
285284 - ``IdentifierCollection `` → ``IdentifierFactory ``
286285 - ``'Authentication.CakeRouter' `` → Remove (no longer needed, default is now CakePHP-based)
287286 - ``CakeRouterUrlChecker `` → ``DefaultUrlChecker ``
288- - Old 3.x ``DefaultUrlChecker `` (framework-agnostic) → ``GenericUrlChecker ``
287+ - Old 3.x ``DefaultUrlChecker `` → ``StringUrlChecker ``
289288
290- 2. **Framework-Agnostic Projects **:
289+ 2. **String URL Checking **:
291290
292- If you're using this library without CakePHP, you ** must ** explicitly configure
293- ``GenericUrlChecker ``:
291+ If you want to use string-only URL checking, explicitly configure
292+ ``StringUrlChecker ``:
294293
295294 .. code-block :: php
296295
297296 $service->loadAuthenticator('Authentication.Form', [
298- 'urlChecker' => 'Authentication.Generic ',
297+ 'urlChecker' => 'Authentication.String ',
299298 'loginUrl' => '/users/login',
300299 ]);
301300
0 commit comments