class League / CommonMark / Extension / Embed / DomainFilteringAdapter
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.

DomainFilteringAdapter

Implements

Properties

private

$decorated

Default: null
private

$regex

Default: null

Methods

public

__construct ( EmbedAdapterInterface $decorated , array $allowedDomains ) : void

Parameters

  • $allowedDomains string[]
public

updateEmbeds ( array $embeds ) : void

{@inheritDoc}

private static

createRegex ( array $allowedDomains ) : void

Parameters

  • $allowedDomains string[]