Skip to content

Commit e351000

Browse files
minor bug fixed.
1 parent 73ebb0b commit e351000

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
],
1414
"bin" : [
15-
"bin/generator.bat"
15+
"bin/classmap-generator.bat"
1616
],
1717
"require" : {
1818
"symfony/finder" : "*"

src/generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ private static function find_classes( $path ) {
232232

233233
if ( file_exists( __DIR__ . '/../vendor/autoload.php' ) ) {
234234
require_once __DIR__ . '/../vendor/autoload.php';
235-
} elseif ( file_exists( __DIR__ . '/../../../autoload.php' ) ) {
236-
require_once __DIR__ . '/../../../vendor/autoload.php';
235+
} elseif ( file_exists( dirname( dirname( dirname( __DIR__ ) ) ) . '/autoload.php' ) ) {
236+
require_once dirname( dirname( dirname( __DIR__ ) ) ) . '/autoload.php';
237237
}
238238

239239
$config_file = ( isset( $argv[1] ) ) ? $argv[1] : false;

0 commit comments

Comments
 (0)