Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
garming committed Aug 15, 2018
1 parent 1299c70 commit e632a1d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Tangram/Command/Build/ClassMapBuild.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,13 @@ public function exec($targetApplication = NULL)
foreach ($psr4 as &$value){
$value = rtrim($projectConfig->getApplicationPath().DIRECTORY_SEPARATOR.$applicationName.DIRECTORY_SEPARATOR.$value,DIRECTORY_SEPARATOR);
}
$this->classMap = array_merge(
$classMap = array_merge(
$this->classMap,
$psr4
);
$this->writeHeader("💫 autoload_classmap.php >> {$applicationName} ");
(new ClassMapGenerator())->setClassMap($this->classMap)
(new ClassMapGenerator())->setClassMap($classMap)
->generate($projectConfig->getAbsoluteApplicationPath() . DIRECTORY_SEPARATOR . $applicationName);
$this->classMap = [];
}
}

Expand Down

0 comments on commit e632a1d

Please sign in to comment.