From e1d9513ff406f92bddcfaddf4b85c3e8a96e46e9 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Wed, 15 Mar 2017 08:46:03 +0000 Subject: [PATCH] added initAutoload --- src/Plugin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Plugin.php b/src/Plugin.php index fedef9c..7718fd1 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -109,6 +109,7 @@ public static function getSubscribedEvents() public function onPostAutoloadDump(Event $event) { $this->io->writeError('Assembling config files'); + $this->initAutoload(); $this->scanPackages(); $builder = new Builder($this->files); @@ -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) {