protected function registerPluginAutoload() { $autoloadFile = dirname($this->pluginFile) . '/vendor/autoload.php'; if (file_exists($autoloadFile)) { require $autoloadFile; } }