Licitator 1.0
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.

83 lines
3.1 KiB

5 years ago
  1. services:
  2. parametersbag:
  3. class: Symfony\Component\DependencyInjection\ParameterBag\ParameterBag
  4. calls:
  5. - ['add', [{customer.care.email.sender: '%customer.care.email.sender%'}]]
  6. - ['add', [{MAILER_ADDRESS: '%MAILER_ADDRESS%'}]]
  7. mailer:
  8. class: \Swift_Mailer
  9. rules.admin:
  10. class: Zitec\RuleEngineBundle\Admin\RuleAdmin
  11. tags:
  12. - { name: sonata.admin, manager_type: orm, label: "Rules", show_in_dashboard: false }
  13. arguments:
  14. - ~
  15. - Zitec\RuleEngineBundle\Entity\Rule
  16. - ~
  17. precondition.admin:
  18. class: Zitec\RuleEngineBundle\Admin\PreconditionAdmin
  19. tags:
  20. - { name: sonata.admin, manager_type: orm, label: "Precondition", show_in_dashboard: false }
  21. arguments:
  22. - ~
  23. - Zitec\RuleEngineBundle\Entity\Rule
  24. - ~
  25. postcondition.admin:
  26. class: Zitec\RuleEngineBundle\Admin\PostconditionAdmin
  27. tags:
  28. - { name: sonata.admin, manager_type: orm, label: "Postcondition", show_in_dashboard: false }
  29. arguments:
  30. - ~
  31. - Zitec\RuleEngineBundle\Entity\Rule
  32. - ~
  33. rules.doctrine_behaviors.rule:
  34. class: Zitec\RuleEngineBundle\DoctrineBehaviors\RuleSubscriber
  35. tags:
  36. - { name: doctrine.event_subscriber }
  37. rule_engine.form.type:
  38. class: Zitec\RuleEngineBundle\Form\Type\RuleEngineType
  39. tags:
  40. - {name: form.type}
  41. precondition_engine.form.type:
  42. class: Zitec\RuleEngineBundle\Form\Type\PreconditionEngineType
  43. tags:
  44. - {name: form.type}
  45. postcondition_engine.form.type:
  46. class: Zitec\RuleEngineBundle\Form\Type\PostconditionEngineType
  47. tags:
  48. - {name: form.type}
  49. rule_engine.autocomplete:
  50. class: Zitec\RuleEngineBundle\Autocomplete\AutocompleteManager
  51. rule_engine.evaluator:
  52. class: Zitec\RuleEngineBundle\Service\RuleEvaluator
  53. public: true
  54. rule_engine.expression_array_functions:
  55. class: Zitec\RuleEngineBundle\Service\ArrayExpressionLanguageProvider
  56. tags:
  57. - { name: rule_engine.expression_function_provider }
  58. rule_engine.orchestrator:
  59. class: Zitec\RuleEngineBundle\Service\Orchestrator
  60. arguments: ['@doctrine.orm.entity_manager']
  61. rule_engine.condition.current_date:
  62. class: Zitec\RuleEngineBundle\Conditions\CurrentDate
  63. public: false
  64. rule_engine.condition.current_day:
  65. class: Zitec\RuleEngineBundle\Conditions\CurrentDay
  66. public: false
  67. rule_engine.condition.current_time:
  68. class: Zitec\RuleEngineBundle\Conditions\CurrentTime
  69. public: false
  70. Zitec\RuleEngineBundle\Command\ActionProcessorCommand:
  71. arguments: ['@doctrine.orm.entity_manager',"@service_container","@mailer"]
  72. tags:
  73. - { name: 'console.command', command: 'zitec:action:execute' }
  74. Zitec\RuleEngineBundle\Command\MailerTestCommand:
  75. arguments: [ "@parametersbag","@mailer" ]
  76. tags:
  77. - { name: 'console.command', command: 'zitec:mailer:test' }