Skip to content

Commit

Permalink
Update composer.json to include version 4.0 for symfony libraries, ad…
Browse files Browse the repository at this point in the history
…d commands to services.yml & remove all *.class
  • Loading branch information
nfabre committed Jan 3, 2018
1 parent ecde4cb commit ef99073
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
"require": {
"php": ">=5.4.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": {
"phpunit/phpunit": "~3.7",
"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"
},
"suggest": {
"aws/aws-sdk-php": "Required to use AWS as a Queue Provider",
Expand Down
4 changes: 1 addition & 3 deletions src/Resources/config/parameters.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
parameters:
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.file: Uecode\Bundle\QPushBundle\Provider\FileProvider
25 changes: 23 additions & 2 deletions src/Resources/config/services.yml
Original file line number Diff line number Diff line change
@@ -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: 254 }

### 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 ef99073

Please sign in to comment.