Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
68a5e322
Commit
68a5e322
authored
Jun 14, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed the phar compiler
parent
f2a5a5b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/Silex/Util/Compiler.php
src/Silex/Util/Compiler.php
+2
-1
No files found.
src/Silex/Util/Compiler.php
View file @
68a5e322
...
...
@@ -89,7 +89,8 @@ class Compiler
protected
function
addFile
(
$phar
,
$file
,
$strip
=
true
)
{
$path
=
str_replace
(
dirname
(
dirname
(
__DIR__
))
.
DIRECTORY_SEPARATOR
,
''
,
$file
->
getRealPath
());
$path
=
str_replace
(
dirname
(
dirname
(
dirname
(
__DIR__
)))
.
DIRECTORY_SEPARATOR
,
''
,
$file
->
getRealPath
());
$content
=
file_get_contents
(
$file
);
if
(
$strip
)
{
$content
=
self
::
stripWhitespace
(
$content
);
...
...
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