-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Require only needed dependencies #438
Conversation
Must add |
Closing it in favor of #432. |
Edit: I looked at the branches instead of the tagged versions. This seems actually correct. |
Adding the
|
Hope it'll solve every problem :) |
Actually I don't know why exceptions are not converted to proper exception pages instead of being thrown like this, and I didn't investigate a lot, but it seems to be the only ones :) |
I had this problem on another repo, I didn't remember how I solved it. I don't even remember having solved it 😛 |
... That helps a lot 😸 |
For the record: https://travis-ci.org/ogizanagi/EasyAdminBundle/builds/79192251 (no need for an umpteenth PR I guess) The 2.3 requirement for the TwigBridge wasn't enough (but it works on my computer. PHP 5.6 however). # composer.json
+ "symfony/twig-bridge": "^2.3.4" Should solve the issue (at least for the |
Lots of new errors appear after the latest changes: PHP 5.3 / deps = lowPHP Fatal error: Class 'Doctrine\Common\Inflector\Inflector' not found in /home/travis/build/javiereguiluz/EasyAdminBundle/Reflection/ClassPropertyReflector.php on line 31 PHP 5.6 / Symfony 2.3.xThis error is repeated lots of times: Argument 1 passed to Symfony\Bridge\Twig\Extension\SecurityExtension::__construct() must be an instance of Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface, instance of Symfony\Component\Security\Core\SecurityContext given, called in /home/travis/build/javiereguiluz/EasyAdminBundle/build/cache/default_backend/AppDefault_backendDebugProjectContainer.php on line 2496 and defined |
For the |
The issue for the if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony:$SYMFONY_VERSION; fi The result in the
and the array(
// ...
'Symfony\\Bridge\\Twig\\' => array($vendorDir . '/symfony/twig-bridge'),
); The So we cannot work like this with Travis (requiring the whole framework as it is currently done) 😕 |
We could with a |
We could do that indeed. But what about the identified |
@Pierstoval thanks to your suggested change, that error disappeared. But we still have the other problem and as mentioned by @ogizanagi, it looks not that easy to solve. |
In fda0e3a I'm testing a new Travis configuration borrowed from the one used by our friends at FOSUserBundle: https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/.travis.yml |
After the last changes, everything is green again. To be honest, I don't know if this is luck, or if the new config is wrong or if we finally fixed the problem. |
So, the issue was only about the |
@xabbuh thanks for starting this PR. We finally solved all problems are tests are green again, so I'm merging it. |
This PR was merged into the master branch. Discussion ---------- Require only needed dependencies Commits ------- 47e3ee7 Removed an unneded job fda0e3a Tweaked the Travis CI configuration 7e4fd0d Required an specific version of doctrine/common 0624f6c Added "symfony/twig-bridge" and reordered some dependencies ddaadb4 Added CssSelector component 79c49d2 Added BrowserKit component to the list of dev dependencies 7e2a632 require only needed dependencies
No description provided.