Correctly instantiate the Inflector

$this->grav is not what we expect here. Got a fatal error on `$ bin/gpm` execution
This commit is contained in:
Flavio Copes
2015-07-31 16:01:52 +02:00
parent 00f758dd98
commit 656c23a891

View File

@@ -349,8 +349,7 @@ class GPM extends Iterator
public function findPackages($searches = [])
{
$packages = ['total' => 0, 'not_found' => []];
$inflector = $this->grav['inflector'];
$inflector = new Inflector();
foreach ($searches as $search) {
$repository = '';