Sylius / SyliusResourceBundle

Simpler CRUD for Symfony applications
https://sylius.com
MIT License
214 stars 156 forks source link

SyliusCrudRoutes attribute and host parameter #843

Open notFloran opened 5 months ago

notFloran commented 5 months ago

Describe the proposed solution

Allow host parameter for SyliusCrudRoutes attribute as for SyliusRoute attribute.

Describe alternatives you've considered

I use YAML config with the following config.

app.yaml :

app_extranet:
    resource: "_extranet.yaml"
    host: "%extranet_host%"

_extranet.yaml :

extranet_my_resource:
    resource: |
        alias: app.chassis
    type: sylius.resource
loic425 commented 4 months ago

@notFloran Not sure we will implement that in the current routing system, cause we are building another metadata and routing system in 1.11. But we have missed "host" and "schemes" option, so I keep this issue open.