<?php
namespace App\Controller;
use App\Entity\Plesk\Domain;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/domains", name="domain_");
*/
class DomainController extends AbstractController {
/**
* @Route("/", name="index")
*/
public function index() {
$domainRepo = $this->getDoctrine()->getManager("plesk")->getRepository(Domain::class);
$domains = $domainRepo->findAll();
dump($domains);
return $this->render('domain/index.html.twig', [
'domains' => $domains
]);
}
}