Commit c624f91d by Tobias Munk

fixed typos

parent d32b3a0e
......@@ -14,7 +14,7 @@ use yii\helpers\StringHelper;
/**
* This generator will generate the skeleton files needed by an extension.
* @property tbd
*
* @author Tobias Munk <schmunk@usrbin.de>
* @since 2.0
*/
......@@ -131,15 +131,11 @@ class Generator extends \yii\gii\Generator
*/
public function successMessage()
{
#if (Yii::$app->hasModule($this->moduleID)) {
# $link = Html::a('try it now', Yii::$app->getUrlManager()->createUrl($this->moduleID), ['target' => '_blank']);
# return "The module has been generated successfully. You may $link.";
#}
$outputPath = realpath(\Yii::getAlias($this->outputPath));
$output1 = <<<EOD
<p><em>The extension has been generated successfully.</em></p>
<p>To enable it in your application, you need to create a git repository
and require via composer.</p>
and require it via composer.</p>
EOD;
$code1 = <<<EOD
cd {$outputPath}/{$this->packageName}
......
......@@ -12,13 +12,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run
```
php composer.phar require --prefer-dist <?= $generator->vendorName ?>/yii2-<?= $generator->packageName ?> "*"
php composer.phar require --prefer-dist <?= $generator->vendorName ?>/<?= $generator->packageName ?> "*"
```
or add
```
"<?= $generator->vendorName ?>/yii2-<?= $generator->packageName ?>": "*"
"<?= $generator->vendorName ?>/<?= $generator->packageName ?>": "*"
```
to the require section of your `composer.json` file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment