Skip to content

Commit dfd2acd

Browse files
authored
Merge pull request #45 from prestaconcept/symfony4-support
Add support for Symfony 4.0
2 parents 07d3e31 + 6875d2a commit dfd2acd

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

.travis.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
language: php
22

33
php:
4-
- 5.5
54
- 5.6
65
- 7.0
76
- 7.1
7+
- 7.2
88

99
env:
1010
- SYMFONY_VERSION=2.8.*
11-
- SYMFONY_VERSION=3.3.*
11+
- SYMFONY_VERSION=3.4.*
12+
- SYMFONY_VERSION=4.0.*
13+
14+
matrix:
15+
exclude:
16+
- php: 5.6
17+
env: SYMFONY_VERSION=4.0.* # Symfony >= 4.0 PHP requirement is ^7.1.3
18+
- php: 7.0
19+
env: SYMFONY_VERSION=4.0.* # Symfony >= 4.0 PHP requirement is ^7.1.3
1220

1321
sudo: false
1422

@@ -21,12 +29,11 @@ before_install:
2129
- phpenv rehash
2230
- composer self-update
2331

24-
install:
25-
- composer require symfony/symfony:${SYMFONY_VERSION}
32+
before_script:
33+
- composer require "symfony/symfony:${SYMFONY_VERSION}" --no-update
2634

2735
script:
2836
- phpcs --ignore=vendor/* --extensions=php --encoding=utf-8 --standard=PSR2 -np .
2937

3038
notifications:
31-
email:
32-
39+

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "presta/image-bundle",
33
"type": "symfony-bundle",
44
"description": "Allow to crop local and remote image before uploading them through a classic form.",
5-
"keywords": ["symfony2", "bundle", "form", "image", "picture", "local", "remote"],
5+
"keywords": ["symfony", "bundle", "form", "image", "picture", "local", "remote"],
66
"homepage": "https://github.com/prestaconcept/PrestaImageBundle",
77
"license": "MIT",
88
"authors": [
@@ -12,8 +12,8 @@
1212
}
1313
],
1414
"require": {
15-
"php": ">=5.5.9",
16-
"symfony/form": "~2.8|~3.0",
15+
"php": ">=5.6",
16+
"symfony/form": "~2.8|~3.0|~4.0",
1717
"vich/uploader-bundle": "^1.1"
1818
},
1919
"autoload": {

0 commit comments

Comments
 (0)