Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
solarium
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
solarium
Commits
fc23e053
Commit
fc23e053
authored
Feb 06, 2012
by
Joshua Thijssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added PHAR creation
parent
ad6bcdbc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
phar/README
phar/README
+1
-0
phar/buildphar.php
phar/buildphar.php
+12
-0
phar/stub.php
phar/stub.php
+7
-0
No files found.
phar/README
0 → 100644
View file @
fc23e053
The buildphar.php will generate a solarium.phar PHAR file that is ready for distribution.
phar/buildphar.php
0 → 100644
View file @
fc23e053
<?php
// Create a new htrouter phar file
@
unlink
(
'solarium.phar'
);
$phar
=
new
Phar
(
'solarium.phar'
,
0
,
'solarium.phar'
);
$phar
->
setStub
(
file_get_contents
(
"stub.php"
));
$basePath
=
realpath
(
__DIR__
.
"/../library/Solarium"
);
$phar
->
buildFromDirectory
(
$basePath
,
'/\.php$/'
);
phar/stub.php
0 → 100644
View file @
fc23e053
<?php
Phar
::
mapPhar
(
"solarium.phar"
);
require_once
'phar://solarium.phar/Autoloader.php'
;
Solarium_Autoloader
::
register
();
__HALT_COMPILER
();
?>
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