Skip to content

Commit

Permalink
Update package.ini and bin/onion script.
Browse files Browse the repository at this point in the history
- Use BasePathClassLoader
- Support installing Onion and its library through PEAR.
  • Loading branch information
c9s committed Sep 16, 2012
1 parent 3e451e1 commit 23edd7b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
13 changes: 5 additions & 8 deletions bin/onion
Expand Up @@ -9,14 +9,11 @@
* file that was distributed with this source code.
*
*/
define('BASE_PATH', realpath(__DIR__ . '/../'));
require BASE_PATH . '/vendor/pear/Universal/ClassLoader/SplClassLoader.php';
$classLoader = new \Universal\ClassLoader\SplClassLoader(array(
'Onion' => BASE_PATH . '/src',
'CurlKit' => BASE_PATH . '/src',
'CLIFramework' => BASE_PATH . '/vendor/pear',
'PEARX' => BASE_PATH . '/vendor/pear',
'GetOptionKit' => BASE_PATH . '/vendor/pear',
define('BASE_PATH', dirname(__DIR__));
require 'Universal/ClassLoader/BasePathClassLoader.php';
$classLoader = new \Universal\ClassLoader\BasePathClassLoader(array(
BASE_PATH . '/src',
BASE_PATH . '/vendor/pear',
));
$classLoader->useIncludePath(true);
$classLoader->register();
Expand Down
2 changes: 1 addition & 1 deletion package.ini
Expand Up @@ -37,7 +37,7 @@ pear.corneltek.com/PEARX = 1.0.1
; extension/pcre = 0

[roles]
onion = script
bin/onion = script
changes.* = doc
*.md = doc

Expand Down
4 changes: 2 additions & 2 deletions package.xml
Expand Up @@ -12,7 +12,7 @@
<active>yes</active>
</lead>
<date>2012-09-17</date>
<time>01:32:21</time>
<time>01:32:43</time>
<version>
<release>1.4.2</release>
<api>1.4.2</api>
Expand Down Expand Up @@ -96,7 +96,7 @@
<file name="data/phpunit_package.xml" role="data" md5sum="5d67a25e5f576ef1f520091df67bef39"/>
<file name="data/symfony_package.xml.tmpl" role="data" md5sum="d185eeae0498e1256a74f2c1d534dbdf"/>
<file name="data/twig_package.xml" role="data" md5sum="136fba3cb6b25af2451e35159eac0c2e"/>
<file name="onion" role="script" md5sum="e5bc50f2acce868016f72e8e2c4232db"/>
<file name="onion" role="script" md5sum="0d3e44ab6c18b20db275a2a5d620eb55"/>
<file name="Changes.md" role="doc" md5sum="e47b693aa8e4bca959b5a2495b7d9034"/>
<file name="HACKING.md" role="doc" md5sum="3f50233ef438032626399f4c6b87709d"/>
<file name="README.md" role="doc" md5sum="53f202e3a48fdfd230f2be9a649f9ff0"/>
Expand Down
File renamed without changes.

0 comments on commit 23edd7b

Please sign in to comment.