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
cdc49432
Commit
cdc49432
authored
Oct 11, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments.
parent
c5e1a15f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Cli.php
lib/Doctrine/Cli.php
+3
-0
No files found.
lib/Doctrine/Cli.php
View file @
cdc49432
...
@@ -75,6 +75,7 @@ class Doctrine_Cli
...
@@ -75,6 +75,7 @@ class Doctrine_Cli
{
{
$args
=
array_values
(
$args
);
$args
=
array_values
(
$args
);
// First lets load populate an array with all the possible arguments. required and optional
$prepared
=
array
();
$prepared
=
array
();
$requiredArguments
=
$taskInstance
->
getRequiredArguments
();
$requiredArguments
=
$taskInstance
->
getRequiredArguments
();
...
@@ -87,6 +88,7 @@ class Doctrine_Cli
...
@@ -87,6 +88,7 @@ class Doctrine_Cli
$prepared
[
$arg
]
=
null
;
$prepared
[
$arg
]
=
null
;
}
}
// If we have a config array then lets try and fill some of the arguments with the config values
if
(
is_array
(
$this
->
config
)
&&
!
empty
(
$this
->
config
))
{
if
(
is_array
(
$this
->
config
)
&&
!
empty
(
$this
->
config
))
{
foreach
(
$this
->
config
as
$key
=>
$value
)
{
foreach
(
$this
->
config
as
$key
=>
$value
)
{
if
(
array_key_exists
(
$key
,
$prepared
))
{
if
(
array_key_exists
(
$key
,
$prepared
))
{
...
@@ -95,6 +97,7 @@ class Doctrine_Cli
...
@@ -95,6 +97,7 @@ class Doctrine_Cli
}
}
}
}
// Now lets fill in the entered arguments to the prepared array
$copy
=
$args
;
$copy
=
$args
;
foreach
(
$prepared
as
$key
=>
$value
)
{
foreach
(
$prepared
as
$key
=>
$value
)
{
if
(
!
$value
&&
!
empty
(
$copy
))
{
if
(
!
$value
&&
!
empty
(
$copy
))
{
...
...
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