File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ public function registerBundles()
21
21
*/
22
22
public function registerContainerConfiguration (LoaderInterface $ loader )
23
23
{
24
- $ loader ->load (__DIR__ .'/config/config.yml ' );
24
+ $ runtime = 'php ' ;
25
+ if (defined ('HHVM_VERSION ' )) {
26
+ $ runtime = 'hhvm ' ;
27
+ }
28
+ $ loader ->load (__DIR__ .'/config/config_ ' .$ runtime .'.yml ' );
25
29
}
26
30
27
31
/**
Original file line number Diff line number Diff line change
1
+ framework :
2
+ secret : php-http
3
+ test : ~
4
+
5
+ # Do not use auto discovery
6
+ httplug :
7
+ classes :
8
+ client : Http\Adapter\Guzzle6\Client
9
+ message_factory : Http\Message\MessageFactory\GuzzleMessageFactory
10
+ uri_factory : Http\Message\UriFactory\GuzzleUriFactory
11
+ stream_factory : Http\Message\StreamFactory\GuzzleStreamFactory
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ framework:
2
2
secret : php-http
3
3
test : ~
4
4
5
+ # Use auto discovery
5
6
httplug : ~
You can’t perform that action at this time.
0 commit comments