cloudflare/Cloudflare-Magento
Publicmirrored fromhttps://github.com/cloudflare/Cloudflare-Magento
Backend/PluginAPI.php
20lines · modecode
unknown
| 1 | <?php |
| 2 | namespace CloudFlare\Plugin\Backend; |
| 3 | |
| 4 | use \CF\API\Plugin; |
| 5 | use \CF\API\Request; |
| 6 | use CF\Integration\IntegrationInterface; |
| 7 | |
| 8 | class PluginAPI extends Plugin |
| 9 | { |
| 10 | protected $magentoHttpClient; |
| 11 | |
| 12 | public function __construct(IntegrationInterface $integration, MagentoHttpClient $magentoHttpClient) |
| 13 | { |
| 14 | parent::__construct($integration); |
| 15 | |
| 16 | $this->magentoHttpClient = $magentoHttpClient; |
| 17 | $this->magentoHttpClient->setEndpoint($this->getEndpoint()); |
| 18 | $this->setHttpClient($this->magentoHttpClient); |
| 19 | } |
| 20 | } |