Skip to content

Commit

Permalink
Merge pull request #4462 from okazy/fix-plugin-enable
Browse files Browse the repository at this point in the history
プラグインの有効無効判定時にDBALの定義を作成しないように修正
  • Loading branch information
Kiyotaka Oku authored Mar 24, 2020
2 parents 86e1738 + df5e86d commit 45f0027
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/Eccube/DependencyInjection/EccubeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,15 +196,9 @@ protected function isConnected(Connection $conn)
return false;
}

$sm = $conn->getSchemaManager();
$tables = array_filter(
$sm->listTables(),
function ($table) {
return $table->getName() === 'dtb_plugin';
}
);
$tableNames = $conn->getSchemaManager()->listTableNames();

return empty($tables) ? false : true;
return in_array('dtb_plugin', $tableNames);
}

/**
Expand Down

0 comments on commit 45f0027

Please sign in to comment.