Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Tomáš Trávníček
doctrine-dbal
Commits
d2b59d7a
Commit
d2b59d7a
authored
Jan 06, 2010
by
guilhermeblanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[2.0][DDC-223] Enhanced CLI re-importing the Global Arguments functionality
parent
3ec23c72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
CliController.php
lib/Doctrine/Common/Cli/CliController.php
+0
-5
TaskNamespace.php
lib/Doctrine/Common/Cli/TaskNamespace.php
+6
-0
No files found.
lib/Doctrine/Common/Cli/CliController.php
View file @
d2b59d7a
...
...
@@ -162,11 +162,6 @@ class CliController extends AbstractNamespace
$taskName
=
array_pop
(
$taskPath
);
$taskNamespace
=
$this
->
_retrieveTaskNamespace
(
$taskPath
);
// Merge global configuration if it exists
if
((
$globalArgs
=
$this
->
getConfiguration
()
->
getAttribute
(
'globalArguments'
))
!==
null
)
{
$args
=
array_merge
(
$globalArgs
,
$args
);
}
$taskNamespace
->
runTask
(
$taskName
,
$args
);
}
...
...
lib/Doctrine/Common/Cli/TaskNamespace.php
View file @
d2b59d7a
...
...
@@ -213,6 +213,12 @@ class TaskNamespace extends AbstractNamespace
{
try
{
$task
=
$this
->
getTask
(
$name
);
// Merge global configuration if it exists
if
((
$globalArgs
=
$this
->
getConfiguration
()
->
getAttribute
(
'globalArguments'
))
!==
null
)
{
$arguments
=
array_merge
(
$globalArgs
,
$arguments
);
}
$task
->
setArguments
(
$arguments
);
if
((
isset
(
$arguments
[
'help'
])
&&
$arguments
[
'help'
])
||
(
isset
(
$arguments
[
'h'
])
&&
$arguments
[
'h'
]))
{
...
...
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