Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 0.1.0
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (24 sloc) 0.764 kb
<?php
$extrafiles = array();
$phpDir = Pyrus\Config::current()->php_dir . DIRECTORY_SEPARATOR;
$packages = array('PEAR2/Autoload');
foreach ($packages as $pkg) {
$prefix = $phpDir . $pkg;
if (is_dir($prefix)) {
foreach (
new RecursiveIteratorIterator(
new RecursiveDirectoryIterator(
$prefix,
RecursiveDirectoryIterator::UNIX_PATHS
),
RecursiveIteratorIterator::LEAVES_ONLY
) as $path
) {
$pathname = $path->getPathname();
$extrafiles['src/' . $pathname] = $pathname;
}
}
if (is_file($prefix . '.php')) {
$extrafiles['src/' . $pkg . '.php'] = $prefix . '.php';
}
}
Jump to Line
Something went wrong with that request. Please try again.