Skip to content

Commit

Permalink
symfony4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasmure committed Dec 2, 2017
1 parent f57e2e3 commit e1dc764
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 2 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@ language: php

matrix:
include:
- php: 5.3
- php: 7.1
env:
- SYMFONY_VERSION='2.5.*'
- php: 7.0
env:
- SYMFONY_VERSION='3.0.*'
- SYMFONY_VERSION='4.0.*'

before_install:
- mkdir -p build/logs
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ class as a service (`crawler_detect`) to make it easier to use with Symfony

Download the bundle using composer :

```bash
$ composer require nmure/crawler-detect-bundle "^2.0.0"
```

For Symfony < 4.0, run :

```bash
$ composer require nmure/crawler-detect-bundle "^1.0.0"
```
Expand Down
2 changes: 1 addition & 1 deletion Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</parameters>

<services>
<service id="crawler_detect" class="%crawler_detect.class%">
<service id="crawler_detect" class="%crawler_detect.class%" public="true">
<argument type="service" id="request_stack" />
</service>
</services>
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
}
],
"require": {
"php": ">=5.3.0",
"symfony/framework-bundle": "~2.5|~3.0",
"php": ">=7.1",
"symfony/framework-bundle": "~4.0",
"jaybizzle/crawler-detect": "1.*"
},
"autoload": {
Expand Down

0 comments on commit e1dc764

Please sign in to comment.