Yuriy Belenko
8e78b14e28
New PHP Slim4 Server Generator ( #3658 )
...
* [Slim4] Copy Slim3 generator as starting point
* [Slim4] Add psr7Implementation generator option
Slim supports PSR-7 interfaces for its Request and Response objects.
Slim provides its own PSR-7 implementation so that it works out of the
box.
However, you are free to replace Slim’s default PSR-7 objects with
a third-party implementation.
[Ref] https://www.slimframework.com/docs/v4/concepts/value-objects.html
* [Slim4] Handle psr7Implementation generator option
It somehow ended up with composerPackages and composerDevPackages
codegen variables and two additional functions. Hope, it's not too much.
* [Slim4] Extend from Slim3 generator
* [Slim4] Bump PHP Slim Framework version to 4.0.0
* [Slim4] Bump required PHP version to 7.1
[Upgrade Guide](https://www.slimframework.com/docs/v4/start/upgrade.html )
* [Slim4] Remove app settings
Slim’s App settings used to be a part of the container and they have
now been decoupled from it.
[Upgrade Guide](https://www.slimframework.com/docs/v4/start/upgrade.html )
* [Slim4] Set container argument optional
Slim uses an optional dependency container to prepare, manage,
and inject application dependencies.
Slim supports containers that implement PSR-11
like [PHP-DI](http://php-di.org/doc/frameworks/slim.html ).
[Upgrade Guide](https://www.slimframework.com/docs/v4/start/upgrade.html )
* [Slim4] Change response body write
You can't write to response instance directly anymore,
need to retrieve body object first.
[Doc](https://www.slimframework.com/docs/v4/objects/response.html#the-response-body )
* [Slim4] Change Slim\App constructor
[Upgrade Guide](https://www.slimframework.com/docs/v4/start/upgrade.html )
* [Slim4] Refactor token authentication options
User can provide array or Container as constructor argument from now.
Small refactoring required to retrieve authentication options from
that argument.
* [Slim4] Add PSR-7 implementation codegen flags
This approach seems more flexible to me.
User can customize templates in favor of chosen PSR7 implementation.
It's easier to change Composer packages and their versions.
* [Slim4] Add JsonBodyParserMiddleware
Slim4 doesn't parse JSON body, need to add suggested middleware.
Ref: https://www.slimframework.com/docs/v4/objects/request.html#the-request-body
* [Slim4] Remove request's deprecated methods usage
Since Slim 4.0.0 ServerRequest implementation doesn't have
getQueryParam and getParsedBodyParam methods anymore.
* [Slim4] Use getUploadedFiles for multipart request
isMultipart codegen property is always false so far.
Hope that bug will be fixed soon.
* [Slim4] Add samples
2019-10-21 22:20:12 +08:00
..
2019-10-09 12:51:52 -04:00
2019-10-21 22:20:12 +08:00
2019-06-07 13:07:52 -04:00
2019-10-21 22:20:12 +08:00
2019-10-21 22:20:12 +08:00
2019-06-07 13:07:52 -04:00
2016-08-25 23:12:23 +08:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-09-14 20:30:34 +08:00
2019-05-01 16:55:14 -04:00
2019-04-23 11:34:01 +08:00
2018-11-17 01:32:18 +08:00
2019-04-23 11:34:01 +08:00
2019-09-29 11:48:39 +02:00
2019-07-25 18:25:17 +02:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-06-07 23:37:49 +02:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-03-12 09:04:25 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2017-12-22 00:31:44 +08:00
2017-12-22 00:31:44 +08:00
2019-04-23 11:34:01 +08:00
2017-10-27 22:47:02 +08:00
2019-04-23 11:34:01 +08:00
2017-04-23 15:42:42 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-06-03 21:17:17 +08:00
2019-10-09 15:27:57 +08:00
2019-04-23 11:34:01 +08:00
2019-10-02 11:16:05 +08:00
2019-10-17 11:15:17 +08:00
2019-06-07 13:07:52 -04:00
2019-10-09 12:51:52 -04:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-26 22:38:11 +08:00
2019-10-10 18:20:46 +08:00
2018-09-05 08:04:27 +08:00
2019-10-10 18:20:46 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2018-05-08 12:57:38 +08:00
2019-04-23 11:34:01 +08:00
2019-10-03 09:24:40 +08:00
2019-05-06 22:11:50 +08:00
2019-07-18 15:52:37 +09:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-05 23:58:28 +08:00
2019-06-07 13:07:52 -04:00
2019-10-09 12:51:52 -04:00
2018-09-13 10:32:09 +08:00
2018-09-13 10:32:09 +08:00
2019-06-07 13:07:52 -04:00
2018-09-13 10:32:09 +08:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2019-07-26 09:49:44 +08:00
2019-06-07 13:07:52 -04:00
2019-07-26 09:49:44 +08:00
2019-06-07 13:07:52 -04:00
2019-07-26 09:59:21 +08:00
2019-07-26 09:59:21 +08:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2017-10-18 10:39:34 +08:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2018-09-16 16:00:38 +08:00
2017-08-31 23:02:09 +08:00
2019-06-07 13:07:52 -04:00
2017-08-31 23:02:09 +08:00
2019-06-07 13:07:52 -04:00
2018-08-28 22:48:05 +08:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2019-03-26 18:52:34 +08:00
2019-06-07 13:07:52 -04:00
2018-07-04 09:40:57 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2018-04-17 09:19:10 +02:00
2019-06-07 13:07:52 -04:00
2018-04-17 09:19:10 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-05-22 20:55:05 +09:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2017-05-24 16:50:32 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2018-01-29 00:35:09 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2017-07-17 23:25:38 +08:00
2019-06-07 13:07:52 -04:00
2017-04-04 00:43:40 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2017-05-17 22:12:06 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2019-10-10 21:56:40 +08:00
2019-10-10 21:56:40 +08:00
2019-10-10 18:21:50 +08:00
2019-09-21 21:48:41 +08:00
2019-10-02 00:13:00 +08:00
2019-10-02 00:13:00 +08:00
2019-06-07 13:07:52 -04:00
2019-10-02 00:13:00 +08:00
2019-06-02 15:50:45 -04:00
2019-06-02 15:50:45 -04:00
2019-10-02 00:13:00 +08:00
2019-09-14 20:57:53 +08:00
2019-06-07 13:07:52 -04:00
2019-08-26 00:35:51 +08:00
2018-11-02 15:38:34 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-09-13 15:56:54 +08:00
2019-08-09 00:30:47 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2016-07-20 15:49:41 +08:00
2019-06-07 13:07:52 -04:00
2018-05-08 19:51:15 +08:00
2019-04-23 11:34:01 +08:00
2019-07-29 10:07:32 +08:00
2019-06-07 13:07:52 -04:00
2018-04-23 17:49:48 +08:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-10-21 22:20:12 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-05-22 20:55:05 +09:00
2019-04-23 11:34:01 +08:00
2019-09-10 17:32:25 +08:00
2019-06-07 13:07:52 -04:00
2019-09-24 18:44:28 +08:00
2018-07-10 22:12:09 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-01-11 23:35:21 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-08-01 11:08:34 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-08-25 19:19:52 -04:00
2019-08-25 19:19:52 -04:00
2019-04-23 11:34:01 +08:00
2018-08-13 13:28:22 +08:00
2019-09-27 16:27:28 +01:00
2019-08-17 11:03:38 +01:00
2019-04-23 11:34:01 +08:00
2019-05-22 20:55:05 +09:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-07-31 14:22:05 +08:00
2019-07-31 14:22:05 +08:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2018-04-24 09:51:50 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2017-04-17 23:25:27 +08:00
2019-06-07 13:07:52 -04:00
2017-05-17 22:12:06 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2017-07-03 17:40:00 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2018-09-05 16:38:06 +08:00
2019-06-07 13:07:52 -04:00
2016-10-09 14:06:55 +08:00
2018-02-08 15:14:49 +08:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2018-05-04 04:50:17 +02:00
2018-06-21 16:52:02 +08:00
2018-05-12 00:15:24 +08:00
2019-07-22 17:12:34 +09:00
2018-05-12 00:15:24 +08:00
2019-07-22 17:12:34 +09:00
2018-05-12 00:15:24 +08:00
2019-07-22 17:12:34 +09:00
2018-06-21 16:52:02 +08:00
2019-07-22 17:12:34 +09:00
2018-05-12 00:15:24 +08:00
2019-07-22 17:12:34 +09:00
2018-05-12 00:15:24 +08:00
2019-07-22 17:12:34 +09:00
2018-05-04 04:50:17 +02:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2018-05-12 00:15:24 +08:00
2019-04-23 11:34:01 +08:00
2016-05-21 15:57:52 +02:00
2019-04-23 11:34:01 +08:00
2019-08-12 15:44:05 +02:00
2019-06-07 13:07:52 -04:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-18 18:58:41 +08:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-07-31 21:16:49 +02:00
2019-06-07 13:07:52 -04:00
2019-06-07 13:07:52 -04:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-08-12 15:44:05 +02:00
2019-08-12 15:44:05 +02:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-07-29 11:31:42 +02:00
2019-06-07 13:07:52 -04:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-07-29 11:31:42 +02:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-08-30 21:59:54 +02:00
2019-06-07 13:07:52 -04:00
2019-07-17 22:30:27 +02:00
2019-07-17 22:30:27 +02:00
2019-08-23 16:58:51 +02:00
2019-08-23 16:58:51 +02:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-08-30 21:59:54 +02:00
2019-08-30 21:59:54 +02:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2018-05-04 04:50:17 +02:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2018-05-04 04:50:17 +02:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00
2019-04-18 18:58:41 +08:00
2019-01-21 23:26:18 +08:00
2019-06-07 13:07:52 -04:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-18 18:58:41 +08:00
2019-04-23 11:34:01 +08:00
2019-04-23 11:34:01 +08:00