Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

Commit

Permalink
Upgrade config for Symfony 4.3 TestContainer (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Gorbachev authored and theofidry committed Jun 26, 2019
1 parent 8e9a0c3 commit b5c0655
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ matrix:
- php: '7.1'
env:
- COMPOSER_FLAGS='--prefer-lowest'
- SYMFONY_VERSION='~3.4.0'
- SYMFONY_VERSION='~4.3.0'
- php: '7.2'
env: SYMFONY_VERSION='~4.0.0'
- php: '7.2'
env: SYMFONY_VERSION='~4.1.0'
env: SYMFONY_VERSION='~4.3.0'
allow_failures:
- php: nightly

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"require": {
"php": "^7.1",
"psy/psysh": "^0.8 || ^0.9",
"symfony/expression-language": "^3.4 || ^4.0",
"symfony/framework-bundle": "^3.4 || ^4.0"
"symfony/expression-language": "^4.3",
"symfony/framework-bundle": "^4.3"
},
"require-dev": {
"phpunit/phpunit": "^6.4",
"symfony/symfony": "^3.4 || ^4.0"
"symfony/symfony": "^4.3"
},

"autoload": {
Expand Down
13 changes: 4 additions & 9 deletions resources/config/test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="test.client.parameters" type="collection"></parameter>
Expand All @@ -11,7 +11,7 @@
<services>
<defaults public="false" />

<service id="test.client" class="Symfony\Bundle\FrameworkBundle\Client" shared="false" public="true">
<service id="test.client" class="Symfony\Bundle\FrameworkBundle\KernelBrowser" shared="false" public="true">
<argument type="service" id="kernel" />
<argument>%test.client.parameters%</argument>
<argument type="service" id="test.client.history" />
Expand All @@ -24,13 +24,8 @@

<service id="test.session.listener" class="Symfony\Component\HttpKernel\EventListener\TestSessionListener">
<tag name="kernel.event_subscriber" />
<argument type="service">
<service class="Symfony\Component\DependencyInjection\ServiceLocator">
<tag name="container.service_locator" />
<argument type="collection">
<argument key="session" type="service" id="session" on-invalid="ignore" />
</argument>
</service>
<argument type="service_locator">
<argument key="session" type="service" id="session" on-invalid="ignore" />
</argument>
</service>

Expand Down

0 comments on commit b5c0655

Please sign in to comment.