Tastaturberuf / anyStores

Contao-Module: Organize any locations with geolocation search.
GNU Lesser General Public License v3.0
11 stars 7 forks source link

Add support for proxy plugin #67

Closed DanMan closed 7 years ago

DanMan commented 8 years ago

If you have to use the proxy plugin for external requests, the API requests in anyStores to Google or OSM don't work. It should be as simple as:

if(class_exists('ProxyRequest'))
    $objRequest = new \ProxyRequest();
else
    $objRequest = new \Request();`

inside the 2 API classes.

Tastaturberuf commented 7 years ago

Fixed in 2.0

DanMan commented 7 years ago

You sure that's right? Notice the NS escape on \ProxyRequest() in my code example.

Tastaturberuf commented 7 years ago

https://github.com/Tastaturberuf/anyStores/blob/2.0.0-dev/src/Tastaturberuf/AnyStores/AnyStores.php#L65