Initial version of routing, requests and responses.
This introduces the following: - The use of Request objects to handle request data to controllers. - The use of Response objects to model responses that should be sent to the browser. - The use of "controllers" that are responsible for translating a request into a response. - The possibility to define your own URLs on each module by specifying them, together with their controllers, in a "routes.yaml" file in the root of a module. - The new UI is completely separated from the old, so "usenewui" must be set to "true" in the configuration. - Twigified templates are not used unless we're using the new UI, or the twig template is part of a theme.
Showing
- lib/SimpleSAML/Module.php 227 additions, 0 deletionslib/SimpleSAML/Module.php
- lib/SimpleSAML/ModuleControllerResolver.php 154 additions, 0 deletionslib/SimpleSAML/ModuleControllerResolver.php
- lib/SimpleSAML/Router.php 81 additions, 0 deletionslib/SimpleSAML/Router.php
- lib/SimpleSAML/XHTML/Template.php 58 additions, 10 deletionslib/SimpleSAML/XHTML/Template.php
- modules/core/lib/Controller.php 139 additions, 0 deletionsmodules/core/lib/Controller.php
- modules/core/routes.yaml 7 additions, 0 deletionsmodules/core/routes.yaml
- modules/core/templates/login.twig 5 additions, 1 deletionmodules/core/templates/login.twig
- modules/core/www/frontpage_auth.php 1 addition, 1 deletionmodules/core/www/frontpage_auth.php
- www/index.php 1 addition, 1 deletionwww/index.php
- www/module.php 2 additions, 165 deletionswww/module.php
lib/SimpleSAML/ModuleControllerResolver.php
0 → 100644
lib/SimpleSAML/Router.php
0 → 100644
modules/core/lib/Controller.php
0 → 100644
modules/core/routes.yaml
0 → 100644
Please register or sign in to comment