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
6507e2e3
Commit
6507e2e3
authored
Oct 16, 2013
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applied new style of Yii::t params to all occurences
parent
5d6bad5f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
Application.php
framework/yii/console/Application.php
+2
-1
Controller.php
framework/yii/console/Controller.php
+2
-2
HelpController.php
framework/yii/console/controllers/HelpController.php
+2
-2
Controller.php
framework/yii/web/Controller.php
+1
-1
No files found.
framework/yii/console/Application.php
View file @
6507e2e3
...
...
@@ -9,6 +9,7 @@
namespace
yii\console
;
use
Yii
;
use
yii\base\InvalidRouteException
;
/**
...
...
@@ -129,7 +130,7 @@ class Application extends \yii\base\Application
try
{
return
parent
::
runAction
(
$route
,
$params
);
}
catch
(
InvalidRouteException
$e
)
{
throw
new
Exception
(
\Yii
::
t
(
'yii'
,
'Unknown command "{command}".'
,
array
(
'{command}
'
=>
$route
)),
0
,
$e
);
throw
new
Exception
(
Yii
::
t
(
'yii'
,
'Unknown command "{command}".'
,
array
(
'command
'
=>
$route
)),
0
,
$e
);
}
}
...
...
framework/yii/console/Controller.php
View file @
6507e2e3
...
...
@@ -99,7 +99,7 @@ class Controller extends \yii\base\Controller
$args
[]
=
$value
;
}
else
{
throw
new
Exception
(
Yii
::
t
(
'yii'
,
'Unknown option: --{name}'
,
array
(
'
{name}
'
=>
$name
,
'
name
'
=>
$name
,
)));
}
}
...
...
@@ -125,7 +125,7 @@ class Controller extends \yii\base\Controller
if
(
!
empty
(
$missing
))
{
throw
new
Exception
(
Yii
::
t
(
'yii'
,
'Missing required arguments: {params}'
,
array
(
'
{params}
'
=>
implode
(
', '
,
$missing
),
'
params
'
=>
implode
(
', '
,
$missing
),
)));
}
...
...
framework/yii/console/controllers/HelpController.php
View file @
6507e2e3
...
...
@@ -58,7 +58,7 @@ class HelpController extends Controller
$result
=
Yii
::
$app
->
createController
(
$command
);
if
(
$result
===
false
)
{
throw
new
Exception
(
Yii
::
t
(
'yii'
,
'No help for unknown command "{command}".'
,
array
(
'
{command}
'
=>
$this
->
ansiFormat
(
$command
,
Console
::
FG_YELLOW
),
'
command
'
=>
$this
->
ansiFormat
(
$command
,
Console
::
FG_YELLOW
),
)));
}
...
...
@@ -243,7 +243,7 @@ class HelpController extends Controller
$action
=
$controller
->
createAction
(
$actionID
);
if
(
$action
===
null
)
{
throw
new
Exception
(
Yii
::
t
(
'yii'
,
'No help for unknown sub-command "{command}".'
,
array
(
'
{command}
'
=>
rtrim
(
$controller
->
getUniqueId
()
.
'/'
.
$actionID
,
'/'
),
'
command
'
=>
rtrim
(
$controller
->
getUniqueId
()
.
'/'
.
$actionID
,
'/'
),
)));
}
if
(
$action
instanceof
InlineAction
)
{
...
...
framework/yii/web/Controller.php
View file @
6507e2e3
...
...
@@ -60,7 +60,7 @@ class Controller extends \yii\base\Controller
if
(
!
empty
(
$missing
))
{
throw
new
HttpException
(
400
,
Yii
::
t
(
'yii'
,
'Missing required parameters: {params}'
,
array
(
'
{params}
'
=>
implode
(
', '
,
$missing
),
'
params
'
=>
implode
(
', '
,
$missing
),
)));
}
...
...
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