Skip to content

Commit

Permalink
Merge pull request #137 from nfabre/symfony4
Browse files Browse the repository at this point in the history
Include version support for Symfony 4.0
  • Loading branch information
k-k committed Mar 28, 2018
2 parents 5359649 + e5d5910 commit abedfde
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17 deletions.
16 changes: 8 additions & 8 deletions composer.json
Expand Up @@ -17,21 +17,21 @@
"email": "kkirk@undergroundelephant.com"
},
"require": {
"php": ">=5.4.0",
"php": ">=5.6.0",
"doctrine/common": "~2.4",
"symfony/dependency-injection": "~2.3|^3.0",
"symfony/dependency-injection": "~2.3|^3.0|^4.0",
"symfony/config": "~2.3|^3.0",
"symfony/http-kernel": "~2.3|^3.0",
"symfony/console": "~2.3|^3.0",
"symfony/monolog-bundle": "~2.3|^3.0"
"symfony/http-kernel": "~2.3|^3.0|^4.0",
"symfony/console": "~2.3|^3.0|^4.0",
"symfony/monolog-bundle": "~2.3|^3.0|^4.0"
},
"require-dev": {
"aws/aws-sdk-php": "~2.5",
"iron-io/iron_mq": "^4.0",
"symfony/finder": "~2.3|^3.0",
"symfony/filesystem": "~2.3|^3.0",
"symfony/finder": "~2.3|^3.0|^4.0",
"symfony/filesystem": "~2.3|^3.0|^4.0",
"symfony/phpunit-bridge": "^4.0",
"symfony/yaml": "~2.8|^3.0",
"symfony/yaml": "~2.8|^3.0|^4.0",
"doctrine/orm": "^2.4.8",
"stof/doctrine-extensions-bundle": "^1.2"
},
Expand Down
14 changes: 7 additions & 7 deletions src/Resources/config/parameters.yml
@@ -1,10 +1,10 @@
parameters:
uecode_qpush.request_listener.priority: 254
uecode_qpush.request_listener.class: Uecode\Bundle\QPushBundle\EventListener\RequestListener
uecode_qpush.registry.class: Uecode\Bundle\QPushBundle\Provider\ProviderRegistry
uecode_qpush.provider.aws: Uecode\Bundle\QPushBundle\Provider\AwsProvider
uecode_qpush.provider.ironmq: Uecode\Bundle\QPushBundle\Provider\IronMqProvider
uecode_qpush.provider.sync: Uecode\Bundle\QPushBundle\Provider\SyncProvider
uecode_qpush.provider.custom: Uecode\Bundle\QPushBundle\Provider\CustomProvider
uecode_qpush.provider.file: Uecode\Bundle\QPushBundle\Provider\FileProvider
uecode_qpush.provider.doctrine: Uecode\Bundle\QPushBundle\Provider\DoctrineProvider
uecode_qpush.registry.class: Uecode\Bundle\QPushBundle\Provider\ProviderRegistry
uecode_qpush.provider.aws: Uecode\Bundle\QPushBundle\Provider\AwsProvider
uecode_qpush.provider.ironmq: Uecode\Bundle\QPushBundle\Provider\IronMqProvider
uecode_qpush.provider.sync: Uecode\Bundle\QPushBundle\Provider\SyncProvider
uecode_qpush.provider.custom: Uecode\Bundle\QPushBundle\Provider\CustomProvider
uecode_qpush.provider.file: Uecode\Bundle\QPushBundle\Provider\FileProvider
uecode_qpush.provider.doctrine: Uecode\Bundle\QPushBundle\Provider\DoctrineProvider
25 changes: 23 additions & 2 deletions src/Resources/config/services.yml
@@ -1,7 +1,7 @@
services:
### QPush Registry
uecode_qpush.registry:
class: '%uecode_qpush.registry.class%'
class: Uecode\Bundle\QPushBundle\Provider\ProviderRegistry
uecode_qpush:
alias: uecode_qpush.registry

Expand All @@ -13,8 +13,29 @@ services:

### QPush Event Listeners
uecode_qpush.request_listener:
class: '%uecode_qpush.request_listener.class%'
class: Uecode\Bundle\QPushBundle\EventListener\RequestListener
arguments:
- '@event_dispatcher'
tags:
- { name: kernel.event_listener, event: kernel.request, priority: '%uecode_qpush.request_listener.priority%' }

### QPush Commands
uecode_qpush.build_command:
class: Uecode\Bundle\QPushBundle\Command\QueueBuildCommand
tags:
- { name: console.command }

uecode_qpush.destroy_command:
class: Uecode\Bundle\QPushBundle\Command\QueueDestroyCommand
tags:
- { name: console.command }

uecode_qpush.publish_command:
class: Uecode\Bundle\QPushBundle\Command\QueuePublishCommand
tags:
- { name: console.command }

uecode_qpush.receive_command:
class: Uecode\Bundle\QPushBundle\Command\QueueReceiveCommand
tags:
- { name: console.command }

0 comments on commit abedfde

Please sign in to comment.