-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
make:crud skeleton optimization #132
Conversation
Makes sense to me! About the flash messages, I would like to add them... but it’s a bit weird because we don’t know if the user is actually printing them or not in the base template. But still, I think we should add them |
I think we don't need to know if the user is printing them or not, We just add them in |
@sadikoff I'm not sure about printing the flash messages in |
@weaverryan maybe than we can ask user to use flash or not, and inject them in |
@sadikoff We don't have any ability to modify Twig files right now. Also, I want to avoid asking unnecessary questions.... but maybe we should ask them if they want flash messages or not. Currently, I'm leaning towards this: we always add flash messages in the controller. Then, we can do a quick check in their |
@weaverryan If you don't mind lets merge this PR. It will fix some bugs. After I will prepare PR for flash messages and we will discuss it there. |
Thank you Vladimir! |
This PR was squashed before being merged into the 1.0-dev branch (closes #132). Discussion ---------- make:crud skeleton optimization Lets start from `Controller::delete` action. I don't think we need 2 return statements here. Maybe it will be better to add some flash messages? Commits ------- 97841c1 simplify CrudControllerWebTest (we need only check if index works) 43ce972 added tests for crud generation with entity repository 4d1e2d8 fixing #134 1f4455e skeleton template Controller optimization
Lets start from
Controller::delete
action. I don't think we need 2 return statements here.Maybe it will be better to add some flash messages?