for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/*
* This file is part of the Zikula package.
*
* Copyright Zikula Foundation - https://ziku.la/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Zikula\Bundle\CoreInstallerBundle\Controller;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Class InstallerController
class InstallerController extends AbstractController
{
public function __construct(ContainerInterface $container)
parent::__construct($container);
$this->router = $container->get('router');
$this->form = $this->container->get('form.factory');
}
public function installAction(Request $request, string $stage): Response
// already installed?
if ('complete' !== $stage && true === $this->container->getParameter('installed')) {
$stage = 'installed';
// not installed but requesting installed stage?
if ('installed' === $stage && false === $this->container->getParameter('installed')) {
$stage = 'notinstalled';
$request->setLocale($this->container->getParameter('locale'));
return $this->controllerHelper->processWizard($request, $stage, 'install');