Skip to content

Commit

Permalink
renamed goals -> controllers, get -> take
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 13, 2016
1 parent 528bde6 commit 9b95d3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -46,8 +46,7 @@
"hiqdev/composer-extension-plugin": "*@dev"
},
"require-dev": {
"hiqdev/hidev": "*@dev",
"hiqdev/yii2-pluginmanager": "*"
"hiqdev/hidev": "*@dev"
},
"autoload": {
"psr-4": {
Expand Down
Expand Up @@ -9,14 +9,14 @@
* @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
*/

namespace hidev\license\goals;
namespace hidev\license\controllers;

use hidev\helpers\Helper;

/**
* Goal for LICENSE generation.
*/
class LicenseGoal extends \hidev\goals\TemplateGoal
class LicenseController extends \hidev\controllers\TemplateController
{
/**
* The license.
Expand All @@ -40,7 +40,7 @@ public function setLicense($value)
public function getLicense()
{
if ($this->_license === null) {
$this->_license = $this->getPackage()->getLicense();
$this->_license = $this->takeGoal('package')->getLicense();
}

return $this->_license;
Expand Down
10 changes: 5 additions & 5 deletions src/yii2-extraconfig.php
Expand Up @@ -13,19 +13,19 @@
'components' => [
'config' => [
'license' => [
'class' => 'hidev\license\goals\LicenseGoal',
'class' => 'hidev\license\controllers\LicenseController',
],
'LICENSE' => [
'class' => 'hidev\license\goals\LicenseGoal',
'class' => 'hidev\license\controllers\LicenseController',
],
'LICENSE.md' => [
'class' => 'hidev\license\goals\LicenseGoal',
'class' => 'hidev\license\controllers\LicenseController',
],
'LICENSE.txt' => [
'class' => 'hidev\license\goals\LicenseGoal',
'class' => 'hidev\license\controllers\LicenseController',
],
'LICENSE.markdown' => [
'class' => 'hidev\license\goals\LicenseGoal',
'class' => 'hidev\license\controllers\LicenseController',
],
'views' => [
'@hidev/license/views',
Expand Down

0 comments on commit 9b95d3f

Please sign in to comment.