Skip to content

Commit

Permalink
removed getConfigFile <- getConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Dec 22, 2015
1 parent e7b3aa5 commit 4692567
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 171 deletions.
52 changes: 0 additions & 52 deletions src/goals/ComposerGoal.php

This file was deleted.

117 changes: 0 additions & 117 deletions src/goals/ComposerJsonGoal.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/goals/PackageGoal.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ public function hasRequireAny($package)

public function hasRequire($package)
{
$conf = $this->getPackageManager()->getConfigFile();
$conf = $this->getPackageManager()->getConfiguration();
return array_key_exists($package, $conf->getRequire());
}

public function hasRequireDev($package)
{
$conf = $this->getPackageManager()->getConfigFile();
$conf = $this->getPackageManager()->getConfiguration();
return array_key_exists($package, $conf->getRequireDev());
}
}
26 changes: 26 additions & 0 deletions src/goals/UpdateGoal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

/*
* Task runner, code generator and build tool for easier continuos integration
*
* @link https://github.com/hiqdev/hidev
* @package hidev
* @license BSD-3-Clause
* @copyright Copyright (c) 2014-2015, HiQDev (http://hiqdev.com/)
*/

namespace hidev\goals;

use Yii;

/**
* Update goal.
*/
class UpdateGoal extends DefaultGoal
{
public function actionMake()
{
exec('cd .hidev;composer update --prefer-source');
$this->module->runRequest('');
}
}

0 comments on commit 4692567

Please sign in to comment.