Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4beba94

Browse files
committed
Add template for phar building to version control
1 parent b8d55bd commit 4beba94

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

build/phar/autoload.php.in

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env php
2+
<?php
3+
spl_autoload_register(
4+
function ($class)
5+
{
6+
static $classes = NULL;
7+
8+
if ($classes === NULL) {
9+
$classes = array(
10+
___CLASSLIST___
11+
);
12+
}
13+
14+
$class = strtolower($class);
15+
16+
if (isset($classes[$class])) {
17+
require 'phar://___PHAR___' . $classes[$class];
18+
}
19+
}
20+
);
21+
22+
Phar::mapPhar('___PHAR___');
23+
define('PHPAB_VERSION', '___VERSION___');
24+
$factory = new \TheSeer\Autoload\Factory();
25+
$factory->getCLI()->run($_SERVER);
26+
exit(0);
27+
28+
__HALT_COMPILER();

0 commit comments

Comments
 (0)