From d32b3a0e8f005e38cffa706babcb4b51d0205d30 Mon Sep 17 00:00:00 2001 From: Tobias Munk Date: Wed, 26 Feb 2014 00:37:57 +0100 Subject: [PATCH] updated docs and hints --- extensions/gii/generators/extension/Generator.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/extensions/gii/generators/extension/Generator.php b/extensions/gii/generators/extension/Generator.php index 6c9e9f736b..b508d54c45 100644 --- a/extensions/gii/generators/extension/Generator.php +++ b/extensions/gii/generators/extension/Generator.php @@ -108,9 +108,9 @@ class Generator extends \yii\gii\Generator public function hints() { return [ - 'vendorName' => 'This refers to the name of the publisher, your GitHub user name is usually a good choice, eg. myself', - 'packageName' => 'This is the name of the extension on packagist, eg. yii2-foobar', - 'namespace' => 'PSR-4, eg. myself\foobar This will be added to your autoloading by composer. Do not use yii or yii2 in the namespace.', + 'vendorName' => 'This refers to the name of the publisher, your GitHub user name is usually a good choice, eg. myself.', + 'packageName' => 'This is the name of the extension on packagist, eg. yii2-foobar.', + 'namespace' => 'PSR-4, eg. myself\foobar\ This will be added to your autoloading by composer. Do not use yii or yii2 in the namespace.', 'keywords' => 'Comma separated keywords for this extension.', 'outputPath' => 'The temporary location of the generated files.', 'title' => 'A more descriptive name of your application for the README file.', @@ -151,7 +151,7 @@ git remote add origin https://path.to/your/repo git push -u origin master EOD; $output2 = <<The next step is just for local testing, skip it if you directly publish the extension on e.g. packagist.org

+

The next step is just for initial development, skip it if you directly publish the extension on packagist.org

Add the newly created repo to your composer.json.

EOD; $code2 = <<namespace}AutoloadExample::widget(); EOD; + $output5 = <<When you have finished development register your extension at packagist.org.

+EOD; + $return = $output1 . '
' . highlight_string($code1, true) . '
'; $return .= $output2 . '
' . highlight_string($code2, true) . '
'; $return .= $output3 . '
' . highlight_string($code3, true) . '
'; $return .= $output4 . '
' . highlight_string($code4, true) . '
'; + $return .= $output5; return $return; }