Skip to content

Commit

Permalink
+ DumpGoal
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 9, 2016
1 parent 22637e9 commit da3731a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/goals/DumpGoal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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-2016, HiQDev (http://hiqdev.com/)
*/

namespace hidev\goals;

use yii\helpers\ArrayHelper;
use Symfony\Component\Yaml\Yaml;

/**
* Dump goal.
*/
class DumpGoal extends DefaultGoal
{
public function actionMake()
{
$data = $this->getConfig()->getItems();
print Yaml::dump(ArrayHelper::toArray($data), 4);
}
}

0 comments on commit da3731a

Please sign in to comment.