1 | <?php |
||
21 | final class ExternalLinkProcessor |
||
22 | { |
||
23 | private $coreProcessor; |
||
24 | |||
25 | /** |
||
26 | * @param EnvironmentInterface $environment |
||
27 | */ |
||
28 | public function __construct(EnvironmentInterface $environment) |
||
33 | |||
34 | /** |
||
35 | * @param DocumentParsedEvent $e |
||
36 | */ |
||
37 | public function __invoke(DocumentParsedEvent $e) |
||
41 | |||
42 | /** |
||
43 | * @param string $host |
||
44 | * @param mixed $compareTo |
||
45 | * |
||
46 | * @return bool |
||
47 | * |
||
48 | * @internal This method is only public so we can easily test it. DO NOT USE THIS OUTSIDE OF THIS EXTENSION! |
||
49 | */ |
||
50 | 21 | public static function hostMatches(string $host, $compareTo) |
|
56 | } |
||
57 |
If you suppress an error, we recommend checking for the error condition explicitly: