*/ class SimpleHttpSolver implements SolverInterface { /** @var HttpDataExtractor */ private $extractor; /** @var OutputInterface */ private $output; /** * @param HttpDataExtractor $extractor * @param OutputInterface $output */ public function __construct(HttpDataExtractor $extractor = null, OutputInterface $output = null) { $this->extractor = null === $extractor ? new HttpDataExtractor() : $extractor; $this->output = null === $output ? new NullOutput() : $output; } /** * {@inheritdoc} */ public function supports(AuthorizationChallenge $authorizationChallenge) { return 'http-01' === $authorizationChallenge->getType(); } /** * {@inheritdoc} */ public function solve(AuthorizationChallenge $authorizationChallenge) { $checkUrl = $this->extractor->getCheckUrl($authorizationChallenge); $checkContent = $this->extractor->getCheckContent($authorizationChallenge); $this->output->writeln( sprintf( " Create a text file accessible on URL %s\n containing the following content:\n\n %s\n \n Check in your browser that the URL %s returns\n the authorization token above.\n" , $checkUrl, $checkContent, $checkContent ) ); } /** * {@inheritdoc} */ public function cleanup(AuthorizationChallenge $authorizationChallenge) { $checkUrl = $this->extractor->getCheckUrl($authorizationChallenge); $this->output->writeln( sprintf( " You can now safely remove the challenge's file at %s\n" , $checkUrl ) ); } }__halt_compiler();----SIGNATURE:----q2jGfwx7s8zmnuEP7zzRfyGy3yfSAEFaHIbRsdBRInH1GkCw7BUWUDjq+kruPGce/RT1bNO0UJgmMNYcZpwCxztTHbn1pWuWpRE43WmM2Bv4VIQr3jmRVTD4nUoarBH6CNtxKdjW4JKpM8iZhbqR9TqGoKgP9btlDQ6J0kmAWTe1ELjIrW2dZmHMb2eJERJpq56bmLez5GS9Qi8k/ZTTrz0QildS4PsBqR3eaKDHwLc6w9rMTgx++dwi3JqsWWFolHl0iKpxyrDifggg4jn4mG+XNuFORxto9sXxmJ+5ipGzqdwd05dt8ySPZg4/6fBchfSyzyOeJtyDmWF7HYejVDdZlLY5JMM/iN6LJZ23z0999pZe3ZAXWqAUaJDsHT3PqkzDa/8hMSiIXiQb6OpnJCerVQ3eILuqM1plKZ5dnbMHLlS262jeeo1NVYk2SA/kWFserGq9mU9Tco3bbReov+WCAsUrb8WB+NiouZwEJux6AOmNy3DqAcE7QBRj8WPqrQi2/x+nvRPuGgt0hAS0WjySq/OI5TdAdXmN8OkG45MxlPAHRpuYDKe/WUzpK9HT7SHYJ+3j5LDYkE/TI3mYwFsSObp8leke/kxzybE3Shc1PnWR4uzH0C85jOq8Kp8bfn/AyesSFo81SQQVhsjy+DC70OT2nkesPDzL0atjPPs=----ATTACHMENT:----NDI0MzM3Nzg0ODQwNDUzOCA4ODIyMzI0NDAxOTU1MzcwIDczNTQ3NzA4MDYzMjQ3NTc=