2014-09-26 21:42:19 +00:00
|
|
|
<?php
|
|
|
|
|
2014-11-19 17:16:20 +00:00
|
|
|
require_once __DIR__ . '/../../../includes/utils/AutoloadGenerator.php';
|
2014-09-26 21:42:19 +00:00
|
|
|
|
|
|
|
function main() {
|
|
|
|
$base = dirname( __DIR__ );
|
|
|
|
$generator = new AutoloadGenerator( $base );
|
|
|
|
$dirs = array(
|
2015-06-08 01:54:14 +00:00
|
|
|
'includes',
|
2014-10-24 23:10:47 +00:00
|
|
|
'tests',
|
2014-09-26 21:42:19 +00:00
|
|
|
);
|
|
|
|
foreach ( $dirs as $dir ) {
|
|
|
|
$generator->readDir( $base . '/' . $dir );
|
|
|
|
}
|
|
|
|
foreach ( glob( $base . '/*.php' ) as $file ) {
|
|
|
|
$generator->readFile( $file );
|
|
|
|
}
|
|
|
|
|
2014-11-19 17:16:20 +00:00
|
|
|
$generator->generateAutoload( basename( __DIR__ ) . '/' . basename( __FILE__ ) );
|
2014-09-26 21:42:19 +00:00
|
|
|
|
|
|
|
echo "Done.\n\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
main();
|