From df5e86d18bc883ae9d19b97db1f09243921fa7ab Mon Sep 17 00:00:00 2001 From: hideki_okajima Date: Thu, 6 Feb 2020 18:03:29 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=A9=E3=82=B0=E3=82=A4=E3=83=B3?= =?UTF-8?q?=E3=81=AE=E6=9C=89=E5=8A=B9=E7=84=A1=E5=8A=B9=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E6=99=82=E3=81=ABDBAL=E3=81=AE=E5=AE=9A=E7=BE=A9=E3=82=92?= =?UTF-8?q?=E4=BD=9C=E6=88=90=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E4=BF=AE=E6=AD=A3=20refs=20#4461?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Eccube/DependencyInjection/EccubeExtension.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Eccube/DependencyInjection/EccubeExtension.php b/src/Eccube/DependencyInjection/EccubeExtension.php index 8bfb1027fa0..5772592a093 100644 --- a/src/Eccube/DependencyInjection/EccubeExtension.php +++ b/src/Eccube/DependencyInjection/EccubeExtension.php @@ -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); } /**