src/CoreBundle/Resources/config/services.yml
# Settings parameters that will be used in the 'services' section
services:
_defaults:
autowire: true
public: true
autoconfigure: true
csrf.token_manager:
class: Symfony\Component\Security\Csrf\CsrfTokenManager
chamilo_core.translation.loader.po:
class: Symfony\Component\Translation\Loader\PoFileLoader
tags:
- {name: translation.loader, alias: po}
Chamilo\CoreBundle\:
resource: '../../*'
exclude: '../../{Repository,Component,DependencyInjection,EventListener,Form/DataTransformer/ResourceToIdentifierTransformer.php,Framework,Migrations,Settings,ChamiloCoreBundle.php,Entity,ApiResource}'
public: true
Doctrine\Migrations\Version\DbalMigrationFactory: ~
Chamilo\CoreBundle\Migrations\MigrationFactory:
decorates: Doctrine\Migrations\Version\DbalMigrationFactory
arguments: ['@Chamilo\CoreBundle\Migrations\MigrationFactory.inner', '@service_container', '@doctrine.orm.entity_manager']
Chamilo\CoreBundle\Controller\:
resource: '../../Controller'
tags: ['controller.service_arguments']
Chamilo\CoreBundle\Hook\HookFactory: ~
# Form types
# Custom yes/no form type, use in the platform settings
Chamilo\CoreBundle\Form\Type\YesNoType:
tags:
- {name: form.type}
Chamilo\CoreBundle\Component\Editor\CkEditor\CkEditor:
arguments: ['@translator', '@router']
Chamilo\CoreBundle\Component\Utils\AssetDirectoryNamer:
arguments:
- '@property_accessor'
- '@Chamilo\CoreBundle\Repository\AssetRepository'
- '@request_stack'
Chamilo\CoreBundle\Component\Utils\AssetFileNameNamer:
arguments:
- '@request_stack'
- '@translator'
tags:
- { name: vich_uploader.namer, mapping: assets }
Chamilo\CoreBundle\Component\Utils\CreateDefaultPages: ~
Chamilo\CoreBundle\Component\Utils\NameConvention: ~
Chamilo\CoreBundle\Component\Utils\Glide:
arguments:
- {source: '@oneup_flysystem.resource_filesystem', cache: '@oneup_flysystem.resource_cache_filesystem'}
- '%glide_media_filters%'
Chamilo\CoreBundle\Component\Utils\GlideAsset:
arguments:
- {source: '@oneup_flysystem.asset_filesystem', cache: '@oneup_flysystem.asset_cache_filesystem'}
- '%glide_media_filters%'
# Check if users are online
# chamilo_core.listener.online:
# class: Chamilo\CoreBundle\EventListener\OnlineListener
# arguments: [@security.context, @doctrine.orm.entity_manager ]
# tags:
# - {name: kernel.event_listener, event: kernel.controller}
Chamilo\CoreBundle\Repository\AssetRepository: ~
Chamilo\CoreBundle\Settings\SettingsManager:
arguments:
- '@sylius.registry.settings_schema'
- '@doctrine.orm.entity_manager'
- '@Chamilo\CoreBundle\Repository\SettingsCurrentRepository'
- '@event_dispatcher'
- '@request_stack'
Chamilo\CoreBundle\Twig\SettingsHelper:
arguments:
- '@Chamilo\CoreBundle\Settings\SettingsManager'
tags:
- {name: templating.helper, alias: chamilo_settings}
Chamilo\CoreBundle\Tool\ToolChain: ~
course.sticky_boolean_filter:
parent: 'api_platform.doctrine.orm.boolean_filter'
arguments: [{'sticky': ~}]
tags: [{name: 'api_platform.filter', id: 'course.sticky_boolean_filter'}]
_instanceof:
Chamilo\CoreBundle\Tool\ToolInterface:
tags: ['chamilo_core.tool_handler']
Chamilo\CoreBundle\Tool\HandlerCollection:
arguments:
- !tagged_iterator chamilo_core.tool_handler
Chamilo\CoreBundle\Filter\SocialWallFilter:
tags: [ 'api_platform.filter' ]
Chamilo\CoreBundle\ServiceHelper\PermissionServiceHelper:
arguments:
$permissionRelRoleRepository: '@Chamilo\CoreBundle\Repository\PermissionRelRoleRepository'