class DynamicDnsRequestFactory (View source)

Builds the dyndns2 request value object and the update service that handles it.

Reading $_SERVER and the Symfony request lives here so the value object stays a plain, dependency-free carrier of already-resolved values.

Methods

createUpdateService(PDO $db, ConfigurationInterface $config, DynamicDnsRepositoryInterface $repository, PermissionService $permissions, AuditService $auditService, ZoneCacheFlusherInterface|null $zoneCacheFlusher = null)

Wires the update service from the live database connection and configuration.

fromHttpRequest(Request $request, ConfigurationInterface $config)

No description

Details

static DynamicDnsUpdateService createUpdateService(PDO $db, ConfigurationInterface $config, DynamicDnsRepositoryInterface $repository, PermissionService $permissions, AuditService $auditService, ZoneCacheFlusherInterface|null $zoneCacheFlusher = null)

Wires the update service from the live database connection and configuration.

Parameters

PDO $db
ConfigurationInterface $config
DynamicDnsRepositoryInterface $repository
PermissionService $permissions
AuditService $auditService
ZoneCacheFlusherInterface|null $zoneCacheFlusher

Return Value

DynamicDnsUpdateService

static DynamicDnsRequest fromHttpRequest(Request $request, ConfigurationInterface $config)

No description

Parameters

Request $request
ConfigurationInterface $config

Return Value

DynamicDnsRequest