Maroš Varchola
f258ce2cf5
#18031 Fix: added middleware adding for authorization methods [php-slim4] ( #18103 )
...
* fix: added middleware adding for authorization methods, added unauthorized handler to authorization abstract, fixes #18031
* feat: updated generated sample for php-slim4
* fix: small fix for running error handlers and environment setting fix
* feat: removed unused dependency in abstract authenticator, php-slim4
2024-03-23 21:41:16 +08:00
Yuriy Belenko
7b59e602ed
[php-slim4] Add lazy CORS implementation ( #11941 )
...
* Add lazy CORS implementation
While Slim4 doc applies CORS headers via middleware but their code team
member recommends to use custom response emitter.
Ref: https://github.com/slimphp/Slim/issues/2999#issuecomment-1066839414
* Refresh samples
2022-03-23 16:46:23 +08:00
Yuriy Belenko
aa61220db2
[php-slim4] Add dependency injection container 2 ( #11159 )
...
* Change packages order alphabetically
* Add PHP-DI package to Composer template
* Remove ContainerInterface from APIs
User shouldn't access container directly, it's an anti-pattern.
Ref: https://php-di.org/doc/best-practices.html#rules-for-using-a-container-and-dependency-injection
* Change app templates to use PHP-DI
Application looks more like a default Slim skeleton now.
Ref: https://github.com/slimphp/Slim-Skeleton
* Rename SlimRouter to RegisterRoutes
Since it's callable class new name fits better.
* Add short documentation
* Refresh samples
2021-12-29 10:57:19 +08:00
Yuriy Belenko
7dbcac3b6c
[php-slim4] Switch to Packaged Body Parsing Middleware ( #9562 )
...
* Remove custom JSON parsing middleware
* Enable packaged Body Parsing Middleware
Ref:
https://www.slimframework.com/docs/v4/middleware/body-parsing.html
* Refresh samples
2021-12-17 15:24:21 +08:00
Yuriy Belenko
186842ea19
[php-slim4] Bump required PHP version to 7.4 ( #11039 )
...
* Change minimum PHP version to 7.4
* Refresh samples
2021-12-05 15:47:12 +08:00
Yuriy Belenko
9f92322b90
[php-slim4] Bump required PHP version to 7.3 ( #10228 )
...
* Change minimum PHP version to 7.3
* Refresh samples
* Remove PHP8 notice from readme
Signed-off-by: Yuriy Belenko <yura-bely@mail.ru>
2021-10-17 18:19:14 +08:00
Yuriy Belenko
84a6e31fb4
[php-slim4] Follow PDS skeleton ( #9189 )
...
* Rename test folder to tests
* Put index.php and .htaccess into public
* Refresh samples
2021-08-22 16:13:48 +08:00