diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 91a0c763e..f8d93ae4d 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -5,6 +5,7 @@ use Grav\Common\Filesystem\Folder; use Grav\Common\GPM\GPM; use Grav\Common\GPM\Installer; use Grav\Common\GPM\Response; +use Grav\Common\Grav; use Grav\Common\Utils; use Grav\Console\ConsoleCommand; use Symfony\Component\Console\Input\InputArgument; @@ -255,7 +256,7 @@ class InstallCommand extends ConsoleCommand $dependencyVersion = $this->calculateVersionNumberFromDependencyVersion($dependencyVersion); // check the version, if an update is not strictly required mark as 'ignore' - $locator = self::getGrav()['locator']; + $locator = Grav::instance()['locator']; $blueprints_path = $locator->findResource('plugins://' . $dependencySlug . DS . 'blueprints.yaml'); $package_yaml = Yaml::parse(file_get_contents($blueprints_path)); $currentlyInstalledVersion = $package_yaml['version'];