You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When recreating a small application in order to demonstrate a specific issue, I typically do something like this:
symfony new --webapp show-some-feature &&cd show-some-feature
bin/console make:controller App
sed -i "s|/app|/|" src/Controller/AppController.php
sed -i "s|app_app|app_homepage|" src/Controller/AppController.php
# composer req my-bundles, etc. and create whatever to show off some bundle or bug
symfony server:start -d
symfony open:local
This allows me to set the route name and path, in this case, to app_homepage and /.
Now that invokable controllers are available in the maker bundle 6.4, it seems even more natural to want to specify and a route and path. (And template, but I don't want to ask for too much!).
Example
So I'd like to get rid of the sed calls above and do something like this:
bin/console make:controller AppController --path=/ --route=app_homepage
cat > templates/app/index.html.twig <<END{% extends 'base.html.twig' %}{% block body %}<h1>My Feature!</h1>Here's an example of some bundle or twig component or stimulus controller in action...{% endblock %}END
The text was updated successfully, but these errors were encountered:
Description
When recreating a small application in order to demonstrate a specific issue, I typically do something like this:
This allows me to set the route name and path, in this case, to app_homepage and /.
Now that invokable controllers are available in the maker bundle 6.4, it seems even more natural to want to specify and a route and path. (And template, but I don't want to ask for too much!).
Example
So I'd like to get rid of the sed calls above and do something like this:
The text was updated successfully, but these errors were encountered: