You've already forked symfony-playground
inheritance
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
@ -12,11 +13,13 @@ class IndexController extends AbstractController
|
||||
#[Route('/', name: 'app_index')]
|
||||
public function index(Entity1Repository $repo): Response
|
||||
{
|
||||
$sm = $repo->getSchemaManager();
|
||||
$entity8 = $repo->findOneByName('entity 8');
|
||||
|
||||
return $this->render('index/index.html.twig', [
|
||||
'controller_name' => 'IndexController',
|
||||
'entity8' => $entity8
|
||||
'entity8' => $entity8,
|
||||
'schemaManager' => $sm
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user