Skip to content

Latest commit

 

History

History
142 lines (94 loc) · 5.42 KB

CHANGELOG.md

File metadata and controls

142 lines (94 loc) · 5.42 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Added

Changed

Deprecated

Removed

Fixed

Security

1.0.1 - 2024-09-11

Fixed

Security

  • Bumped twig/twig dependency for the dashboard in composer.json to 3.14 due to CVE-2024-45411.

1.0.0 - 2024-02-05

Added

  • Twig extension RouterExtension from fhooe/twig-extensions that makes the urlFor() and getBasePath() methods from the router available in Twig templates as url_for() and get_base_path().
  • Twig extension SessionExtension from fhooe/twig-extensions that provides a session(key) function to access entries from the session superglobal in Twig templates.
  • Introduced an icon for fhooe/router and fhooe/router-skeleton.

Changed

  • Switched to PHP 8.3 as a minimum requirement.
  • Updated all dependencies.
  • Updated all views/templates to match fhooe-web-dock with dark mode support.

Removed

  • twbs/bootstrap and twbs/bootstrap-icons as dependencies. They are now loaded from included files and SVGs to reduce installation time.
  • composer.lock is now excluded from version control for more flexibility.

0.3.1 - 2022-02-17

Changed

  • Make .gitignore exclude PhpStorm and Visual Studio Code project directories.
  • Bumped phpstan/phpstan to v1.4.6
  • Bumped twbs/bootstrap-icons to v1.8.1
  • Bumped twig/twig to v3.3.8

Fixed

  • Fixed that .gitignore would only ignore router.log files. All files are now excluded.

0.3.0 - 2022-01-24

Added

  • Added hierarchical Twig templates. base.html.twig acts as the parent template for all other Twig templates and gets selectively overwritten.
  • Added a static HTML view for demonstration purposes.
  • Added Twig debug extension for easier template debugging.
  • Added hint where to start a session and included the session superglobal into the Twig templates if present.

Changed

  • Updated to fhooe/router v0.3.0.
  • Bumped phpstan/phpstan to 1.4.
  • The result for "GET /form" (PHP form example) is now shown in the same view as "POST /form"
  • The Twig form example is now split up in "GET /twigform" and "POST /twigformresult".
  • Main page is now displayed using Twig.
  • 404 page is now displayed using Twig.
  • Base path is not set automatically. The respective line is commented out so it can easily be included.
  • The 404 handler is now set with an arrow function to demonstrate their usage as well as the automatic inclusion of variables from the parent scope.

Removed

  • Removed the debugging block that enabled PHP errors. This should be done the webserver configuration.

0.2.0 - 2021-12-22

Added

Changed

0.1.0 - 2021-12-16

Added

  • Added an example invocation of the router in index.php.
  • Added three example views for the main page, a form submission and a 404 page.
  • Added a .htaccess file which redirects all requests back to index.php.
  • Set up composer.json for the use with Composer and Packagist.
  • Added phpstan for code analysis.
  • Added extensive README.md.
  • Added notes on Contributing.
  • Added this changelog.