Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
d32b3a0e
Commit
d32b3a0e
authored
Feb 26, 2014
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated docs and hints
parent
9ad28d90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Generator.php
extensions/gii/generators/extension/Generator.php
+9
-4
No files found.
extensions/gii/generators/extension/Generator.php
View file @
d32b3a0e
...
@@ -108,9 +108,9 @@ class Generator extends \yii\gii\Generator
...
@@ -108,9 +108,9 @@ class Generator extends \yii\gii\Generator
public
function
hints
()
public
function
hints
()
{
{
return
[
return
[
'vendorName'
=>
'This refers to the name of the publisher, your GitHub user name is usually a good choice, eg. <code>myself</code>'
,
'vendorName'
=>
'This refers to the name of the publisher, your GitHub user name is usually a good choice, eg. <code>myself</code>
.
'
,
'packageName'
=>
'This is the name of the extension on packagist, eg. <code>yii2-foobar</code>'
,
'packageName'
=>
'This is the name of the extension on packagist, eg. <code>yii2-foobar</code>
.
'
,
'namespace'
=>
'PSR-4, eg. <code>myself\foobar</code> This will be added to your autoloading by composer. Do not use yii or yii2 in the namespace.'
,
'namespace'
=>
'PSR-4, eg. <code>myself\foobar
\
</code> 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.'
,
'keywords'
=>
'Comma separated keywords for this extension.'
,
'outputPath'
=>
'The temporary location of the generated files.'
,
'outputPath'
=>
'The temporary location of the generated files.'
,
'title'
=>
'A more descriptive name of your application for the README file.'
,
'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
...
@@ -151,7 +151,7 @@ git remote add origin https://path.to/your/repo
git push -u origin master
git push -u origin master
EOD;
EOD;
$output2
=
<<<EOD
$output2
=
<<<EOD
<p>The next step is just for <em>
local testing</em>, skip it if you directly publish the extension on e.g.
packagist.org</p>
<p>The next step is just for <em>
initial development</em>, skip it if you directly publish the extension on
packagist.org</p>
<p>Add the newly created repo to your composer.json.</p>
<p>Add the newly created repo to your composer.json.</p>
EOD;
EOD;
$code2
=
<<<EOD
$code2
=
<<<EOD
...
@@ -175,10 +175,15 @@ EOD;
...
@@ -175,10 +175,15 @@ EOD;
$code4
=
<<<EOD
$code4
=
<<<EOD
\\{$this->namespace}AutoloadExample::widget();
\\{$this->namespace}AutoloadExample::widget();
EOD;
EOD;
$output5
=
<<<EOD
<p>When you have finished development register your extension at <a href='https://packagist.org/' target='_blank'>packagist.org</a>.</p>
EOD;
$return
=
$output1
.
'<pre>'
.
highlight_string
(
$code1
,
true
)
.
'</pre>'
;
$return
=
$output1
.
'<pre>'
.
highlight_string
(
$code1
,
true
)
.
'</pre>'
;
$return
.=
$output2
.
'<pre>'
.
highlight_string
(
$code2
,
true
)
.
'</pre>'
;
$return
.=
$output2
.
'<pre>'
.
highlight_string
(
$code2
,
true
)
.
'</pre>'
;
$return
.=
$output3
.
'<pre>'
.
highlight_string
(
$code3
,
true
)
.
'</pre>'
;
$return
.=
$output3
.
'<pre>'
.
highlight_string
(
$code3
,
true
)
.
'</pre>'
;
$return
.=
$output4
.
'<pre>'
.
highlight_string
(
$code4
,
true
)
.
'</pre>'
;
$return
.=
$output4
.
'<pre>'
.
highlight_string
(
$code4
,
true
)
.
'</pre>'
;
$return
.=
$output5
;
return
$return
;
return
$return
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment