smartgecko/governor-bundle
Composer 安装命令:
composer require smartgecko/governor-bundle
包简介
Symfony bundle for the Governor Framework
README 文档
README
Symfony 2 bundle for the Governor framework.
Configuration reference
Unit Of Work Factory
governor.uow_factory.defaultgovernor.uow_factory.debug
The debug UOW uses the Symfony Stopwatch component to send data to the profiler timeline.
Annotation Reader
Type
simplefile_cache
Parameters
The file_cache annotation reader takes the following paramters
debug: booleanpath: string
AMQP
To configure an AMQP terminal add an entry to the governor_framework.terminals.amqp section.
The bundle will create a service in the Container named governor.terminal.amqp.%name%
Command buses
To configure a command bus add an entry to the governor_framework.command_buses section.
A default command bus named default must be configured.
class: stringregistry: stringdispatch_interceptors: arrayhandler_interceptors: array
Event buses
Sample configuration
governor_framework:
uow_factory: governor.uow_factory.debug
annotation_reader:
type: file_cache
parameters:
debug: %kernel.debug%
path: "%kernel.cache_dir%/governor"
terminals:
amqp:
default:
host: %amqp_host%
port: %amqp_port%
user: %amqp_user%
password: %amqp_password%
vhost: %amqp_vhost%
command_buses:
default:
class: Governor\Framework\CommandHandling\SimpleCommandBus
registry: governor.command_bus_registry.in_memory
dispatch_interceptors: [governor.interceptor.validator]
handler_interceptors: [domain.governor.interceptor.audit]
event_buses:
default:
class: Governor\Framework\EventHandling\SimpleEventBus
registry: governor.event_bus_registry.in_memory
terminals: [governor.terminal.amqp.default]
command_gateways:
default:
class: Governor\Framework\CommandHandling\Gateway\DefaultCommandGateway
command_bus: default
lock_manager: "null"
command_target_resolver: annotation
order_resolver: annotation
aggregates:
first:
class: My\Project\FirstAggregate
repository: hybrid
handler: true
another:
class: My\Project\AnotherAggregate
repository: hybrid
handler: true
event_store:
type: orm
parameters:
entity_manager: governor_entity_manager
serializer: jms
saga_repository:
type: orm
parameters:
entity_manager: governor_entity_manager
saga_manager:
type: annotation
saga_locations: ["%kernel.root_dir%/../src/SmartGecko/Domain/*/Saga"]
统计信息
- 总下载量: 277
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-16