![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 677 Pomógł: 11 Dołączył: 18.11.2009 Ostrzeżenie: (0%) ![]() ![]() |
Dlaczego może wyskakiwać mi taki komunikat:
alias Sensio\Bundle\FrameworkExtraBundle\Configuration\Route is never used przez ten błąd nie mogę z automatu podpinać namespace bo nie widzi w komentarzu @Route, doczytałem że plugin symfony naprawia problem a tu ciągle to samo ;. Kod <?php
namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Request; class DefaultController extends Controller { /** * @Route("/", name="homepage") * @param Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(Request $request) { // replace this example code with whatever you need return $this->render('default/index.html.twig', [ 'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'), ]); } } |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 11:28 |