cleanup code

This commit is contained in:
Simon Vieille 2021-05-12 10:18:06 +02:00
parent 5e11baf6fb
commit 52825e3d62
2 changed files with 0 additions and 19 deletions

View file

@ -39,24 +39,6 @@ class PageAdminController extends AdminController
]);
}
/**
* @Route("/new", name="admin_site_page_new")
*/
public function new(EntityFactory $factory, EntityManager $entityManager): Response
{
// $entity = $factory->create(FooPage::class);
$entity = $factory->create(SimplePage::class);
$entity->setName('Page de test '.mt_rand());
$entityManager->create($entity);
$this->addFlash('success', 'The data has been saved.');
return $this->redirectToRoute('admin_site_page_edit', [
'entity' => $entity->getId(),
]);
}
/**
* @Route("/edit/{entity}", name="admin_site_page_edit")
*/

View file

@ -38,7 +38,6 @@ class UserAdminController extends AdminController
public function new(
EntityFactory $factory,
EntityManager $entityManager,
UserPasswordEncoderInterface $encoder,
Request $request
): Response {
$entity = $factory->create($this->getUser());