We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sylius version affected: 1.10 ... 1.14
Description Sylius documentation clearly mentions config/api_platform/config.yaml API platform customization config file.
config/api_platform/config.yaml
Another Sylius documentation indirectly says that config/api_platform/config.yaml should be used automatically for Sylius 1.11
But that file is not used at all, until manual change of basic API platform config is made
# config/packages/api_platform.yaml api_platform: mapping: paths: - '%kernel.project_dir%/config/api_platform'
Steps to reproduce
composer create-project sylius/sylius-standard MyFirstShop
'%sylius.model.zone.class%': collectionOperations: admin_get: enabled: false
rm -fr var/cache
symfony serve open http://127.0.0.1:8000/api/v2
GET /api/v2/admin/zones
bin/console debug:router | grep /api/v2/admin/zones
Possible Solution
config/packages/api_platform.yaml
api_platform: mapping: paths: - '%kernel.project_dir%/config/api_platform'
in sylius/sylius repository
The text was updated successfully, but these errors were encountered:
Hi @jaroslavtyc,
I was trying to recreate your issue and I have some conclusions:
Sylius/Sylius-Standard
Sylius/Sylius
enabled
xml
Sorry, something went wrong.
mpysiak
No branches or pull requests
Sylius version affected: 1.10 ... 1.14
Description
Sylius documentation clearly mentions
config/api_platform/config.yaml
API platform customization config file.Another Sylius documentation indirectly says that
config/api_platform/config.yaml
should be used automatically for Sylius 1.11But that file is not used at all, until manual change of basic API platform config is made
Steps to reproduce
composer create-project sylius/sylius-standard MyFirstShop
config/api_platform/config.yaml
rm -fr var/cache
GET /api/v2/admin/zones
API endpoint still exists in OpenAPIbin/console debug:router | grep /api/v2/admin/zones
endpoints still exist in routingPossible Solution
config/api_platform/config.yaml
file and links the dirconfig/packages/api_platform.yaml
in sylius/sylius repository
The text was updated successfully, but these errors were encountered: