Skip to content

Commit

Permalink
Avoid fatal error on deinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
helhum committed Sep 3, 2017
1 parent 00dbfcd commit 0b29c9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public static function getSubscribedEvents()
*/
public function onPreAutoloadDump()
{
if (!class_exists(IncludeFile::class)) {
// Plugin package was removed
return;
}
$includeFilePath = $this->composer->getConfig()->get('vendor-dir') . self::INCLUDE_FILE;
$includeFile = new IncludeFile($this->config, $includeFilePath);
if ($includeFile->dump()) {
Expand Down

0 comments on commit 0b29c9e

Please sign in to comment.