You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
3.1 KiB
84 lines
3.1 KiB
services:
|
|
parametersbag:
|
|
class: Symfony\Component\DependencyInjection\ParameterBag\ParameterBag
|
|
calls:
|
|
- ['add', [{customer.care.email.sender: '%customer.care.email.sender%'}]]
|
|
- ['add', [{MAILER_ADDRESS: '%MAILER_ADDRESS%'}]]
|
|
|
|
mailer:
|
|
class: \Swift_Mailer
|
|
rules.admin:
|
|
class: Zitec\RuleEngineBundle\Admin\RuleAdmin
|
|
tags:
|
|
- { name: sonata.admin, manager_type: orm, label: "Rules", show_in_dashboard: false }
|
|
arguments:
|
|
- ~
|
|
- Zitec\RuleEngineBundle\Entity\Rule
|
|
- ~
|
|
precondition.admin:
|
|
class: Zitec\RuleEngineBundle\Admin\PreconditionAdmin
|
|
tags:
|
|
- { name: sonata.admin, manager_type: orm, label: "Precondition", show_in_dashboard: false }
|
|
arguments:
|
|
- ~
|
|
- Zitec\RuleEngineBundle\Entity\Rule
|
|
- ~
|
|
postcondition.admin:
|
|
class: Zitec\RuleEngineBundle\Admin\PostconditionAdmin
|
|
tags:
|
|
- { name: sonata.admin, manager_type: orm, label: "Postcondition", show_in_dashboard: false }
|
|
arguments:
|
|
- ~
|
|
- Zitec\RuleEngineBundle\Entity\Rule
|
|
- ~
|
|
rules.doctrine_behaviors.rule:
|
|
class: Zitec\RuleEngineBundle\DoctrineBehaviors\RuleSubscriber
|
|
tags:
|
|
- { name: doctrine.event_subscriber }
|
|
|
|
rule_engine.form.type:
|
|
class: Zitec\RuleEngineBundle\Form\Type\RuleEngineType
|
|
tags:
|
|
- {name: form.type}
|
|
precondition_engine.form.type:
|
|
class: Zitec\RuleEngineBundle\Form\Type\PreconditionEngineType
|
|
tags:
|
|
- {name: form.type}
|
|
postcondition_engine.form.type:
|
|
class: Zitec\RuleEngineBundle\Form\Type\PostconditionEngineType
|
|
tags:
|
|
- {name: form.type}
|
|
rule_engine.autocomplete:
|
|
class: Zitec\RuleEngineBundle\Autocomplete\AutocompleteManager
|
|
|
|
rule_engine.evaluator:
|
|
class: Zitec\RuleEngineBundle\Service\RuleEvaluator
|
|
public: true
|
|
rule_engine.expression_array_functions:
|
|
class: Zitec\RuleEngineBundle\Service\ArrayExpressionLanguageProvider
|
|
tags:
|
|
- { name: rule_engine.expression_function_provider }
|
|
|
|
rule_engine.orchestrator:
|
|
class: Zitec\RuleEngineBundle\Service\Orchestrator
|
|
arguments: ['@doctrine.orm.entity_manager']
|
|
|
|
rule_engine.condition.current_date:
|
|
class: Zitec\RuleEngineBundle\Conditions\CurrentDate
|
|
public: false
|
|
|
|
rule_engine.condition.current_day:
|
|
class: Zitec\RuleEngineBundle\Conditions\CurrentDay
|
|
public: false
|
|
|
|
rule_engine.condition.current_time:
|
|
class: Zitec\RuleEngineBundle\Conditions\CurrentTime
|
|
public: false
|
|
Zitec\RuleEngineBundle\Command\ActionProcessorCommand:
|
|
arguments: ['@doctrine.orm.entity_manager',"@service_container","@mailer"]
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:action:execute' }
|
|
Zitec\RuleEngineBundle\Command\MailerTestCommand:
|
|
arguments: [ "@parametersbag","@mailer" ]
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:mailer:test' }
|