public complete ( Eccube\InstallApplication $app, |
||
$app | Eccube\InstallApplication | |
$request |
public function complete(InstallApplication $app, Request $request)
{
$config_file = $this->config_path . '/path.yml';
$config = Yaml::parse(file_get_contents($config_file));
$host = $request->getSchemeAndHttpHost();
$basePath = $request->getBasePath();
$adminUrl = $host . $basePath . '/' . $config['admin_dir'];
return $app['twig']->render('complete.twig', array('admin_url' => $adminUrl, 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/'));
}