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
f53b2175
Commit
f53b2175
authored
May 23, 2013
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added parsing of anonymous params
parent
8e6b427f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
InstallHandler.php
extensions/composer/yii/composer/InstallHandler.php
+8
-5
No files found.
extensions/composer/yii/composer/InstallHandler.php
View file @
f53b2175
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
namespace
yii\composer
;
namespace
yii\composer
;
use
Composer\Script\CommandEvent
;
use
Composer\Script\CommandEvent
;
use
yii\console
;
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
defined
(
'YII_DEBUG'
)
or
define
(
'YII_DEBUG'
,
true
);
...
@@ -72,11 +73,13 @@ class InstallHandler
...
@@ -72,11 +73,13 @@ class InstallHandler
require
(
$appPath
.
'/vendor/yiisoft/yii2/yii/Yii.php'
);
require
(
$appPath
.
'/vendor/yiisoft/yii2/yii/Yii.php'
);
$config
=
require
(
$appPath
.
'/config/console.php'
);
$config
=
require
(
$appPath
.
'/config/console.php'
);
foreach
((
array
)
$options
[
'run'
]
as
$params
){
foreach
((
array
)
$options
[
'run'
]
as
$rawParams
)
{
$command
=
$params
[
0
];
// TODO: we're doing about the same here like console\Request::resolve()
unset
(
$params
[
0
]);
$command
=
$rawParams
[
0
];
$params
=
array
();
unset
(
$rawParams
[
0
]);
// TODO: add params to array
$params
[
\yii\console\Request
::
ANONYMOUS_PARAMS
]
=
$rawParams
;
// TODO end
echo
"Running command:
{
$command
}
\n
"
;
echo
"Running command:
{
$command
}
\n
"
;
$application
=
new
\yii\console\Application
(
$config
);
$application
=
new
\yii\console\Application
(
$config
);
$application
->
runAction
(
$command
,
$params
);
$application
->
runAction
(
$command
,
$params
);
...
...
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