Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed to use vendor.
  • Loading branch information
yuya-takeyama committed Dec 24, 2011
commit bd35399ad3b094706dc44b1e45e4fda981735375
12 changes: 0 additions & 12 deletions src/Onion/Command/CompileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,7 @@ function execute($arguments)
}
else {
$classloader_file = 'Universal/ClassLoader/SplClassLoader.php';
$classloader_path = stream_resolve_include_path($classloader_file);

if( ! $classloader_path ) {
$classloader_path = stream_resolve_include_path( 'phar://onion.phar/' . $classloader_file);
}

if( ! $classloader_path ) {
die($classloader_file . ' not found.');
}

// try to resolve in current phar executable
$content = php_strip_whitespace($classloader_path);
$phar->addFromString($classloader_file,$content);
$stub .=<<<"EOT"
require 'phar://$pharFile/$classloader_file';
\$classLoader = new \\Universal\\ClassLoader\\SplClassLoader;
Expand Down