svg
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Repository\IssueRepository;
|
||||
use App\Service\RedmineService;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
@ -49,4 +50,14 @@ class HomeController extends AbstractController
|
||||
'usesidebar' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/user/issue/{id}', name: 'issue_view')]
|
||||
public function view(int $id, IssueRepository $issueRepository): Response
|
||||
{
|
||||
$issue = $issueRepository->find($id);
|
||||
|
||||
return $this->render('issue/view.html.twig', [
|
||||
'issue' => $issue,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user