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.
258 lines
10 KiB
258 lines
10 KiB
# This file is the entry point to configure your own services.
|
|
# Files in the packages/ subdirectory configure your dependencies.
|
|
|
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
|
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
|
imports:
|
|
- { resource: "services/admin.yaml" }
|
|
- { resource: "services/dashboard_blocks.yaml" }
|
|
- { resource: "services/doctrine_listeners.yaml" }
|
|
- { resource: "services/rules.yaml" }
|
|
- { resource: "services/makers.yaml" }
|
|
|
|
parameters:
|
|
locale: 'es'
|
|
app_locales: es|en|fr|ar
|
|
registration_enabled: true
|
|
sonata.user.admin.user.entity: App\Entity\User
|
|
sonata.user.admin.group.entity: App\Entity\Group
|
|
sonata.user.admin.user.class: App\Admin\UserAdmin
|
|
mercure_publish_url: '%env(MERCURE_PUBLISH_URL)%'
|
|
acdr_drupal_url: '%env(ACDR_DRUPAL_URL)%'
|
|
customer.care.email.sender: 'info@theswitchers.org'
|
|
MAILER_ADDRESS: 'info@theswitchers.org'
|
|
services:
|
|
# default configuration for services in *this* file
|
|
_defaults:
|
|
autowire: true # Automatically injects dependencies in your services.
|
|
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
|
public: false
|
|
bind:
|
|
$locales: '%app_locales%'
|
|
$defaultLocale: '%locale%'
|
|
# makes classes in src/ available to be used as services
|
|
# this creates a service per class whose id is the fully-qualified class name
|
|
App\:
|
|
resource: '../src/*'
|
|
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
|
|
|
# controllers are imported separately to make sure services can be injected
|
|
# as action arguments even if you don't extend any base controller class
|
|
App\Controller\:
|
|
resource: '../src/Controller'
|
|
tags: ['controller.service_arguments']
|
|
|
|
# add more service definitions when explicit configuration is needed
|
|
# please note that last definitions always *replace* previous ones
|
|
Qipsius\TCPDFBundle\Controller\TCPDFController: '@qipsius.tcpdf'
|
|
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
|
|
|
|
acdr.chatcontroller:
|
|
class: App\Controller\ChatController
|
|
|
|
#Servicio
|
|
fos_user.bso.registration:
|
|
class: App\Form\Type\RegistrationServicioFormType
|
|
arguments:
|
|
$class: "Servicio"
|
|
tags:
|
|
- { name: form.type, alias: fos_user_bso_registration}
|
|
public: true
|
|
fos_user.registration.form.bso.factory:
|
|
class: FOS\UserBundle\Form\Factory\FormFactory
|
|
arguments:
|
|
$name: Servicio
|
|
$type: App\Form\Type\RegistrationServicioFormType
|
|
public: true
|
|
App\Controller\RegistrationServicioController:
|
|
arguments:
|
|
$formFactory: '@fos_user.registration.form.bso.factory'
|
|
$kernel: '@kernel'
|
|
$translator: '@translator.default'
|
|
$mailer: '@mailer'
|
|
public: true
|
|
#Supervisor
|
|
fos_user.trainer.registration:
|
|
class: App\Form\Type\RegistrationSupervisorFormType
|
|
arguments:
|
|
$class: "Supervisor"
|
|
tags:
|
|
- { name: form.type, alias: fos_user_trainer_registration}
|
|
public: true
|
|
fos_user.registration.form.trainer.factory:
|
|
class: FOS\UserBundle\Form\Factory\FormFactory
|
|
arguments:
|
|
$name: Supervisor
|
|
$type: App\Form\Type\RegistrationSupervisorFormType
|
|
public: true
|
|
App\Controller\RegistrationSupervisorController:
|
|
arguments:
|
|
$formFactory: '@fos_user.registration.form.trainer.factory'
|
|
$kernel: '@kernel'
|
|
public: true
|
|
#Financial Actor
|
|
fos_user.financialactor.registration:
|
|
class: App\Form\Type\RegistrationSupervisorFormType
|
|
arguments:
|
|
$class: "Contable"
|
|
tags:
|
|
- { name: form.type, alias: fos_user_financialactor_registration}
|
|
public: true
|
|
fos_user.registration.form.financialactor.factory:
|
|
class: FOS\UserBundle\Form\Factory\FormFactory
|
|
arguments:
|
|
$name: Contable
|
|
$type: App\Form\Type\RegistrationContableFormType
|
|
public: true
|
|
App\Controller\RegistrationContableController:
|
|
arguments:
|
|
$formFactory: '@fos_user.registration.form.financialactor.factory'
|
|
$kernel: '@kernel'
|
|
$translator: '@translator.default'
|
|
$mailer: '@mailer'
|
|
public: true
|
|
#Green Enterpreneur
|
|
fos_user.ge.registration:
|
|
class: App\Form\Type\RegistrationLicitadorFormType
|
|
arguments:
|
|
$class: "Licitador"
|
|
tags:
|
|
- { name: form.type, alias: fos_user_ge_registration}
|
|
public: true
|
|
fos_user.registration.form.ge.factory:
|
|
class: FOS\UserBundle\Form\Factory\FormFactory
|
|
arguments:
|
|
$name: Licitador
|
|
$type: App\Form\Type\RegistrationLicitadorFormType
|
|
public: true
|
|
App\Controller\RegistrationLicitadorController:
|
|
arguments:
|
|
$formFactory: '@fos_user.registration.form.ge.factory'
|
|
$kernel: '@kernel'
|
|
public: true
|
|
#####################################
|
|
# System modifications #
|
|
#####################################
|
|
app.locale.listener:
|
|
class: App\EventListener\LocaleListener
|
|
arguments:
|
|
$router: "@router"
|
|
$languages: "%app_locales%"
|
|
$defaultLanguage: "%locale%"
|
|
tags:
|
|
- { name: kernel.event_subscriber }
|
|
App\Controller\SecurityController:
|
|
public: true
|
|
App\Twig\Loader\DatabaseLoader:
|
|
tags:
|
|
- { name: twig.loader }
|
|
|
|
|
|
|
|
|
|
|
|
sensio_framework_extra.view.listener:
|
|
alias: Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener
|
|
admin_success_handler:
|
|
class: App\Services\AuthenticationHandler
|
|
arguments: [ '@service_container' ]
|
|
sonata_admin.user_voter:
|
|
class: App\Security\UserVoter
|
|
arguments: ['@security.access.decision_manager']
|
|
public: false
|
|
tags:
|
|
- { name: security.voter }
|
|
|
|
|
|
gedmo.listener.sortable:
|
|
class: Gedmo\Sortable\SortableListener
|
|
calls:
|
|
- [setAnnotationReader, ['@annotation_reader']]
|
|
tags:
|
|
- { name: doctrine.event_subscriber, connection: default }
|
|
|
|
|
|
|
|
# admin.recurso_to_tarea:
|
|
# class: App\Admin\RecursoToTareaAdmin
|
|
# arguments: [~, App\Entity\RecursoToTarea, App\Controller\Admin\RecursoToTareaAdminController]
|
|
# tags:
|
|
# - { name: sonata.admin, manager_type: orm, group: admin, label: RecursoToTarea }
|
|
# public: true
|
|
|
|
|
|
|
|
App\Controller\Admin\RealizarTareaAdminController:
|
|
arguments:
|
|
$evaluator: '@rule_engine.evaluator'
|
|
$context: '@App\RuleEngine\Service\AcdrContext'
|
|
$kernel: '@kernel'
|
|
$mailer: '@mailer'
|
|
public: true
|
|
App\Controller\Admin\RespuestasTareaAdminController:
|
|
arguments:
|
|
$evaluator: '@rule_engine.evaluator'
|
|
$context: '@App\RuleEngine\Service\AcdrContext'
|
|
$kernel: '@kernel'
|
|
$translator: '@translator'
|
|
public: true
|
|
App\Controller\Admin\WorkShopsAdminController:
|
|
arguments:
|
|
$mailer: '@mailer'
|
|
public: true
|
|
|
|
Zitec\RuleEngineBundle\Command\GEImporterCommand:
|
|
arguments: ['@doctrine.orm.entity_manager','@fos_user.user_manager','@security.token_storage','@kernel']
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:ge:importer' }
|
|
Zitec\RuleEngineBundle\Command\NormalizeTranslationsCommand:
|
|
arguments: [ '@doctrine.orm.entity_manager','@fos_user.user_manager','@security.token_storage','@kernel' ]
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:normalize-translations' }
|
|
Zitec\RuleEngineBundle\Command\FillTranslationCommand:
|
|
arguments: ['@doctrine.orm.entity_manager','@fos_user.user_manager','@security.token_storage','@kernel']
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:fill:translations' }
|
|
|
|
Zitec\RuleEngineBundle\Command\FAImporterCommand:
|
|
arguments: ['@doctrine.orm.entity_manager','@fos_user.user_manager','@security.token_storage','@kernel']
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:fa:importer' }
|
|
Zitec\RuleEngineBundle\Command\FixEventDatesCommand:
|
|
arguments: [ '@doctrine.orm.entity_manager' ]
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:calendar:fixevents' }
|
|
Zitec\RuleEngineBundle\Command\MailerTestCommand:
|
|
arguments: [ "@parametersbag","@mailer" ]
|
|
tags:
|
|
- { name: 'console.command', command: 'zitec:mailer:test' }
|
|
admin.tarea:
|
|
class: App\Admin\TareaAdmin
|
|
arguments: [~, App\Entity\Tarea, App\Controller\Admin\TareaAdminController]
|
|
tags:
|
|
- { name: sonata.admin, manager_type: orm, group: admin, label: Tarea }
|
|
calls:
|
|
- [ addChild, ['@admin.preguntas']]
|
|
- [ addChild, ['@admin.recursos']]
|
|
- [ addChild, ['@admin.template']]
|
|
- [ addChild, ['@admin.precondition']]
|
|
- [ addChild, ['@admin.postcondition']]
|
|
- [ addChild, ['@admin.secciones_tarea']]
|
|
# App\Admin\ProcesosAdmin:
|
|
# calls:
|
|
# - [ addChild, ['@admin.tarea', 'procesos_id']]
|
|
prometeo.templatetofiles.convert:
|
|
class: Prometeo\CommandsBundle\Commands\TemplateToFiles
|
|
arguments: ["@service_container",'%kernel.project_dir%','@doctrine.orm.entity_manager']
|
|
tags:
|
|
- { name: 'templatetofiles.command', command: 'prometeo:databasetemplate:files' }
|
|
|
|
controller_api_badget_workshops_controller:
|
|
class: App\Controller\Api\BadgetWorkshopsApiController
|
|
arguments: ['@doctrine.orm.entity_manager', "@templating", "@security.token_storage" ]
|