File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 88 "illuminate/support" : " ^5.5" ,
99 "illuminate/console" : " ^5.5" ,
1010 "illuminate/filesystem" : " ^5.5" ,
11- "symfony/class-loader" : " ~3.3" ,
1211 "doctrine/dbal" : " ~2.3"
1312 },
1413 "autoload" : {
Original file line number Diff line number Diff line change 66use Illuminate \Database \Eloquent \Relations \Relation ;
77use Illuminate \Filesystem \Filesystem ;
88use Illuminate \Support \Str ;
9- use Symfony \Component \ClassLoader \ClassMapGenerator ;
109use Symfony \Component \Console \Input \InputArgument ;
1110use Symfony \Component \Console \Input \InputOption ;
1211use Symfony \Component \Console \Output \OutputInterface ;
@@ -197,7 +196,13 @@ protected function loadModels($models = [])
197196 return [];
198197 }
199198
200- return array_keys (ClassMapGenerator::createMap ($ dir ));
199+ return array_map (function (\SplFIleInfo $ file ) {
200+ return str_replace (
201+ [DIRECTORY_SEPARATOR , basename ($ this ->laravel ->path ()) . '\\' ],
202+ ['\\' , $ this ->laravel ->getNamespace ()],
203+ $ file ->getPath () . DIRECTORY_SEPARATOR . basename ($ file ->getFilename (), '.php ' )
204+ );
205+ }, $ this ->files ->allFiles ($ this ->dir ));
201206 }
202207
203208 /**
You can’t perform that action at this time.
0 commit comments