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
24e264ac
Commit
24e264ac
authored
Jan 22, 2008
by
jwage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed compiler task and made Compiler return the path compiled file was written to.
parent
d5c91081
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Compiler.php
lib/Doctrine/Compiler.php
+3
-1
Compile.php
lib/Doctrine/Task/Compile.php
+3
-3
No files found.
lib/Doctrine/Compiler.php
View file @
24e264ac
...
...
@@ -39,7 +39,7 @@ class Doctrine_Compiler
* cases dozens of files) can improve performance by an order of magnitude
*
* @throws Doctrine_Compiler_Exception if something went wrong during the compile operation
* @return
void
* @return
$target Path the compiled file was written to
*/
public
static
function
compile
(
$target
=
null
,
$includedDrivers
=
array
())
{
...
...
@@ -133,5 +133,7 @@ class Doctrine_Compiler
fwrite
(
$fp
,
$stripped
);
fclose
(
$fp
);
return
$target
;
}
}
lib/Doctrine/Task/Compile.php
View file @
24e264ac
...
...
@@ -39,8 +39,8 @@ class Doctrine_Task_Compile extends Doctrine_Task
public
function
execute
()
{
Doctrine
::
compile
(
$this
->
getArgument
(
'compiled_path'
),
$this
->
getArgument
(
'drivers'
,
array
()));
$this
->
notify
(
'Compiled Doctrine successfully to: '
.
$
this
->
getArgument
(
'compiled_path'
)
);
$compiledPath
=
Doctrine_Compiler
::
compile
(
$this
->
getArgument
(
'compiled_path'
),
$this
->
getArgument
(
'drivers'
,
array
()));
$this
->
notify
(
'Compiled Doctrine successfully to: '
.
$
compiledPath
);
}
}
\ No newline at end of file
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