Search by

mdoq / infrastructure

MDOQ

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

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-10-12 13:58 UTC

This package is auto-updated.

Last update: 2026-10-12 14:08:52 UTC


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.