Skip to content
Snippets Groups Projects
  1. Dec 31, 2019
    • Tim van Dijen's avatar
      Twig Strict vars (#1264) · 09f4ee18
      Tim van Dijen authored
      * Use strict variables in Twig, except for our TemplateTest; throw exception on missing variables
      
      * Fix issues due to Twig strict_variables=true
      
      * Fix for #1229
      
      * Fix metadata-template
      09f4ee18
    • Tim van Dijen's avatar
      Refactor routing (#1178) · 54a6d7d1
      Tim van Dijen authored
      
      * Added Kernel class to handle request
      
      * Kernel handle request
      
      Kernel is loaded in SimpleSAML\Module class
      Removed Router and ControllerResolver classes
      
      * Added route command (squash)
      
      * Use symfony application and cache
      
      * Updated to today's standards
      
      * Fix for Symfony4 & Catch environment from ENV variable
      
      * Standardize location of routes/services files
      
      * Trying to make slashes work properly in all situations
      
      * Convert XML to YML
      
      * Fix some template-names and endpoints
      
      * Rename Controller-classes
      
      * Update dependencies
      
      * Fix routing files
      
      * TooManyArguments
      
      * Fix TypeCoercion
      
      * PSR-12
      
      * Fix rebase mistake
      
      * Rebase lock-file
      
      * Fix Psalm
      
      * Add strict_types declaration
      
      Co-authored-by: default avatarSergio Gómez <decano@gmail.com>
      54a6d7d1
  2. Dec 24, 2019
  3. Nov 22, 2019
  4. Oct 26, 2019
  5. Oct 18, 2019
  6. Oct 01, 2019
  7. Sep 26, 2019
  8. Sep 16, 2019
  9. Aug 26, 2019
  10. Aug 10, 2019
  11. Jul 30, 2019
  12. Jul 12, 2019
  13. Jul 08, 2019
  14. Jun 06, 2019
  15. Mar 20, 2019
  16. Mar 07, 2019
  17. Feb 03, 2019
  18. Dec 22, 2018
  19. Dec 03, 2018
  20. Dec 02, 2018
  21. Nov 29, 2018
  22. Nov 28, 2018
    • Jaime Pérez Crespo's avatar
      Add an asset() function to twig. · 38205eae
      Jaime Pérez Crespo authored
      This function can be used to load an asset from a twig template, adding a "tag" parameter to it with a few dynamic bytes depending on the version of SimpleSAMLphp, or the last modification time of the file if we are running master. This behaves as a cache-buster, forcing browsers to reload assets when a new version of SimpleSAMLphp gets installed.
      38205eae
    • Jaime Pérez Crespo's avatar
      Make the current year available to twig templates. · 0bc66fe1
      Jaime Pérez Crespo authored
      This way we can forget about updating the copyright notice every year.
      0bc66fe1
  23. Nov 23, 2018
    • Jaime Pérez Crespo's avatar
      Create a new "configpage" hook for those modules that need to inject anything... · d42f26f3
      Jaime Pérez Crespo authored
      Create a new "configpage" hook for those modules that need to inject anything in the configuration page.
      
      This allows us to change the signature of the hook, so that we pass it the \SimpleSAML\XHTML\Template object and then the hook can not only add data to be passed to the twig template, but also add its own translation domain. This was needed because many modules were putting their translations inside "core", and when moving those to the modules themselves, the new translation system cannot perform the translation because only the translations for the current module in use are loaded (in the config page, that's the core module). Therefore, we needed a way to get the Localization instance from the template, and a way to pass that to the hook so that the hook can register the translations for its own module.
      d42f26f3
  24. Nov 20, 2018
  25. Nov 19, 2018
  26. Oct 17, 2018
  27. Oct 09, 2018
  28. Oct 08, 2018
    • Jaime Pérez Crespo's avatar
      Initial version of routing, requests and responses. · 2ae9f3b1
      Jaime Pérez Crespo authored
      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.
      2ae9f3b1
  29. Aug 22, 2018
  30. Aug 13, 2018
  31. Aug 06, 2018
Loading