*/ class SimpleDnsSolver implements SolverInterface { /** @var DnsDataExtractor */ private $extractor; /** @var OutputInterface */ protected $output; /** * @param DnsDataExtractor $extractor * @param OutputInterface $output */ public function __construct(DnsDataExtractor $extractor = null, OutputInterface $output = null) { $this->extractor = null === $extractor ? new DnsDataExtractor() : $extractor; $this->output = null === $output ? new NullOutput() : $output; } /** * {@inheritdoc} */ public function supports(AuthorizationChallenge $authorizationChallenge) { return 'dns-01' === $authorizationChallenge->getType(); } /** * {@inheritdoc} */ public function solve(AuthorizationChallenge $authorizationChallenge) { $recordName = $this->extractor->getRecordName($authorizationChallenge); $recordValue = $this->extractor->getRecordValue($authorizationChallenge); $this->output->writeln( sprintf( " Add the following TXT record to your DNS zone\n Domain: %s\n TXT value: %s\n \n Wait for the propagation before moving to the next step\n Tips: Use the following command to check the propagation\n\n host -t TXT %s\n" , $recordName, $recordValue, $recordName ) ); } /** * {@inheritdoc} */ public function cleanup(AuthorizationChallenge $authorizationChallenge) { $recordName = $this->extractor->getRecordName($authorizationChallenge); $this->output->writeln( sprintf( "You can now cleanup your DNS by removing the domain _acme-challenge.%s." , $recordName ) ); } }__halt_compiler();----SIGNATURE:----GcXGG5GX7FW185nf0ViWcVYiW2xFiSZoMPau3B0a7/SH8uYgc57SCzmuku/GBXeTNWAOis8aH5lX1aazRASlLptp7qZsmnCv44WmmrCuTT5iKsaBagetOiObP4/+DOYgf2dzI1mdP4QGGNtD2THvQxu6YW2Zsb3cG2HrsvgYFtZZH/yGJjWT7X0WX0D00T8NB0n9RoxPRJV7nhDZhPfhOM+b/D9qn2cJIMMVUBkF+YXxUt2NSc0qX0p2RzWrPOyuvq3H9upBhTiaGmwBgX20LKZJgncvc7DT/UUC1bncbRuevS77NNUqWcOeEQafWpKLTQ9BzQ2Ja+PTBusmpRKwrhcSEWKKk4mcjNF/uwrCktzIULW3ZIzRyjbSiqR9WFzYWJxiUq67OJZhZ9n98dmIKuqILt+heArSzrDb8ym1UkqnAG2PphAovjLg0zWeiYiFSclRE3MqmMA1Hqyw84mxL8HxYfMVhFxNJZj7Z1qOtkV/OrH8umCHzJnzxE1sRv8p3FM+K+41iWMMNwPzPHsFhdXeJVXKzBU3jlS4DE1CFrHppNhJ72Pv2pvZx+p+ebl2yAKVYrBUWWZtUzdqBf2iHwhfpfK9DOBPIPmo/uId9oKIt8ox7K0f7D4jGsjSV3BxS/BHRtg54a8JjjZQQ+qtAbWELk1k6mAsWGhLTaPsdIY=----ATTACHMENT:----NjUxNzI0NDk1MDkyNTc1OSA5MzQ1Mjg1MTQwNTQ3MDIzIDEwMTQ5MTgzMTA2NjAzMw==