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
|
|
|
|
2015-10-29 11:37:24 +00:00
|
|
|
// @codingStandardsIgnoreStart
|
2014-09-26 21:42:19 +00:00
|
|
|
function main() {
|
2015-10-29 11:37:24 +00:00
|
|
|
// @codingStandardsIgnoreEnd
|
2014-09-26 21:42:19 +00:00
|
|
|
$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();
|