Skip to content

About

Symfony Bundle for Shopware App Backend

Topics

Resources

Stars

16 stars

Watchers

28 watching

Forks

Repository files navigation

App Bundle

PHPUnit codecov

App Bundle integrates the PHP App SDK for Symfony.

Refer to the quick start documentation for more information.

Requests to shops

All requests to shops, from the SDK's ClientFactory and the reachability check, go through the shopware_app.shop_http_client service. It uses the options of its base client, e.g. framework.http_client.default_options.

shopware_app:
    shop_http_client:
        base_client: http_client  # Symfony HTTP client to build on
        url_guard:
            enabled: false
            max_redirects: 5
            max_response_bytes: 8388608

Shop URLs come from whoever installs your app, so they can point into your own network. The URL guard refuses anything but https:// to a public IP address, also on redirects, and caps redirects and response size. Enable it in production; local shops usually run on http://localhost:

when@prod:
    shopware_app:
        shop_http_client:
            url_guard: true

Your own decorators of shopware_app.shop_http_client run before the guard with a priority below 16, and after it with a priority above 16.

About

Symfony Bundle for Shopware App Backend

Topics

Resources

Stars

16 stars

Watchers

28 watching

Forks

Releases

Packages

Used by

Contributors

Languages