* 1.11:
Use request stack service everytimes
[Zones] disabled country choosing made possible
Apply suggestions from code review
Fix Phpspec errors again
Trying to fix Phpspec on Symfony 4.4
Fix Psalm errors
Keep session for now
Fix zone member integrity listener
This PR was merged into the 1.12-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | 1.11
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | none
| License | MIT
While in Symfony 5 the `Symfony\Bundle\FrameworkBundle\Templating\EngineInterface` was removed, in Sylius there were still references to that interface in docblock comments.
With Sylius 1.11 ([with this commit](ced91b9bd6)) the type hint has been promoted to a PHP type hint. This normally does not cause any problem because apparently the class loading is lazy and does not try to load the non-existent interface.
But if PHP OPCache preload is used, like suggested [here](https://symfony.com/doc/current/performance.html#use-the-opcache-class-preloading), it appears that PHP switches to eager class loading and you get the following fatal error:
```
NOTICE: PHP message: PHP Fatal error: Failed to load class Symfony\Bundle\FrameworkBundle\Templating\EngineInterface used by typed property Sylius\Bundle\ShopBundle\Controller\SecurityWidgetController::$templatingEngine during preloading in Unknown on line 0
```
With this PR we propose to remove all references to the old interface as Symfony 4 is not supported anymore by Sylius.
Commits
-------
1b555f948d Remove references to old Symfony FrameworkBundle EngineInterface
This PR was merged into the 1.10-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | yes
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| License | MIT
<!--
- Bug fixes must be submitted against the 1.7 or 1.8 branch (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
To be sure you are not breaking any Backward Compatibilities, check the documentation:
https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->
Commits
-------
68a954c990 Add api resource configurations
8b6dec976c Remove redundant SubresourceDataProvider.php
04766380f7 Fix tests
9ee6202982 Fix RouteNameResolver
312ffe0e66 Fix last behats and specs
5f74dec4ee Remove box with info about api identifiers
9b466a1266 Fix phpunits
f6816bdbc7 Fix TokenValueBasedCartContext and add last fixes for tests
ee39c624f8 Remove ExtractorPropertyMetadataFactory
155dd7a7cb Fix tests
* 1.9:
Change app.php to index.php
Lock on Admin API Bundle v1.8
Add conflict with jms/serializer-bundle 3.9.0
Add LazyOption::getOneBy backported from 1.9, since newer AdminApiBundle depends on it
Explicitly set version in composer.json
Extract sylius/admin-api-bundle
* 1.8:
Change app.php to index.php
Lock on Admin API Bundle v1.8
Add conflict with jms/serializer-bundle 3.9.0
Add LazyOption::getOneBy backported from 1.9, since newer AdminApiBundle depends on it
Explicitly set version in composer.json
Extract sylius/admin-api-bundle
* 1.9:
[ApiBundle] Add README file with testing instructions
[ApiBundle] Remove setting APP_DEBUG variable for PHPUnit
[Api] Refactor fetching id from IRI converter to direct object
[ApiBundle] Move unit tests of test application to src directory
[ApiBundle] Revert changes in RouteNameResolver and PathPrefixProvider
[ApiBundle] Refactor directories and namespaces of test application
[ApiBundle] Update composer in test application
[ApiBundle] Update .gitignore file in test application
[ApiBundle] Simplify configs of test application
Add tests for Taxon and add fixes
Add tests for chceking relations and iris on api resource
Add test and configuration for overwriting apiPlatform resources
Add test for resource type entity
Add test for new not admin api resource by loged admin
Add test entity and api_platform overwriting config
Add test app for ApiBundle