-
-
Notifications
You must be signed in to change notification settings - Fork 437
Add framework-extra-bundle dependency #256
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
Conversation
The make:crud controllers rely on ParamConverters, which are provided by framework-extra-bundle. Fixes #255
|
Hey @ckrack! Hmm, this makes sense. But, we have a test to catch this.... @sadikoff what do you think? It looks like our CRUD test definitely checks controllers that use this - https://github.com/symfony/maker-bundle/blob/master/tests/fixtures/MakeCrud/tests/GeneratedCrudControllerTest.php - so if we're missing a dependency, shouldn't that test fail? |
|
Hi @weaverryan I found one other test here, but it's only making a GET to the list method. https://github.com/symfony/maker-bundle/blob/master/tests/fixtures/MakeCrudRepository/tests/GeneratedCrudControllerTest.php In https://github.com/symfony/maker-bundle/blob/master/tests/Maker/FunctionalTest.php, there are a couple of comments
By the way: I can't run the tests properly.
|
The Route now requires the router. The ParamConverter requires annotations (framework-extra-bundle).
|
Hey @ckrack! Ah, this is great debugging! This issue is clear to me now. A few important things:
This is the key. This bug is because we recently changed from using the The reason the tests aren't catching it because of another small bug in the tests. Specifically, in the "mini app's" setup by the tests, we install ALL the dependencies listed. So, So yes, this is perfect. 💯 :) |
This PR was squashed before being merged into the 1.0-dev branch (closes #256). Discussion ---------- Add framework-extra-bundle dependency The make:crud controllers rely on ParamConverters, which are provided by framework-extra-bundle. Fixes #255 Commits ------- 6379141 Switch classes in MakeCrud::configureDependencies 39b5447 Add framework-extra-bundle dependency
|
Oh, one more thing:
Update: nevermind - I read your message too quickly :). Copy |
…lled (weaverryan) This PR was squashed before being merged into the 1.0-dev branch (closes #260). Discussion ---------- Fixing a bug in the tests where too many deps might be installed This could create a situation where we tell a user to install libraries A, B & C only, but really, we also depend on library D, which was not recommended because we are missing that dependency from our Maker. However, library D may have been installed in the functional test (because we previously installed ALL dependencies, even if it was related to a class we already had). This would have caught #256. Commits ------- 27787c4 Fixing a bug in the tests where too many deps might be installed
The make:crud controllers rely on ParamConverters,
which are provided by framework-extra-bundle.
Fixes #255