27 lines
656 B
PHP
27 lines
656 B
PHP
<?php
|
|
|
|
namespace App\Controller;
|
|
|
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
class MigrationController extends AbstractController
|
|
{
|
|
#[Route('/migration', name: 'migration')]
|
|
public function index(): Response
|
|
{
|
|
// TODO
|
|
// get env vars
|
|
// check uniq key is good
|
|
// fetch old Database
|
|
// gather objects
|
|
// create new polls
|
|
// success
|
|
// failure notice
|
|
return $this->render('migration/index.html.twig', [
|
|
'controller_name' => 'MigrationController',
|
|
]);
|
|
}
|
|
}
|