Skip to content

Commit 97cbeff

Browse files
committed
Fix deprecation notice about Command auto-registration
1 parent 070c08d commit 97cbeff

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Command/GeocodeCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
*/
2525
class GeocodeCommand extends ContainerAwareCommand
2626
{
27+
protected static $defaultName = 'geocoder:geocode';
28+
2729
/**
2830
* {@inheritdoc}
2931
*/

Resources/config/services.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ services:
1212
class: Geocoder\ProviderAggregator
1313

1414
Bazinga\GeocoderBundle\Plugin\FakeIpPlugin:
15-
class: Bazinga\GeocoderBundle\Plugin\FakeIpPlugin
16-
arguments: ['127.0.0.1', ~]
15+
class: Bazinga\GeocoderBundle\Plugin\FakeIpPlugin
16+
arguments: ['127.0.0.1', ~]
17+
18+
Bazinga\GeocoderBundle\Command\GeocodeCommand:
19+
tags: [{ name: 'console.command' }]
1720

1821
# Keep these aliases for BC purpose
1922
bazinga_geocoder.geocoder:

0 commit comments

Comments
 (0)