Skip to content

Commit 887c54c

Browse files
committed
Added symfony proxy manager bridge dependency and updated tests
1 parent ca1a83c commit 887c54c

File tree

5 files changed

+14
-3
lines changed

5 files changed

+14
-3
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"symfony/http-kernel": "~2.3 || ~3.0 || ~4.0",
2323
"symfony/dependency-injection": "~2.3 || ~3.0 || ~4.0",
2424
"symfony/yaml": "~2.3 || ~3.0 || ~4.0",
25-
"symfony/config": "~2.3 || ~3.0 || ~4.0"
25+
"symfony/config": "~2.3 || ~3.0 || ~4.0",
26+
"symfony/proxy-manager-bridge": "~2.3 || ~3.0 || ~4.0"
2627
},
2728
"suggest": {
2829
"simple-bus/doctrine-orm-bridge": "For integration with Doctrine ORM",

src/Resources/config/command_bus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
command_bus:
33
alias: simple_bus.command_bus
4+
public: true
45

56
simple_bus.command_bus:
67
class: SimpleBus\SymfonyBridge\Bus\CommandBus

src/Resources/config/event_bus.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
event_bus:
33
alias: simple_bus.event_bus
4+
public: true
45

56
simple_bus.event_bus:
67
class: SimpleBus\SymfonyBridge\Bus\EventBus

tests/Functional/SmokeTest/config1.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ imports:
22
- { resource: config.yml }
33

44
parameters:
5-
log_file: %kernel.logs_dir%/%kernel.environment%.log
5+
log_file: '%kernel.logs_dir%/%kernel.environment%.log'
66

77
services:
88
test_command_handler:
@@ -11,27 +11,31 @@ services:
1111
- '@doctrine.orm.default_entity_manager'
1212
tags:
1313
- { name: command_handler, handles: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\TestCommand }
14+
public: true
1415

1516
some_other_test_command_handler:
1617
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\SomeOtherTestCommandHandler
1718
arguments:
1819
- '@event_recorder'
1920
tags:
2021
- { name: command_handler, handles: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\SomeOtherTestCommand }
22+
public: true
2123

2224
test_event_subscriber:
2325
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\TestEntityCreatedEventSubscriber
2426
tags:
2527
- { name: event_subscriber, subscribes_to: test_entity_created }
2628
arguments:
2729
- '@command_bus'
30+
public: true
2831

2932
some_other_event_subscriber:
3033
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\SomeOtherEventSubscriber
3134
tags:
3235
- { name: event_subscriber, subscribes_to: some_other_event }
3336
arguments:
3437
- '@command_bus'
38+
public: true
3539

3640
command_bus:
3741
command_name_resolver_strategy: class_based
@@ -45,5 +49,5 @@ monolog:
4549
handlers:
4650
main:
4751
type: stream
48-
path: %log_file%
52+
path: '%log_file%'
4953
level: debug

tests/Functional/SmokeTest/config2.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ services:
66
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto\AutoCommandHandlerUsingInvoke
77
tags:
88
- { name: command_handler }
9+
public: true
910

1011
auto_command_handler_using_public_method:
1112
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto\AutoCommandHandlerUsingPublicMethod
1213
tags:
1314
- { name: command_handler, register_public_methods: true }
15+
public: true
1416

1517
auto_event_subscriber_using_invoke:
1618
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto\AutoEventSubscriberUsingInvoke
1719
tags:
1820
- { name: event_subscriber }
21+
public: true
1922

2023
auto_event_subscriber_using_public_method:
2124
class: SimpleBus\SymfonyBridge\Tests\Functional\SmokeTest\Auto\AutoEventSubscriberUsingPublicMethod
2225
tags:
2326
- { name: event_subscriber, register_public_methods: true }
27+
public: true

0 commit comments

Comments
 (0)