Skip to content

Commit

Permalink
Merge pull request #182 from iamluc/fix-command-auto-registration
Browse files Browse the repository at this point in the history
Fix deprecation notice about Command auto-registration
  • Loading branch information
Nyholm authored Jan 23, 2018
2 parents 070c08d + 97cbeff commit f011b22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Command/GeocodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
*/
class GeocodeCommand extends ContainerAwareCommand
{
protected static $defaultName = 'geocoder:geocode';

/**
* {@inheritdoc}
*/
Expand Down
7 changes: 5 additions & 2 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ services:
class: Geocoder\ProviderAggregator

Bazinga\GeocoderBundle\Plugin\FakeIpPlugin:
class: Bazinga\GeocoderBundle\Plugin\FakeIpPlugin
arguments: ['127.0.0.1', ~]
class: Bazinga\GeocoderBundle\Plugin\FakeIpPlugin
arguments: ['127.0.0.1', ~]

Bazinga\GeocoderBundle\Command\GeocodeCommand:
tags: [{ name: 'console.command' }]

# Keep these aliases for BC purpose
bazinga_geocoder.geocoder:
Expand Down

0 comments on commit f011b22

Please sign in to comment.