Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[FrameworkBundle][Routing] Add a welcome controller #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

[FrameworkBundle][Routing] Add a welcome controller #279

wants to merge 3 commits into from

Conversation

abellion
Copy link

@abellion abellion commented Nov 25, 2017

Q A
License MIT

It would be easier for newcomers to start with a predefined controller and a working route.
Also, I think we could get rid of this code : symfony/symfony#24403

I hardcoded the template path in the manifest.json because Flex doesn't have it in the options : https://github.com/symfony/flex/blob/master/src/Flex.php#L284

image

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request does not pass validation.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request does not pass validation.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

@Pierstoval
Copy link
Contributor

Starting from Symfony 3.4, this behavior is hardcoded in debug mode when there is no route:

https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/HttpKernel/EventListener/RouterListener.php#L127-L131

@fabpot
Copy link
Member

fabpot commented Nov 25, 2017

As you noticed, we decided to go another route with the PR you referenced. We don't want to generate code that is not useful (when developing an API, you don't need a template directory, we also never recommend using PHP for templates, ...). Moreover, maker-bundle now allows to easily generate controllers and templates, so having a default controller is not really needed anymore.

@fabpot fabpot closed this Nov 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants