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
67dd874e
Commit
67dd874e
authored
Mar 26, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed console controller optoins param $id to $actionId
parent
21bc2956
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
23 additions
and
26 deletions
+23
-26
PhpDocController.php
build/controllers/PhpDocController.php
+2
-2
ApiController.php
extensions/apidoc/commands/ApiController.php
+2
-2
GuideController.php
extensions/apidoc/commands/GuideController.php
+2
-2
BaseController.php
extensions/apidoc/components/BaseController.php
+2
-2
FixtureController.php
extensions/faker/FixtureController.php
+3
-4
View.php
framework/base/View.php
+0
-1
MemCache.php
framework/caching/MemCache.php
+1
-0
Controller.php
framework/console/Controller.php
+2
-2
FixtureController.php
framework/console/controllers/FixtureController.php
+4
-5
MigrateController.php
framework/console/controllers/MigrateController.php
+4
-5
BaseHtml.php
framework/helpers/BaseHtml.php
+1
-1
No files found.
build/controllers/PhpDocController.php
View file @
67dd874e
...
...
@@ -115,9 +115,9 @@ class PhpDocController extends Controller
/**
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
[
'updateFiles'
]);
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'updateFiles'
]);
}
protected
function
updateClassPropertyDocs
(
$file
,
$className
,
$propertyDoc
)
...
...
extensions/apidoc/commands/ApiController.php
View file @
67dd874e
...
...
@@ -159,8 +159,8 @@ class ApiController extends BaseController
/**
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
[
'template'
,
'guide'
]);
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'template'
,
'guide'
]);
}
}
extensions/apidoc/commands/GuideController.php
View file @
67dd874e
...
...
@@ -114,8 +114,8 @@ class GuideController extends BaseController
/**
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
[
'apiDocs'
]);
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'apiDocs'
]);
}
}
extensions/apidoc/components/BaseController.php
View file @
67dd874e
...
...
@@ -126,8 +126,8 @@ abstract class BaseController extends Controller
/**
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
[
'template'
,
'exclude'
]);
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'template'
,
'exclude'
]);
}
}
extensions/faker/FixtureController.php
View file @
67dd874e
...
...
@@ -171,12 +171,11 @@ class FixtureController extends \yii\console\controllers\FixtureController
/**
* Returns the names of the global options for this command.
* @return array the names of the global options for this command.
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
[
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'templatePath'
,
'language'
,
'fixtureDataPath'
]);
}
...
...
framework/base/View.php
View file @
67dd874e
...
...
@@ -141,7 +141,6 @@ class View extends Component
public
function
render
(
$view
,
$params
=
[],
$context
=
null
)
{
$viewFile
=
$this
->
findViewFile
(
$view
,
$context
);
return
$this
->
renderFile
(
$viewFile
,
$params
,
$context
);
}
...
...
framework/caching/MemCache.php
View file @
67dd874e
...
...
@@ -78,6 +78,7 @@ class MemCache extends Cache
*/
private
$_servers
=
[];
/**
* Initializes this application component.
* It creates the memcache instance and adds memcache servers.
...
...
framework/console/Controller.php
View file @
67dd874e
...
...
@@ -264,10 +264,10 @@ class Controller extends \yii\base\Controller
* Note that the values setting via options are not available
* until [[beforeAction()]] is being called.
*
* @param string $
id action name
* @param string $
actionId the action id of the current request
* @return array the names of the options valid for the action
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
// $id might be used in subclass to provide options specific to action id
return
[
'color'
,
'interactive'
];
...
...
framework/console/controllers/FixtureController.php
View file @
67dd874e
...
...
@@ -33,7 +33,6 @@ use yii\test\FixtureTrait;
*/
class
FixtureController
extends
Controller
{
use
FixtureTrait
;
/**
...
...
@@ -57,13 +56,13 @@ class FixtureController extends Controller
'yii\test\InitDb'
,
];
/**
* Returns the names of the global options for this command.
* @return array the names of the global options for this command.
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
[
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'namespace'
,
'globalFixtures'
]);
}
...
...
framework/console/controllers/MigrateController.php
View file @
67dd874e
...
...
@@ -92,14 +92,13 @@ class MigrateController extends Controller
public
$db
=
'db'
;
/**
* Returns the names of the global options for this command.
* @return array the names of the global options for this command.
* @inheritdoc
*/
public
function
options
(
$
i
d
)
public
function
options
(
$
actionI
d
)
{
return
array_merge
(
parent
::
options
(
$
i
d
),
return
array_merge
(
parent
::
options
(
$
actionI
d
),
[
'migrationPath'
,
'migrationTable'
,
'db'
],
// global for all actions
(
$
i
d
==
'create'
)
?
[
'templateFile'
]
:
[]
// action create
(
$
actionI
d
==
'create'
)
?
[
'templateFile'
]
:
[]
// action create
);
}
...
...
framework/helpers/BaseHtml.php
View file @
67dd874e
...
...
@@ -342,7 +342,7 @@ class BaseHtml
/**
* Generates an image tag.
* @param string $src the image URL. This parameter will be processed by [[yii\helpers\Url::to()]].
* @param
array|
string $src the image URL. This parameter will be processed by [[yii\helpers\Url::to()]].
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. The values will be HTML-encoded using [[encode()]].
* If a value is null, the corresponding attribute will not be rendered.
...
...
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