Skip to content

Commit a935c99

Browse files
authored
Merge pull request #325 from franmomu/sf61
Fix deprecations with Symfony 6.1
2 parents f5f975b + ca078bd commit a935c99

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Command/GeocodeCommand.php

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
*/
2626
class GeocodeCommand extends Command
2727
{
28-
protected static $defaultName = 'geocoder:geocode';
29-
3028
/**
3129
* @var ProviderAggregator
3230
*/

Resources/config/services.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ services:
2626

2727
Bazinga\GeocoderBundle\Command\GeocodeCommand:
2828
arguments: ['@Geocoder\ProviderAggregator']
29-
tags: ['console.command']
29+
tags:
30+
- { name: 'console.command', command: 'geocoder:geocode' }
3031

3132
Bazinga\GeocoderBundle\Validator\Constraint\AddressValidator:
3233
arguments: ['@geocoder']

Tests/Functional/ProviderFactoryTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function getProviders(): iterable
9393
yield [BingMaps::class, ['acme']];
9494
yield [Chain::class, ['acme']];
9595
yield [FreeGeoIp::class, ['empty', 'acme']];
96-
//yield [Geoip::class, ['empty']];
96+
// yield [Geoip::class, ['empty']];
9797
yield [GeoIP2::class, ['acme']];
9898
if (class_exists(GeoIPs::class)) {
9999
yield [GeoIPs::class, ['acme']];

0 commit comments

Comments
 (0)