Skip to content

Commit f92ad63

Browse files
committed
Remove deprecated provider factories
1 parent fe24ecb commit f92ad63

File tree

9 files changed

+8
-140
lines changed

9 files changed

+8
-140
lines changed

src/ProviderFactory/GeoIPsFactory.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/ProviderFactory/MapzenFactory.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

tests/Functional/PluginInteractionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCachePluginUsesIpFromFakeIpPlugin(): void
5151
}
5252

5353
$kernel->addTestConfig(__DIR__.'/config/cache_symfony.yml');
54-
$kernel->addTestConfig(__DIR__.'/config/geo_plugin_fakeip_with_cache_cn.yml');
54+
$kernel->addTestConfig(__DIR__.'/config/fakeip_with_cache_cn.yml');
5555
}]);
5656
$kernel->setClearCacheAfterShutdown(false);
5757
$container = self::getContainer();
@@ -70,7 +70,7 @@ public function testCachePluginUsesIpFromFakeIpPlugin(): void
7070
}
7171

7272
$kernel->addTestConfig(__DIR__.'/config/cache_symfony.yml');
73-
$kernel->addTestConfig(__DIR__.'/config/geo_plugin_fakeip_with_cache_fr.yml');
73+
$kernel->addTestConfig(__DIR__.'/config/fakeip_with_cache_fr.yml');
7474
}]);
7575
$kernel->setClearCacheAfterShutdown(false);
7676
$container = self::getContainer();

tests/Functional/ProviderFactoryTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Geocoder\Provider\FreeGeoIp\FreeGeoIp;
2121
use Geocoder\Provider\Geoip\Geoip;
2222
use Geocoder\Provider\GeoIP2\GeoIP2;
23-
use Geocoder\Provider\GeoIPs\GeoIPs;
2423
use Geocoder\Provider\Geonames\Geonames;
2524
use Geocoder\Provider\GeoPlugin\GeoPlugin;
2625
use Geocoder\Provider\GoogleMaps\GoogleMaps;
@@ -33,7 +32,6 @@
3332
use Geocoder\Provider\LocationIQ\LocationIQ;
3433
use Geocoder\Provider\Mapbox\Mapbox;
3534
use Geocoder\Provider\MapQuest\MapQuest;
36-
use Geocoder\Provider\Mapzen\Mapzen;
3735
use Geocoder\Provider\MaxMind\MaxMind;
3836
use Geocoder\Provider\MaxMindBinary\MaxMindBinary;
3937
use Geocoder\Provider\Nominatim\Nominatim;
@@ -107,9 +105,6 @@ public function getProviders(): iterable
107105
yield [FreeGeoIp::class, ['empty', 'acme']];
108106
// yield [Geoip::class, ['empty']];
109107
yield [GeoIP2::class, ['acme']];
110-
if (class_exists(GeoIPs::class)) {
111-
yield [GeoIPs::class, ['acme']];
112-
}
113108
yield [Geonames::class, ['acme']];
114109
yield [GeoPlugin::class, ['empty']];
115110
yield [GoogleMaps::class, ['empty']];
@@ -122,9 +117,6 @@ public function getProviders(): iterable
122117
yield [LocationIQ::class, ['acme']];
123118
yield [Mapbox::class, ['acme']];
124119
yield [MapQuest::class, ['acme']];
125-
if (class_exists(Mapzen::class)) {
126-
yield [Mapzen::class, ['acme']];
127-
}
128120
yield [MaxMind::class, ['acme']];
129121
yield [MaxMindBinary::class, ['acme']];
130122
yield [Nominatim::class, ['empty', 'acme']];

tests/Functional/config/geo_plugin_fakeip_with_cache_cn.yml renamed to tests/Functional/config/fakeip_with_cache_cn.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
bazinga_geocoder:
33
# The local IP (127.0.0.1) will be replaced by the fake_ip
44
# see https://github.com/geocoder-php/BazingaGeocoderBundle/blob/5.0.0/Resources/doc/index.md#fake-local-ip
5-
fake_ip:
5+
fake_ip:
66
local_ip: ::1
77
ip: 123.123.123.128
88
# this ip is in china
99
providers:
1010
geoPlugin:
11-
factory: Bazinga\GeocoderBundle\ProviderFactory\GeoPluginFactory
11+
factory: Bazinga\GeocoderBundle\ProviderFactory\FreeGeoIpFactory
1212
cache: 'app.simple_cache'
1313
cache_lifetime: 42
14-
cache_precision: ~
14+
cache_precision: ~

tests/Functional/config/geo_plugin_fakeip_with_cache_fr.yml renamed to tests/Functional/config/fakeip_with_cache_fr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
bazinga_geocoder:
33
# The local IP (127.0.0.1) will be replaced by the fake_ip
44
# see https://github.com/geocoder-php/BazingaGeocoderBundle/blob/5.0.0/Resources/doc/index.md#fake-local-ip
5-
fake_ip:
5+
fake_ip:
66
local_ip: ::1
77
ip: 87.98.128.10
88
# this ip is in france
99
providers:
1010
geoPlugin:
11-
factory: Bazinga\GeocoderBundle\ProviderFactory\GeoPluginFactory
11+
factory: Bazinga\GeocoderBundle\ProviderFactory\FreeGeoIpFactory
1212
cache: 'app.simple_cache'
1313
cache_lifetime: 42
14-
cache_precision: ~
14+
cache_precision: ~

tests/Functional/config/provider/geoips.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/Functional/config/provider/mapzen.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/baseline-ignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
%Bazinga\\GeocoderBundle\\ProviderFactory\\GeoIPsFactory is deprecated since 5.6, to be removed in 6.0%
2-
%Bazinga\\GeocoderBundle\\ProviderFactory\\MapzenFactory is deprecated since 5.6, to be removed in 6.0%
31
%Since doctrine/doctrine-bundle 2.11: Not setting "enable_lazy_ghost_objects" to true is deprecated%
42
%Not configuring a schema manager factory is deprecated. Use Doctrine\\DBAL\\Schema\\DefaultSchemaManagerFactory which is going to be the default in DBAL 4%
53
%Doctrine\\DBAL\\Configuration::setSQLLogger is deprecated, use setMiddlewares\(\) and Logging\\Middleware instead%

0 commit comments

Comments
 (0)