diff --git a/src/Command/GeoIpCommand.php b/src/Command/GeoIpCommand.php index 571217b..4ece182 100644 --- a/src/Command/GeoIpCommand.php +++ b/src/Command/GeoIpCommand.php @@ -33,14 +33,13 @@ )] class GeoIpCommand extends Command { - protected LocationServiceInterface $locationService; /** @var string $defaultName */ - protected static $defaultName = 'geoip:synchronize'; + public static $defaultName = 'geoip:synchronize'; - public function __construct(LocationServiceInterface $locationService) - { + public function __construct( + protected LocationServiceInterface $locationService, + ) { parent::__construct(self::$defaultName); - $this->locationService = $locationService; } public function configure(): void