Skip to content

Commit

Permalink
#18 Add support for Symfony 4
Browse files Browse the repository at this point in the history
  • Loading branch information
k-k authored Aug 13, 2018
2 parents ee1f654 + 73bac15 commit 7a899fd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ php:
# 5.5 and 5.6 are already covered by the jobs running against specific Symfony versions. no need to duplicate them here
- 7.0
- 7.1
- 7.2

matrix:
include:
Expand All @@ -19,15 +20,15 @@ matrix:
dist: precise
# force testing against Symfony LTS versions
- php: 5.5
env: SYMFONY_VERSION=2.7.*
env: SYMFONY_VERSION=^2
- php: 5.6
env: SYMFONY_VERSION=2.8.*
env: SYMFONY_VERSION=^3
# Test against lowest dependencies
- php: 5.6
env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'

before_install:
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/symfony=$SYMFONY_VERSION; fi
- if [ "$SYMFONY_VERSION" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_VERSION; fi

install:
- composer update $COMPOSER_FLAGS
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "keen-io/keen-io-bundle",
"type": "symfony-bundle",
"description": "Symfony2 Bundle for Keen IO",
"description": "Symfony Bundle for Keen IO",
"keywords": ["keen", "keen.io", "events", "analytics", "symfony", "bundle" ],
"homepage": "https://github.com/keenlabs/KeenClient-PHP-Sf2",
"license": "MIT",
Expand All @@ -19,13 +19,13 @@
"require": {
"php": ">=5.3.3",
"keen-io/keen-io": "~2.1",
"symfony/config": "~2.3 || ~3.0",
"symfony/dependency-injection": "~2.3 || ~3.0",
"symfony/http-kernel": "~2.3 || ~3.0"
"symfony/config": "^2.3 || ^3.0 || ^4.0",
"symfony/dependency-injection": "^2.3 || ^3.0 || ^4.0",
"symfony/http-kernel": "^2.3 || ^3.0 || ^4.0"
},
"require-dev": {
"symfony/phpunit-bridge": "~3.3",
"symfony/yaml": "~2.3 || ~3.0",
"symfony/phpunit-bridge": "^4.0",
"symfony/yaml": "^2.3 || ^3.0 || ^4.0",
"phpunit/phpunit": "~4.8.35 || ~5.7 || ~6"
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion src/KeenIOBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@

class KeenIOBundle extends Bundle
{

}
2 changes: 1 addition & 1 deletion tests/DependencyInjection/KeenIOExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class KeenIOExtensionTest extends TestCase
*/
private $container;

public function setUp()
protected function setUp()
{
$this->extension = new KeenIOExtension();
$this->container = new ContainerBuilder();
Expand Down

0 comments on commit 7a899fd

Please sign in to comment.