Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

Dynamic Prefix in Symfony4 Controller Route Annotation

$
0
0

I want to achieve this annotation in my controller, but i can not find any documentation or a way to have a wildcard(*) prefix in my annotation inside the controller.

    /**
     * @Route("/project/*/{Alias}", name="front-story-page" )
     */
    public function ShowStoryFront(Story $story)
    {
      ..
    }

I tried a whole bunch of different ways but nothing seems to work!


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>