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
16931cad
Commit
16931cad
authored
May 16, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #299 from creocoder/yiic-to-yii
yiic => yii additional corrections
parents
612af2ad
8b311ecb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
37 additions
and
37 deletions
+37
-37
LocaleController.php
build/controllers/LocaleController.php
+1
-1
Application.php
yii/console/Application.php
+2
-2
Controller.php
yii/console/Controller.php
+2
-2
Request.php
yii/console/Request.php
+1
-1
AssetController.php
yii/console/controllers/AssetController.php
+1
-1
HelpController.php
yii/console/controllers/HelpController.php
+7
-7
MessageController.php
yii/console/controllers/MessageController.php
+1
-1
MigrateController.php
yii/console/controllers/MigrateController.php
+20
-20
Migration.php
yii/db/Migration.php
+2
-2
plurals.php
yii/i18n/data/plurals.php
+0
-0
No files found.
build/controllers/LocaleController.php
View file @
16931cad
...
...
@@ -93,7 +93,7 @@ class LocaleController extends Controller
/**
* Plural rules.
*
* This file is automatically generated by the "yii
c
locale/plural" command under the "build" folder.
* This file is automatically generated by the "yii locale/plural" command under the "build" folder.
* Do not modify it directly.
*
* The original plural rule data used for generating this file has the following copyright terms:
...
...
yii/console/Application.php
View file @
16931cad
...
...
@@ -30,7 +30,7 @@ use yii\base\InvalidRouteException;
* To run the console application, enter the following on the command line:
*
* ~~~
* yii
c
<route> [--param1=value1 --param2 ...]
* yii <route> [--param1=value1 --param2 ...]
* ~~~
*
* where `<route>` refers to a controller route in the form of `ModuleID/ControllerID/ActionID`
...
...
@@ -42,7 +42,7 @@ use yii\base\InvalidRouteException;
* To use this command, simply type:
*
* ~~~
* yii
c
help
* yii help
* ~~~
*
* @author Qiang Xue <qiang.xue@gmail.com>
...
...
yii/console/Controller.php
View file @
16931cad
...
...
@@ -18,10 +18,10 @@ use yii\helpers\Console;
*
* A controller consists of one or several actions known as sub-commands.
* Users call a console command by specifying the corresponding route which identifies a controller action.
* The `yii
c
` program is used when calling a console command, like the following:
* The `yii` program is used when calling a console command, like the following:
*
* ~~~
* yii
c
<route> [--param1=value1 --param2 ...]
* yii <route> [--param1=value1 --param2 ...]
* ~~~
*
* @author Qiang Xue <qiang.xue@gmail.com>
...
...
yii/console/Request.php
View file @
16931cad
...
...
@@ -27,7 +27,7 @@ class Request extends \yii\base\Request
public
function
resolve
()
{
$rawParams
=
$this
->
getRawParams
();
array_shift
(
$rawParams
);
// the 1st argument is the yii
c
script name
array_shift
(
$rawParams
);
// the 1st argument is the yii script name
if
(
isset
(
$rawParams
[
0
]))
{
$route
=
$rawParams
[
0
];
...
...
yii/console/controllers/AssetController.php
View file @
16931cad
...
...
@@ -261,7 +261,7 @@ class AssetController extends Controller
file_put_contents
(
$bundleFile
,
<<<EOD
<?php
/**
* This file is generated by the "yii
c
script" command.
* This file is generated by the "yii script" command.
* DO NOT MODIFY THIS FILE DIRECTLY.
* @version $version
*/
...
...
yii/console/controllers/HelpController.php
View file @
16931cad
...
...
@@ -25,7 +25,7 @@ use yii\helpers\StringHelper;
* This command can be used as follows on command line:
*
* ~~~
* yii
c
help [command name]
* yii help [command name]
* ~~~
*
* In the above, if the command name is not provided, all
...
...
@@ -41,8 +41,8 @@ class HelpController extends Controller
* about a particular command. For example,
*
* ~~~
* yii
c
help # list available commands
* yii
c
help message # display help info about "message"
* yii help # list available commands
* yii help message # display help info about "message"
* ~~~
*
* @param string $command The name of the command to show help about.
...
...
@@ -148,7 +148,7 @@ class HelpController extends Controller
echo
"*
$command
\n
"
;
}
echo
"
\n
To see the help of each command, enter:
\n
"
;
echo
"
\n
yii
c
help <command-name>
\n\n
"
;
echo
"
\n
yii help <command-name>
\n\n
"
;
}
else
{
echo
"
\n
No commands are found.
\n
"
;
}
...
...
@@ -188,7 +188,7 @@ class HelpController extends Controller
echo
"
\n
"
;
}
echo
"
\n\n
To see the detailed information about individual sub-commands, enter:
\n
"
;
echo
"
\n
yii
c
help <sub-command>
\n\n
"
;
echo
"
\n
yii help <sub-command>
\n\n
"
;
}
}
...
...
@@ -259,9 +259,9 @@ class HelpController extends Controller
echo
"
\n
USAGE
\n\n
"
;
if
(
$action
->
id
===
$controller
->
defaultAction
)
{
echo
'yii
c
'
.
$controller
->
getUniqueId
();
echo
'yii '
.
$controller
->
getUniqueId
();
}
else
{
echo
"yii
c
"
.
$action
->
getUniqueId
();
echo
"yii "
.
$action
->
getUniqueId
();
}
list
(
$required
,
$optional
)
=
$this
->
getArgHelps
(
$method
,
isset
(
$tags
[
'param'
])
?
$tags
[
'param'
]
:
array
());
if
(
!
empty
(
$required
))
{
...
...
yii/console/controllers/MessageController.php
View file @
16931cad
...
...
@@ -194,7 +194,7 @@ class MessageController extends Controller
/**
* Message translations.
*
* This file is automatically generated by 'yii
c
message' command.
* This file is automatically generated by 'yii message' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
...
...
yii/console/controllers/MigrateController.php
View file @
16931cad
...
...
@@ -42,13 +42,13 @@ use yii\helpers\ArrayHelper;
*
* ~~~
* # creates a new migration named 'create_user_table'
* yii
c
migrate/create create_user_table
* yii migrate/create create_user_table
*
* # applies ALL new migrations
* yii
c
migrate
* yii migrate
*
* # reverts the last applied migration
* yii
c
migrate/down
* yii migrate/down
* ~~~
*
* @author Qiang Xue <qiang.xue@gmail.com>
...
...
@@ -135,8 +135,8 @@ class MigrateController extends Controller
* For example,
*
* ~~~
* yii
c
migrate # apply all new migrations
* yii
c
migrate 3 # apply the first 3 new migrations
* yii migrate # apply all new migrations
* yii migrate 3 # apply the first 3 new migrations
* ~~~
*
* @param integer $limit the number of new migrations to be applied. If 0, it means
...
...
@@ -184,8 +184,8 @@ class MigrateController extends Controller
* For example,
*
* ~~~
* yii
c
migrate/down # revert the last migration
* yii
c
migrate/down 3 # revert the last 3 migrations
* yii migrate/down # revert the last migration
* yii migrate/down 3 # revert the last 3 migrations
* ~~~
*
* @param integer $limit the number of migrations to be reverted. Defaults to 1,
...
...
@@ -231,8 +231,8 @@ class MigrateController extends Controller
* them again. For example,
*
* ~~~
* yii
c
migrate/redo # redo the last applied migration
* yii
c
migrate/redo 3 # redo the last 3 applied migrations
* yii migrate/redo # redo the last applied migration
* yii migrate/redo 3 # redo the last 3 applied migrations
* ~~~
*
* @param integer $limit the number of migrations to be redone. Defaults to 1,
...
...
@@ -284,8 +284,8 @@ class MigrateController extends Controller
* them again. For example,
*
* ~~~
* yii
c
migrate/to 101129_185401 # using timestamp
* yii
c
migrate/to m101129_185401_create_user_table # using full name
* yii migrate/to 101129_185401 # using timestamp
* yii migrate/to m101129_185401_create_user_table # using full name
* ~~~
*
* @param string $version the version name that the application should be migrated to.
...
...
@@ -332,8 +332,8 @@ class MigrateController extends Controller
* No actual migration will be performed.
*
* ~~~
* yii
c
migrate/mark 101129_185401 # using timestamp
* yii
c
migrate/mark m101129_185401_create_user_table # using full name
* yii migrate/mark 101129_185401 # using timestamp
* yii migrate/mark m101129_185401_create_user_table # using full name
* ~~~
*
* @param string $version the version at which the migration history should be marked.
...
...
@@ -398,9 +398,9 @@ class MigrateController extends Controller
* so far. For example,
*
* ~~~
* yii
c
migrate/history # showing the last 10 migrations
* yii
c
migrate/history 5 # showing the last 5 migrations
* yii
c
migrate/history 0 # showing the whole history
* yii migrate/history # showing the last 10 migrations
* yii migrate/history 5 # showing the last 5 migrations
* yii migrate/history 0 # showing the whole history
* ~~~
*
* @param integer $limit the maximum number of migrations to be displayed.
...
...
@@ -432,9 +432,9 @@ class MigrateController extends Controller
* For example,
*
* ~~~
* yii
c
migrate/new # showing the first 10 new migrations
* yii
c
migrate/new 5 # showing the first 5 new migrations
* yii
c
migrate/new 0 # showing all new migrations
* yii migrate/new # showing the first 10 new migrations
* yii migrate/new 5 # showing the first 5 new migrations
* yii migrate/new 0 # showing all new migrations
* ~~~
*
* @param integer $limit the maximum number of new migrations to be displayed.
...
...
@@ -469,7 +469,7 @@ class MigrateController extends Controller
* skeleton by filling up the actual migration logic.
*
* ~~~
* yii
c
migrate/create create_user_table
* yii migrate/create create_user_table
* ~~~
*
* @param string $name the name of the new migration. This should only contain
...
...
yii/db/Migration.php
View file @
16931cad
...
...
@@ -10,14 +10,14 @@ namespace yii\db;
/**
* Migration is the base class for representing a database migration.
*
* Migration is designed to be used together with the "yii
c
migrate" command.
* Migration is designed to be used together with the "yii migrate" command.
*
* Each child class of Migration represents an individual database migration which
* is identified by the child class name.
*
* Within each migration, the [[up()]] method should be overwritten to contain the logic
* for "upgrading" the database; while the [[down()]] method for the "downgrading"
* logic. The "yii
c
migrate" command manages all available migrations in an application.
* logic. The "yii migrate" command manages all available migrations in an application.
*
* If the database supports transactions, you may also overwrite [[safeUp()]] and
* [[safeDown()]] so that if anything wrong happens during the upgrading or downgrading,
...
...
yii/i18n/data/plurals.php
View file @
16931cad
This diff is collapsed.
Click to expand it.
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