Skip to content

Commit e1d9513

Browse files
committed
added initAutoload
1 parent 4555b54 commit e1d9513

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Plugin.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public static function getSubscribedEvents()
109109
public function onPostAutoloadDump(Event $event)
110110
{
111111
$this->io->writeError('<info>Assembling config files</info>');
112+
$this->initAutoload();
112113
$this->scanPackages();
113114

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

124+
protected function initAutoload()
125+
{
126+
require_once dirname(dirname(dirname(__DIR__))) . '/autoload.php';
127+
}
128+
123129
protected function scanPackages()
124130
{
125131
foreach ($this->getPackages() as $package) {

0 commit comments

Comments
 (0)