public function step2(InstallApplication $app, Request $request)
{
$this->getSessionData($request);
$protectedDirs = $this->getProtectedDirs();
// 権限がある場合, キャッシュディレクトリをクリア
if (empty($protectedDirs)) {
$finder = Finder::create()->in($this->cache_path)->directories()->depth(0);
$fs = new Filesystem();
$fs->remove($finder);
}
return $app['twig']->render('step2.twig', array('protectedDirs' => $protectedDirs, 'publicPath' => '..' . RELATIVE_PUBLIC_DIR_PATH . '/'));
}