mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-12 03:30:12 +08:00
fixed typos
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user