Merge pull request #180 from andreybolonin/master

add sf 4.0 support
This commit is contained in:
Grégoire Passault 2017-12-28 12:21:03 +01:00 committed by GitHub
commit 639430383f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -7,7 +7,8 @@ parameters:
services:
captcha.type:
class: '%gregwar_captcha.captcha_type.class%'
class: '%gregwar_captcha.captcha_type.class%'
public: true
arguments:
- '@session'
- '@gregwar_captcha.generator'
@ -18,6 +19,7 @@ services:
gregwar_captcha.generator:
class: '%gregwar_captcha.captcha_generator.class%'
public: true
arguments:
- '@router'
- '@gregwar_captcha.captcha_builder'
@ -26,6 +28,7 @@ services:
gregwar_captcha.image_file_handler:
class: '%gregwar_captcha.image_file_handler.class%'
public: true
arguments:
- '%gregwar_captcha.config.image_folder%'
- '%gregwar_captcha.config.web_path%'
@ -34,6 +37,8 @@ services:
gregwar_captcha.captcha_builder:
class: '%gregwar_captcha.captcha_builder.class%'
public: true
gregwar_captcha.phrase_builder:
class: '%gregwar_captcha.phrase_builder.class%'
public: true

View File

@ -19,8 +19,8 @@
"require": {
"php": ">=5.3.9",
"gregwar/captcha": "~1.1",
"symfony/framework-bundle": "~2.8|~3.0",
"symfony/form": "~2.8|~3.0"
"symfony/framework-bundle": "~2.8|~3.0|~4.0",
"symfony/form": "~2.8|~3.0|~4.0"
},
"autoload": {
"psr-4": {