class
League
/
CommonMark
/
Extension
/
Embed
/
DomainFilteringAdapter
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[]