mdoq / infrastructure
There is no license information available for the latest version (1.0.0) of this package.
MDOQ infrastructure module for MAP integration
Package info
github.com/MDOQ-UK/magento2-module-infrastructure
Language:HTML
Type:magento2-module
pkg:composer/mdoq/infrastructure
1.0.0
2026-10-12 13:58 UTC
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Internal Varnish API
Inject MDOQ\Infrastructure\Api\VarnishServiceInterface into another Magento module and call updateVcl() with the VCL source:
use MDOQ\Infrastructure\Api\VarnishServiceInterface; public function __construct( private VarnishServiceInterface $mdoqVarnishService ) { } public function updateVarnish(string $vclContent): array { return $this->mdoqVarnishService->updateVcl($vclContent); }
The service uploads the source as vcl_file to the configured Varnish manager and returns its decoded JSON response. It throws RuntimeException if the upload fails or is rejected. It is an internal PHP API; it does not expose a REST endpoint.