-
Notifications
You must be signed in to change notification settings - Fork 50
Reduced the number of travis builds. #149
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
Changes from all commits
2e00824
a5e90fd
a530f76
339b82c
5176010
145e754
ca2dd68
32b6f43
de5fd63
d9b5985
d52663f
55c9f81
23a64a6
01fc201
e076a32
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,8 @@ | |
use Http\Client\HttpAsyncClient; | ||
use Http\Discovery\HttpClientDiscovery; | ||
use Http\Discovery\Strategy\DiscoveryStrategy; | ||
use Symfony\Component\Console\ConsoleEvents; | ||
use Symfony\Component\EventDispatcher\Event; | ||
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | ||
use Symfony\Component\HttpKernel\KernelEvents; | ||
|
||
/** | ||
* A strategy that provide clients configured with HTTPlug bundle. With help from this strategy | ||
|
@@ -77,8 +75,8 @@ public function onEvent(Event $e) | |
public static function getSubscribedEvents() | ||
{ | ||
return [ | ||
KernelEvents::REQUEST => ['onEvent', 1024], | ||
ConsoleEvents::COMMAND => ['onEvent', 1024], | ||
'kernel.request' => ['onEvent', 1024], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do you use strings over class constants? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because I want to avoid dependency on Symfony/console and Symfony/http-kernel. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
'console.command' => ['onEvent', 1024], | ||
]; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,11 @@ | |
"php-http/guzzle6-adapter": "^1.1.1", | ||
"php-http/react-adapter": "^0.2.1", | ||
"php-http/buzz-adapter": "^0.3", | ||
"symfony/symfony": "^2.8 || ^3.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. according to travis-ci, we have either a hard dependency on TwigBundle or its at least optional and needed for testing. if its optional we should add it to the (not yet existing) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Twig is required for the profiler. I think we should depends on the WebProfilerBundle, but I think this will not be enough. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, WebProfilerBundle does not introduce a hard requirement on TwigBundle to make it usable in Silex. But using it in the fullstack context actually needs TwigBundle too (as it is the one configuring Twig). There is an issue about that on Symfony There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds fair to me to suggest both packages and adding them to require-dev. Looks better than depending on symfony/symfony. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, much better There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you. I've required symfony/twig-bundle, symfony/twig-bridge and symfony/web-profiler-bundle |
||
"symfony/phpunit-bridge": "^3.2", | ||
"symfony/twig-bundle": "^2.8 || ^3.0", | ||
"symfony/twig-bridge": "^2.8 || ^3.0", | ||
"symfony/web-profiler-bundle": "^2.8 || ^3.0", | ||
"symfony/finder": "^2.7 || ^3.0", | ||
"polishsymfonycommunity/symfony-mocker-container": "^1.0", | ||
"matthiasnoback/symfony-dependency-injection-test": "^1.0" | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should change this to require only useful bundles instead of the whole symfony?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too hard to maintain (has to be edited each time the composer.json changes).
the normal jobs already take care of using the normal deps with only relevant packages. These jobs are about testing the LTS support.