Skip to content
Corex

SocialSharingService

Corex\Config\Blog\SocialSharingService · class · Config layer

Builds Blog share controls and records first-party share clicks.

__construct(BlogAnalyticsService $analytics, SocialSharingSettingsStore $settings)

Section titled “__construct(BlogAnalyticsService $analytics, SocialSharingSettingsStore $settings)”
Section titled “controls(int $postId, string $permalink, string $title): array”

recordShareClick(int $postId, string $target, string $visitorKey, string $ipAddress, string $userAgent, bool $consented, DateTimeImmutable $occurredAt): ?ReadingEvent

Section titled “recordShareClick(int $postId, string $target, string $visitorKey, string $ipAddress, string $userAgent, bool $consented, DateTimeImmutable $occurredAt): ?ReadingEvent”