Commit Graph

50 Commits (3c8e8034924d916283183d60209baac02b2c6e5d)

Author SHA1 Message Date
Igor Scheller 93ae2442f6 Formatting, syntax, typehint and namespace fixes, cleanups
Igor Scheller 795a0631cb Added application base url: Redirector now uses URLs instead of relative paths
Igor Scheller 6b1c22a743 Removed LegacyUrlGenerator
Igor Scheller e42284deca Added Checked validation
Igor Scheller 064a175027 Renamed GuzzleServiceProvider to HttpClientServiceProvider, fixed translation and import error
Igor Scheller 42721e9572 Added Schedule parsing and replaced old Fahrplan importer
Resolves  (Change Frab Import from xCal to XML)
Resolves  (Feature Request: Multi Frab Import)
Igor Scheller 89742ecd55 Response: Added with and withInput methods and back/redirect functions
Igor Scheller 5704174fe6 MessageTrait: Fixed HeaderBag::get parameter deprecation in Symfony 4.4
Igor Scheller 68afc74b03 Formatting to follow PSR-12
Igor Scheller 867d720f15 Tests: Replaced setMethods as it is deprecated
Igor Scheller ae0816ce8d Response: Fixed naming to use renderer instead of view and added setter
Igor Scheller e124b41977 Tests: TestCase: Initialize $this->app on every run
Igor Scheller 1b3e3b1d65 Exceptions: Added HttpNotFound exception
Igor Scheller 8d090438b6 Validation rules: min/max/between: Use string length to compare strings
Igor Scheller b25924e868 Allow nested rules (not and optional)
Igor Scheller 6743106d9a Replaced validation with `respect/validation`
Igor Scheller 7414f9b23d Implemented Validation for controllers
Igor Scheller bcce2625a8 Implemented AuthController for login
* Moved /login functionality to AuthController
* Refactored password handling logic to use the Authenticator
Igor Scheller 6ed891fc04 Added logout via AuthController
Igor Scheller 2e51fbff9d Added / route with redirects
Igor Scheller 236197faf8 Upgraded external components
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 58ca7113f3 PSR-7: Replaced implementation with `Nyholm\Psr7`
Igor Scheller d9f898a0bb Bugfix: Replaced Diactoros with Symfony PsrHttpFactory to use PhpExtended\HttpMessage implementation
Prevents warnings that get converted to errors when run in dev mode
Igor Scheller c9d7e88cc7 Implemented controller permissions
Igor Scheller 55beca95cd Refactoring: Throw HttpAuthExpired on csrf token mismatch
Igor Scheller 9788c5095a Implemented HttpException
Igor Scheller 944c29b964 Require POST for sending forms
* Ensure that the form is submitted with a post request
* Replaced several links with forms

Closes  (Security Vulnerability)
Igor Scheller 23c0fae36f Added csrf middleware
Igor Scheller b46207f911 Merge remote-tracking branch 'MyIgel/session'
Igor Scheller 0b0890f425 Session: Added DatabaseHandler, replaces Symfony PdoSessionHandler
Igor Scheller 66038eda14 Merge branch 'twig-templates'
Igor Scheller 104e4f4c43 Session: Added Symfony PDO backend
Igor Scheller 222c9fed7d Merge remote-tracking branch 'MyIgel/templating'
Igor Scheller b52444af8a Merge remote-tracking branch 'MyIgel/routing'
Igor Scheller 36dafdb68a Merge remote-tracking branch 'MyIgel/rebuild-psr7'
Igor Scheller 9e217d87c0 Template refactoring to use twig
Igor Scheller a2c47304d8 Added generic error pages
Igor Scheller df6360044b Added Twig template functions
Igor Scheller 73c9d923e7 Renamed RoutingServiceProvider to Http\UrlGeneratorServiceProvider
Igor Scheller b0e7bc0df2 Made Engelsystem\Http\Request PSR-7 ServerRequestInterface compatible
Igor Scheller bf6efe532c Added trusted proxies
Igor Scheller 5427ee385d Made Engelsystem\Http\Request PSR-7 RequestInterface compatible
Igor Scheller f3f05f6cc4 Make Engelsystem\Http\Response PSR-7 compatible
Igor Scheller 3c08829205 Added Http\Response and Psr7{Request,Response}
msquare f8807c4efb fix behaviour of HTTP/Request get
Igor Scheller 8cd17419a8 TestFixes
Igor Scheller ad948bdd32 Added RequestServiceProvider and SessionServiceProvider
Igor Scheller 8c703e1202 Added request test