Eccube\Controller\Install\InstallController::migration_plugin PHP Метод

migration_plugin() публичный Метод

プラグインがインストールされていない場合は, マイグレーション実行画面へリダイレクトする.
public migration_plugin ( Eccube\InstallApplication $app, Request $request ) : Response
$app Eccube\InstallApplication
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\Response
    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 . '/'));
        }
    }