Skip to content

Commit

Permalink
added initAutoload
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Mar 15, 2017
1 parent 4555b54 commit e1d9513
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public static function getSubscribedEvents()
public function onPostAutoloadDump(Event $event)
{
$this->io->writeError('<info>Assembling config files</info>');
$this->initAutoload();
$this->scanPackages();

$builder = new Builder($this->files);
Expand All @@ -120,6 +121,11 @@ public function onPostAutoloadDump(Event $event)
$builder->buildConfigs();
}

protected function initAutoload()
{
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
}

protected function scanPackages()
{
foreach ($this->getPackages() as $package) {
Expand Down

0 comments on commit e1d9513

Please sign in to comment.