Skip to content

Commit

Permalink
🐛 #118 correção autoload para funcionar no linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinaldo Araujo Barreto Junior committed Aug 4, 2022
1 parent faf5a76 commit ea55741
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/CreateAutoloadAPI.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public function show($print = false)
$this->addLine('if ( !function_exists( \''.$autoloadName.'\') ) {');
$this->addLine(ESP.'function '.$autoloadName.'( $class_name )');
$this->addLine(ESP.'{');
$this->addLine(ESP.ESP.'$class_name = str_replace(\'\\\',DS,$class_name);');
$this->addLine(ESP.ESP.'$path = __DIR__.DS.$class_name.\'.class.php\';');
$this->addLine(ESP.ESP.'if (file_exists($path)){');
$this->addLine(ESP.ESP.ESP.'require_once $path;');
Expand Down

0 comments on commit ea55741

Please sign in to comment.