Commit Graph

31 Commits (e80fb54522c307afec3d8bb474a47dd9d2d5da64)

Author SHA1 Message Date
Igor Scheller 15e6740e12 Twig update to > 2.11: Fixed namespaces, warnings and cleanup
Igor Scheller 2cce967eb0 Tests: Replaced duplicates and formatting/cleanup
Igor Scheller 867d720f15 Tests: Replaced setMethods as it is deprecated
Igor Scheller 51a3c6eb44 ErrorHandler: Remove some form fields before serialization
Igor Scheller 7414f9b23d Implemented Validation for controllers
Igor Scheller f90ab26fee Moved translation helpers to sub namespace
Igor Scheller 2e51fbff9d Added / route with redirects
Igor Scheller 93e578e555 Added html content sniffer
Igor Scheller 79c92da8c1 Formatting
```bash
php-cs-fixer fix --allow-risky=yes --rules=@PSR2,psr4,mb_str_functions.php_unit_construct,php_unit_ordered_covers,trailing_comma_in_multiline_array --rules='{"array_syntax": {"syntax":"short"}}' [tests/|src/]
```
Igor Scheller c74fa7955d phpunit: Upgrade to version 8, fixed tests, formatting
Use `dms/phpunit-arraysubset-asserts` after `assertArraySubset` got deprecated
Igor Scheller 491ee37651 Don't save sessions permanently on api and metrics paths
closes  (Session on API calls)
Igor Scheller 3c8d0eeb44 ErrorHandler: Don't wrap the response if a content-type is defined
Igor Scheller c9d7e88cc7 Implemented controller permissions
Igor Scheller 55beca95cd Refactoring: Throw HttpAuthExpired on csrf token mismatch
Igor Scheller 9788c5095a Implemented HttpException
Igor Scheller c33940f64a Moved permission checks to Authenticator class
Igor Scheller f845a5ab8b Added caching for templating and routing
See  (Implement caching)
Igor Scheller fd37c9d60e Added additional headers
Igor Scheller 23c0fae36f Added csrf middleware
Igor Scheller d15946df2d Changed `src/` code and templates to use the new user model
Igor Scheller aa2124f655 RouteDispatcher: Allow installation into sub directory
Igor Scheller 66038eda14 Merge branch 'twig-templates'
Igor Scheller d0abc27c07 Merge remote-tracking branch 'MyIgel/translations'
Igor Scheller 222c9fed7d Merge remote-tracking branch 'MyIgel/templating'
Igor Scheller ce6d0fd13b tests: fixed array() return
Igor Scheller 9d34f371cb Added CreditsController
Igor Scheller a2c47304d8 Added generic error pages
Igor Scheller 3a11641647 Updated LegacyMiddleware to use Translator class
Igor Scheller 427315195b Moved translation/internationalization to Helpers\Translator class
Igor Scheller a1bc763a16 Added nikic/fast-route as routing dispatcher
Igor Scheller f3b3b6683c Added middleware tests