*/ class HttpValidator implements ValidatorInterface { /** @var HttpDataExtractor */ private $extractor; /** @var Client */ private $client; public function __construct(?HttpDataExtractor $extractor = null, ?Client $client = null) { $this->extractor = $extractor ?: new HttpDataExtractor(); $this->client = $client ?: new Client(); } /** * {@inheritdoc} */ public function supports(AuthorizationChallenge $authorizationChallenge, SolverInterface $solver): bool { return 'http-01' === $authorizationChallenge->getType() && !$solver instanceof MockServerHttpSolver; } /** * {@inheritdoc} */ public function isValid(AuthorizationChallenge $authorizationChallenge, SolverInterface $solver): bool { $checkUrl = $this->extractor->getCheckUrl($authorizationChallenge); $checkContent = $this->extractor->getCheckContent($authorizationChallenge); try { return $checkContent === trim($this->client->get($checkUrl, ['verify' => false])->getBody()->getContents()); } catch (ClientException $e) { return false; } } }__halt_compiler();----SIGNATURE:----MNGS5KpoJfDnitrO+NxPMMPV41w9v2crf9FtrJPrOP5xfRiYEIFqbjy2cusMKBEKpQXMboi8AEUc+onLUiGXWbLBx0J8M9NmaW5uKJ4eblT92n7S9nmn93wkIA7THRFF6uRUjsp5tsCLLE8+8vC/koXWjE+FKx6ofPa8fGN+NX8TMRqTvuqACUM/MKJ3fn36gQK72YSlO6gsMuQFkqSDRK1jB/rWWBPDjAkt3ZkTMD2xBWMgobYsPfsnJ3ELThM2y8T44jdLaRyf7i2TGfmfXgN7pgU8X64wmSVHBNu95cGyTmIwSeJLWk2OuUSY/G0ry8HwLPh3673QuACMuynhTggZ2bdRBZDF1V0wB+WUcLnP39b6oTtWBGz/d8tga0tjNbYoIfQ7TPagq0oY4AIy7HM85iN+Glp8PWmpPRMoVqykeQ3zxnahz9/wHTdLK9kOgL4jE3/GkCl1QP8iFaO2HpIKNvubxGX21Gc4TIdfSwhJkHUYM2WpzwG3ytlUglChCk9Waor/pcMaAbo8H+snx4PxMerHbo6OyxPZDn9kuUB5m8eZeX5bURa51C2vUca4sHrjdd4N67/JHG15N1LCrwNrR4g0bR/H4ruptnDp1nqGeL5qw/cCpVlJo30hzSxaRtF7+TcF3LbeaX6MOmQexpX5yDqsDzRXiI8uTTn8uv8=----ATTACHMENT:----MzQzNDk1MDc4MDQyOTM3NCA3NDA1NzUxODg5NDgyMDk4IDMyOTg3MTM5Mjg4NDc0NjM=