These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Kunstmaan\LeadGenerationBundle\Controller; |
||
4 | |||
5 | use Symfony\Component\Routing\Annotation\Route; |
||
6 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
||
7 | |||
8 | abstract class AbstractRedirectController extends Controller |
||
0 ignored issues
–
show
|
|||
9 | { |
||
10 | /** |
||
11 | * @Route("/{popup}", name="redirect_index", requirements={"popup": "\d+"}) |
||
12 | */ |
||
13 | public function indexAction($popup) |
||
14 | { |
||
15 | /** @var \Kunstmaan\LeadGenerationBundle\Entity\Popup\AbstractPopup $thePopup */ |
||
16 | $thePopup = $this->getDoctrine()->getRepository('KunstmaanLeadGenerationBundle:Popup\AbstractPopup')->find($popup); |
||
17 | |||
18 | return $this->render($this->getIndexTemplate(), array( |
||
19 | 'popup' => $thePopup, |
||
20 | )); |
||
21 | } |
||
22 | |||
23 | protected function getIndexTemplate() |
||
24 | { |
||
25 | return '@KunstmaanLeadGeneration/Redirect/index.html.twig'; |
||
26 | } |
||
27 | } |
||
28 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.