Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function __construct
- (
- MagentoFrameworkHTTPAdapterCurl $curl
- )
- {
- $this->curl = $curl;
- }
- public function getGeoIpResponse($ip)
- {
- $this->curl->setConfig(['header' => false]);
- $this->curl->write('GET', $ip);
- return $this->curl->read();
- }
- public function __construct
- (
- MagentoFrameworkHTTPAdapterCurl $curl
- )
- {
- $this->curl = $curl;
- }
- public function getFixerResponse($base) {
- $this->curl->write('GET', $this->fixerUrl . $base);
- $response = $this->curl->read();
- return $response;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement