public function migration_plugin(InstallApplication $app, Request $request)
{
$eccube = \Eccube\Application::getInstance();
$eccube->initialize();
$eccube->boot();
$pluginRepository = $eccube['orm.em']->getRepository('Eccube\\Entity\\Plugin');
$Plugins = $pluginRepository->findBy(array('del_flg' => Constant::DISABLED));
if (empty($Plugins)) {
// インストール済プラグインがない場合はマイグレーション実行画面へリダイレクト.
return $app->redirect($app->url('migration_end'));
} else {
return $app['twig']->render('migration_plugin.twig', array('Plugins' => $Plugins, 'version' => Constant::VERSION, 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/'));
}
}