* Add monolog to templates
* Remove default values from DI\get helper
It turned out \DI\get expects only single argument, current method call
doesn't throw any errors but it should be corrected anyway.
* Refresh samples
* 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
* Remove package from sources
* Add Mocker package
* Add BaseModel
Beside setters and getters this class implements three methods required
for mocking: getOpenApiSchema, createFromData and jsonSerialize.
BaseModel keeps all data values in $dataContainer like PHP client does.
I don't see other way to support scalar models(enum for instance).
That's why I've removed class variables generation.
* Update documentation
* Update PHPUnit section in readme
* Add constant with models namespace
This constant will be required for data deserialization when handling
refs.
* Refresh samples
* Add samples generation config
* Bump required PHP version to 7.2
* Update rest dependencies to meet php 7.2
Latest phpunit 9 requires PHP 7.3, so I've set phpunit 8 as a fallback.
* Fix TestCase inheritance
* Add phpunit cache file to gitignore
* Put license @phpdoc into separate mustache
* Bump readme PHP version to 7.2
* Bump @phpdoc PHP version to 7.2
* Update Zend Diactoros with suggested package
* Refresh samples
* Remove broken tests
These tests will be fixed in next PR which moves Mock feature to
external repo.
* Point root Travis CI environment to PHP 7.3