mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
fix folder name
This commit is contained in:
92
src/Bundle/ChillMainBundle/config/routes.yaml
Normal file
92
src/Bundle/ChillMainBundle/config/routes.yaml
Normal file
@@ -0,0 +1,92 @@
|
||||
chill_main_admin_permissionsgroup:
|
||||
resource: "@ChillMainBundle/config/routes/permissionsgroup.yaml"
|
||||
prefix: "{_locale}/admin/permissionsgroup"
|
||||
|
||||
chill_main_admin_user:
|
||||
resource: "@ChillMainBundle/config/routes/user.yaml"
|
||||
prefix: "{_locale}/admin/user"
|
||||
|
||||
chill_main_admin_scope:
|
||||
resource: "@ChillMainBundle/config/routes/scope.yaml"
|
||||
prefix: "{_locale}/admin/scope"
|
||||
|
||||
chill_main_admin:
|
||||
resource: "@ChillMainBundle/config/routes/center.yaml"
|
||||
prefix: "{_locale}/admin/center"
|
||||
|
||||
chill_main_exports:
|
||||
resource: "@ChillMainBundle/config/routes/exports.yaml"
|
||||
prefix: "{_locale}/exports"
|
||||
|
||||
chill_postal_code:
|
||||
resource: "@ChillMainBundle/config/routes/postal-code.yaml"
|
||||
prefix: "{_locale}/postal-code"
|
||||
|
||||
chill_password:
|
||||
resource: "@ChillMainBundle/config/routes/password.yaml"
|
||||
prefix: "{_locale}/password"
|
||||
|
||||
chill_password_recover:
|
||||
resource: "@ChillMainBundle/config/routes/password_recover.yaml"
|
||||
prefix: "public/{_locale}/password"
|
||||
|
||||
chill_crud:
|
||||
resource: "@ChillMainBundle"
|
||||
type: CRUD
|
||||
|
||||
root:
|
||||
path: /
|
||||
controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction
|
||||
defaults:
|
||||
path: /homepage
|
||||
permanent: false
|
||||
|
||||
chill_main_homepage_without_locale:
|
||||
path: /homepage
|
||||
controller: Chill\MainBundle\Controller\DefaultController::indexWithoutLocaleAction
|
||||
|
||||
chill_main_homepage:
|
||||
path: /{_locale}/homepage
|
||||
controller: Chill\MainBundle\Controller\DefaultController::indexAction
|
||||
|
||||
chill_main_admin_central:
|
||||
path: /{_locale}/admin
|
||||
controller: Chill\MainBundle\Controller\AdminController::indexAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 0
|
||||
label: Main admin menu
|
||||
|
||||
chill_main_admin_permissions:
|
||||
path: /{_locale}/admin/permissions
|
||||
controller: Chill\MainBundle\Controller\AdminController::indexPermissionsAction
|
||||
|
||||
chill_main_search:
|
||||
path: /{_locale}/search.{_format}
|
||||
controller: Chill\MainBundle\Controller\SearchController::searchAction
|
||||
format: 'html' # sf4 check
|
||||
requirements:
|
||||
_format: html|json
|
||||
|
||||
chill_main_advanced_search:
|
||||
path: /{_locale}/search/advanced/{name}
|
||||
controller: Chill\MainBundle\Controller\SearchController::advancedSearchAction
|
||||
|
||||
chill_main_advanced_search_list:
|
||||
path: /{_locale}/search/advanced
|
||||
controller: Chill\MainBundle\Controller\SearchController::advancedSearchListAction
|
||||
|
||||
login:
|
||||
path: /login
|
||||
controller: Chill\MainBundle\Controller\LoginController::loginAction
|
||||
|
||||
login_check:
|
||||
path: /login_check
|
||||
|
||||
logout:
|
||||
path: /logout
|
||||
|
||||
chill_main_test:
|
||||
path: /{_locale}/main/test
|
||||
controller: Chill\MainBundle\Controller\DefaultController::testAction
|
35
src/Bundle/ChillMainBundle/config/routes/center.yaml
Normal file
35
src/Bundle/ChillMainBundle/config/routes/center.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
admin_center:
|
||||
path: /
|
||||
controller: Chill\MainBundle\Controller\CenterController::indexAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 100
|
||||
label: Center list
|
||||
|
||||
admin_center_show:
|
||||
path: /{id}/show
|
||||
controller: Chill\MainBundle\Controller\CenterController::showAction
|
||||
|
||||
admin_center_new:
|
||||
path: /new
|
||||
controller: Chill\MainBundle\Controller\CenterController::newAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 101
|
||||
label: New center
|
||||
|
||||
admin_center_create:
|
||||
path: /create
|
||||
controller: Chill\MainBundle\Controller\CenterController::createAction
|
||||
methods: POST
|
||||
|
||||
admin_center_edit:
|
||||
path: /{id}/edit
|
||||
controller: Chill\MainBundle\Controller\CenterController::editAction
|
||||
|
||||
admin_center_update:
|
||||
path: /{id}/update
|
||||
controller: Chill\MainBundle\Controller\CenterController::updateAction
|
||||
methods: [POST, PUT]
|
17
src/Bundle/ChillMainBundle/config/routes/exports.yaml
Normal file
17
src/Bundle/ChillMainBundle/config/routes/exports.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
chill_main_export_index:
|
||||
path: /
|
||||
controller: Chill\MainBundle\Controller\ExportController::indexAction
|
||||
|
||||
chill_main_export_new:
|
||||
path: /new/{alias}
|
||||
controller: Chill\MainBundle\Controller\ExportController::newAction
|
||||
|
||||
chill_main_export_generate:
|
||||
path: /generate/{alias}
|
||||
controller: Chill\MainBundle\Controller\ExportController::generateAction
|
||||
methods: [GET]
|
||||
|
||||
chill_main_export_download:
|
||||
path: /download/{alias}
|
||||
controller: Chill\MainBundle\Controller\ExportController::downloadResultAction
|
||||
methods: [ GET ]
|
4
src/Bundle/ChillMainBundle/config/routes/password.yaml
Normal file
4
src/Bundle/ChillMainBundle/config/routes/password.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
change_my_password:
|
||||
path: /edit
|
||||
controller: Chill\MainBundle\Controller\PasswordController::userPasswordAction
|
||||
|
@@ -0,0 +1,15 @@
|
||||
password_recover:
|
||||
path: /recover
|
||||
controller: Chill\MainBundle\Controller\PasswordController::recoverAction
|
||||
|
||||
password_request_recover:
|
||||
path: /request-recover
|
||||
controller: Chill\MainBundle\Controller\PasswordController::requestRecoverAction
|
||||
|
||||
password_request_recover_confirm:
|
||||
path: /request-confirm
|
||||
controller: Chill\MainBundle\Controller\PasswordController::requestRecoverConfirmAction
|
||||
|
||||
password_request_recover_changed:
|
||||
path: /request-changed
|
||||
controller: Chill\MainBundle\Controller\PasswordController::changeConfirmedAction
|
@@ -0,0 +1,45 @@
|
||||
admin_permissionsgroup:
|
||||
path: /
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::indexAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 300
|
||||
label: Permissions group list
|
||||
|
||||
admin_permissionsgroup_show:
|
||||
path: /{id}/show
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::showAction
|
||||
|
||||
admin_permissionsgroup_new:
|
||||
path: /new
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::newAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 301
|
||||
label: New permission group
|
||||
|
||||
admin_permissionsgroup_create:
|
||||
path: /create
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::createAction
|
||||
methods: POST
|
||||
|
||||
admin_permissionsgroup_edit:
|
||||
path: /{id}/edit
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::editAction
|
||||
|
||||
admin_permissionsgroup_update:
|
||||
path: /{id}/update
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::updateAction
|
||||
methods: [POST, PUT]
|
||||
|
||||
admin_permissionsgroup_delete_role_scope:
|
||||
path: /{pgid}/delete_link_role_scope/{rsid}
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::deleteLinkRoleScopeAction
|
||||
methods: [DELETE]
|
||||
|
||||
admin_permissionsgroup_add_role_scope:
|
||||
path: /{id}/add_link_role_scope
|
||||
controller: Chill\MainBundle\Controller\PermissionsGroupController::addLinkRoleScopeAction
|
||||
methods: [PUT]
|
@@ -0,0 +1,4 @@
|
||||
chill_main_postal_code_search:
|
||||
path: /search
|
||||
controller: Chill\MainBundle\Controller\PostalCodeController::searchAction
|
||||
|
35
src/Bundle/ChillMainBundle/config/routes/scope.yaml
Normal file
35
src/Bundle/ChillMainBundle/config/routes/scope.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
admin_scope:
|
||||
path: /
|
||||
controller: Chill\MainBundle\Controller\ScopeController::indexAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 200
|
||||
label: List circles
|
||||
|
||||
admin_scope_show:
|
||||
path: /{id}/show
|
||||
controller: Chill\MainBundle\Controller\ScopeController::showAction
|
||||
|
||||
admin_scope_new:
|
||||
path: /new
|
||||
controller: Chill\MainBundle\Controller\ScopeController::newAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 201
|
||||
label: New circle
|
||||
|
||||
admin_scope_create:
|
||||
path: /create
|
||||
controller: Chill\MainBundle\Controller\ScopeController::createAction
|
||||
methods: POST
|
||||
|
||||
admin_scope_edit:
|
||||
path: /{id}/edit
|
||||
controller: Chill\MainBundle\Controller\ScopeController::editAction
|
||||
|
||||
admin_scope_update:
|
||||
path: /{id}/update
|
||||
controller: Chill\MainBundle\Controller\ScopeController::updateAction
|
||||
methods: [POST, PUT]
|
54
src/Bundle/ChillMainBundle/config/routes/user.yaml
Normal file
54
src/Bundle/ChillMainBundle/config/routes/user.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
admin_user:
|
||||
path: /
|
||||
controller: Chill\MainBundle\Controller\UserController::indexAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 400
|
||||
label: List users
|
||||
|
||||
admin_user_show:
|
||||
path: /{id}/show
|
||||
controller: Chill\MainBundle\Controller\UserController::showAction
|
||||
|
||||
admin_user_new:
|
||||
path: /new
|
||||
controller: Chill\MainBundle\Controller\UserController::newAction
|
||||
options:
|
||||
menus:
|
||||
admin_permissions:
|
||||
order: 401
|
||||
label: Add a new user
|
||||
|
||||
admin_user_create:
|
||||
path: /create
|
||||
controller: Chill\MainBundle\Controller\UserController::createAction
|
||||
methods: POST
|
||||
|
||||
admin_user_edit:
|
||||
path: /{id}/edit
|
||||
controller: Chill\MainBundle\Controller\UserController::editAction
|
||||
|
||||
admin_user_edit_password:
|
||||
path: /{id}/edit_password
|
||||
controller: Chill\MainBundle\Controller\UserController::editPasswordAction
|
||||
|
||||
admin_user_update:
|
||||
path: /{id}/update
|
||||
controller: Chill\MainBundle\Controller\UserController::updateAction
|
||||
methods: [POST, PUT]
|
||||
|
||||
admin_user_update_password:
|
||||
path: /{id}/update_password
|
||||
controller: Chill\MainBundle\Controller\UserController::updatePasswordAction
|
||||
methods: [POST, PUT]
|
||||
|
||||
admin_user_delete_group_center:
|
||||
path: /{uid}/delete_link_groupcenter/{gcid}
|
||||
controller: Chill\MainBundle\Controller\UserController::deleteLinkGroupCenterAction
|
||||
methods: [DELETE]
|
||||
|
||||
admin_user_add_group_center:
|
||||
path: /{uid}/add_link_groupcenter
|
||||
controller: Chill\MainBundle\Controller\UserController::addLinkGroupCenterAction
|
||||
methods: [POST]
|
55
src/Bundle/ChillMainBundle/config/services.yaml
Normal file
55
src/Bundle/ChillMainBundle/config/services.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
parameters:
|
||||
# cl_chill_main.example.class: Chill\MainBundle\Example
|
||||
|
||||
services:
|
||||
|
||||
chill.main.helper.translatable_string:
|
||||
class: Chill\MainBundle\Templating\TranslatableStringHelper
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- "@translator.default"
|
||||
|
||||
Chill\MainBundle\Templating\TranslatableStringHelper: '@chill.main.helper.translatable_string'
|
||||
|
||||
chill.main.twig.translatable_string:
|
||||
class: Chill\MainBundle\Templating\TranslatableStringTwig
|
||||
arguments:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
calls:
|
||||
- [ setContainer, ["@service_container"]]
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
chill.main.twig.widget:
|
||||
class: Chill\MainBundle\Templating\Widget\WidgetRenderingTwig
|
||||
arguments:
|
||||
- "@event_dispatcher"
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
chill.main.twig.csv_cell:
|
||||
class: Chill\MainBundle\Templating\CSVCellTwig
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
chill.main.form.data_transformer.center_transformer:
|
||||
class: Chill\MainBundle\Form\Type\DataTransformer\CenterTransformer
|
||||
arguments:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
|
||||
chill.main.validator.role_scope_scope_presence:
|
||||
class: Chill\MainBundle\Validation\Validator\RoleScopeScopePresence
|
||||
arguments:
|
||||
- "@chill.main.role_provider"
|
||||
- "@logger"
|
||||
- "@translator"
|
||||
tags:
|
||||
- { name: validator.constraint_validator, alias: 'role_scope_scope_presence' }
|
||||
|
||||
Chill\MainBundle\Export\ExportManager:
|
||||
arguments:
|
||||
- "@logger"
|
||||
- "@doctrine.orm.entity_manager"
|
||||
- "@security.authorization_checker"
|
||||
- "@chill.main.security.authorization.helper"
|
||||
- "@security.token_storage"
|
7
src/Bundle/ChillMainBundle/config/services/cache.yaml
Normal file
7
src/Bundle/ChillMainBundle/config/services/cache.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
chill_main.tag_aware_cache:
|
||||
class: Symfony\Component\Cache\Adapter\TagAwareAdapter
|
||||
arguments:
|
||||
- '@cache.user_data'
|
||||
- '@cache.tags'
|
||||
Symfony\Component\Cache\Adapter\TagAwareAdapter: '@chill_main.tag_aware_cache'
|
46
src/Bundle/ChillMainBundle/config/services/command.yaml
Normal file
46
src/Bundle/ChillMainBundle/config/services/command.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
Chill\MainBundle\Command\ChillImportUsersCommand:
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
$passwordEncoder: '@Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface'
|
||||
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
|
||||
tags:
|
||||
- { name: console.command }
|
||||
|
||||
Chill\MainBundle\Command\ChillUserSendRenewPasswordCodeCommand:
|
||||
arguments:
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
$recoverPasswordHelper: '@Chill\MainBundle\Security\PasswordRecover\RecoverPasswordHelper'
|
||||
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
||||
tags:
|
||||
- { name: console.command }
|
||||
|
||||
Chill\MainBundle\Command\LoadAndUpdateLanguagesCommand:
|
||||
arguments:
|
||||
$entityManager: '@doctrine.orm.entity_manager'
|
||||
$availableLanguages: '%chill_main.available_languages%'
|
||||
tags:
|
||||
- { name: console.command }
|
||||
|
||||
Chill\MainBundle\Command\LoadCountriesCommand:
|
||||
arguments:
|
||||
$entityManager: '@doctrine.orm.entity_manager'
|
||||
$availableLanguages: '%chill_main.available_languages%'
|
||||
tags:
|
||||
- { name: console.command }
|
||||
|
||||
|
||||
Chill\MainBundle\Command\LoadPostalCodesCommand:
|
||||
arguments:
|
||||
$entityManager: '@doctrine.orm.entity_manager'
|
||||
$validator: '@Symfony\Component\Validator\Validator\ValidatorInterface'
|
||||
tags:
|
||||
- { name: console.command }
|
||||
|
||||
Chill\MainBundle\Command\SetPasswordCommand:
|
||||
arguments:
|
||||
$entityManager: '@doctrine.orm.entity_manager'
|
||||
tags:
|
||||
- { name: console.command }
|
32
src/Bundle/ChillMainBundle/config/services/controller.yaml
Normal file
32
src/Bundle/ChillMainBundle/config/services/controller.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
services:
|
||||
|
||||
Chill\MainBundle\Controller\:
|
||||
autowire: true
|
||||
resource: '../../Controller'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\MainBundle\Controller\PasswordController:
|
||||
autowire: true
|
||||
arguments:
|
||||
$chillLogger: '@monolog.logger.chill'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\MainBundle\Controller\SearchController:
|
||||
arguments:
|
||||
$searchProvider: '@chill_main.search_provider'
|
||||
$translator: '@Symfony\Contracts\Translation\TranslatorInterface'
|
||||
$paginatorFactory: '@Chill\MainBundle\Pagination\PaginatorFactory'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\MainBundle\Controller\PermissionsGroupController:
|
||||
arguments:
|
||||
$translatableStringHelper: '@Chill\MainBundle\Templating\TranslatableStringHelper'
|
||||
$roleProvider: '@chill.main.role_provider'
|
||||
$roleHierarchy: '@security.role_hierarchy'
|
||||
$translator: '@Symfony\Contracts\Translation\TranslatorInterface'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\MainBundle\Controller\UserController:
|
||||
arguments:
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
tags: ['controller.service_arguments']
|
16
src/Bundle/ChillMainBundle/config/services/crud.yaml
Normal file
16
src/Bundle/ChillMainBundle/config/services/crud.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
Chill\MainBundle\CRUD\Routing\CRUDRoutesLoader:
|
||||
arguments:
|
||||
$config: '%chill_main_crud_route_loader_config%'
|
||||
tags: [ routing.loader ]
|
||||
|
||||
Chill\MainBundle\CRUD\Resolver\Resolver:
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
$crudConfig: '%chill_main_crud_route_loader_config%'
|
||||
|
||||
Chill\MainBundle\CRUD\Templating\TwigCRUDResolver:
|
||||
arguments:
|
||||
$resolver: '@Chill\MainBundle\CRUD\Resolver\Resolver'
|
||||
tags:
|
||||
- { name: twig.extension }
|
3
src/Bundle/ChillMainBundle/config/services/doctrine.yaml
Normal file
3
src/Bundle/ChillMainBundle/config/services/doctrine.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
services:
|
||||
'Chill\MainBundle\Doctrine\Migrations\VersionComparator': ~
|
46
src/Bundle/ChillMainBundle/config/services/export.yaml
Normal file
46
src/Bundle/ChillMainBundle/config/services/export.yaml
Normal file
@@ -0,0 +1,46 @@
|
||||
services:
|
||||
chill.main.export_element_validator:
|
||||
class: Chill\MainBundle\Validator\Constraints\Export\ExportElementConstraintValidator
|
||||
tags:
|
||||
- { name: validator.constraint_validator }
|
||||
|
||||
# deprecated in favor of spreadsheet_formatter
|
||||
# chill.main.export.csv_formatter:
|
||||
# class: Chill\MainBundle\Export\Formatter\CSVFormatter
|
||||
# arguments:
|
||||
# - "@translator"
|
||||
# tags:
|
||||
# - { name: chill.export_formatter, alias: 'csv' }
|
||||
|
||||
chill.main.export.spreadsheet_formatter:
|
||||
class: Chill\MainBundle\Export\Formatter\SpreadSheetFormatter
|
||||
arguments:
|
||||
$translatorInterface: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
$exportManager: '@Chill\MainBundle\Export\ExportManager'
|
||||
tags:
|
||||
- { name: chill.export_formatter, alias: 'spreadsheet' }
|
||||
|
||||
chill.main.export.list_formatter:
|
||||
class: Chill\MainBundle\Export\Formatter\CSVListFormatter
|
||||
arguments:
|
||||
$translatorInterface: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
$exportManager: '@Chill\MainBundle\Export\ExportManager'
|
||||
tags:
|
||||
- { name: chill.export_formatter, alias: 'csvlist' }
|
||||
|
||||
chill.main.export.list_spreadsheet_formatter:
|
||||
class: Chill\MainBundle\Export\Formatter\SpreadsheetListFormatter
|
||||
arguments:
|
||||
$translatorInterface: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
$exportManager: '@Chill\MainBundle\Export\ExportManager'
|
||||
tags:
|
||||
- { name: chill.export_formatter, alias: 'spreadlist' }
|
||||
|
||||
chill.main.export.pivoted_list_formatter:
|
||||
class: Chill\MainBundle\Export\Formatter\CSVPivotedListFormatter
|
||||
arguments:
|
||||
$translatorInterface: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
$exportManager: '@Chill\MainBundle\Export\ExportManager'
|
||||
tags:
|
||||
- { name: chill.export_formatter, alias: 'csv_pivoted_list' }
|
||||
|
4
src/Bundle/ChillMainBundle/config/services/fixtures.yaml
Normal file
4
src/Bundle/ChillMainBundle/config/services/fixtures.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
Chill\MainBundle\DataFixtures\ORM\:
|
||||
resource: ../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
150
src/Bundle/ChillMainBundle/config/services/form.yaml
Normal file
150
src/Bundle/ChillMainBundle/config/services/form.yaml
Normal file
@@ -0,0 +1,150 @@
|
||||
services:
|
||||
chill.main.form.type.translatable.string:
|
||||
class: Chill\MainBundle\Form\Type\TranslatableStringFormType
|
||||
arguments:
|
||||
- "%chill_main.available_languages%"
|
||||
#- "%framework.translator.fallback%"
|
||||
- "@translator.default"
|
||||
tags:
|
||||
- { name: form.type, alias: translatable_string }
|
||||
|
||||
chill.main.form.type.select2choice:
|
||||
class: Chill\MainBundle\Form\Type\Select2ChoiceType
|
||||
tags:
|
||||
- {name: form.type, alias: select2_choice}
|
||||
|
||||
chill.main.form.type.select2entity:
|
||||
class: Chill\MainBundle\Form\Type\Select2EntityType
|
||||
tags:
|
||||
- {name: form.type, alias: select2_entity }
|
||||
|
||||
chill.main.form.type.select2country:
|
||||
class: Chill\MainBundle\Form\Type\Select2CountryType
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- "@doctrine.orm.entity_manager"
|
||||
tags:
|
||||
- { name: form.type, alias: select2_chill_country }
|
||||
|
||||
chill.main.form.type.select2language:
|
||||
class: Chill\MainBundle\Form\Type\Select2LanguageType
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- "@doctrine.orm.entity_manager"
|
||||
tags:
|
||||
- { name: form.type, alias: select2_chill_language }
|
||||
|
||||
chill.main.form.type.center:
|
||||
class: Chill\MainBundle\Form\Type\CenterType
|
||||
arguments:
|
||||
- "@security.token_storage"
|
||||
- "@chill.main.form.data_transformer.center_transformer"
|
||||
tags:
|
||||
- { name: form.type, alias: center }
|
||||
|
||||
chill.main.form.type.composed_role_scope:
|
||||
class: Chill\MainBundle\Form\Type\ComposedRoleScopeType
|
||||
arguments:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
- "@chill.main.role_provider"
|
||||
tags:
|
||||
- { name: form.type, alias: composed_role_scope }
|
||||
|
||||
|
||||
chill.main.form.type.postal_code_type:
|
||||
class: Chill\MainBundle\Form\Type\PostalCodeType
|
||||
arguments:
|
||||
- "@chill.main.helper.translatable_string"
|
||||
- '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
|
||||
- '@chill.main.form.choice_loader.postal_code'
|
||||
- '@Symfony\Component\Translation\TranslatorInterface'
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.form.choice_loader.postal_code:
|
||||
class: Chill\MainBundle\Form\ChoiceLoader\PostalCodeChoiceLoader
|
||||
arguments:
|
||||
- '@Chill\MainBundle\Repository\PostalCodeRepository'
|
||||
|
||||
chill.main.form.type.export:
|
||||
class: Chill\MainBundle\Form\Type\Export\ExportType
|
||||
tags:
|
||||
- { name: form.type }
|
||||
arguments:
|
||||
- '@Chill\MainBundle\Export\ExportManager'
|
||||
|
||||
chill.main.form.pick_formatter_type:
|
||||
class: Chill\MainBundle\Form\Type\Export\PickFormatterType
|
||||
tags:
|
||||
- { name: form.type }
|
||||
arguments:
|
||||
- '@Chill\MainBundle\Export\ExportManager'
|
||||
|
||||
chill.main.form.pick_centers_type:
|
||||
class: Chill\MainBundle\Form\Type\Export\PickCenterType
|
||||
arguments:
|
||||
- "@security.token_storage"
|
||||
- '@Chill\MainBundle\Export\ExportManager'
|
||||
- "@chill.main.security.authorization.helper"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.form.formatter_type:
|
||||
class: Chill\MainBundle\Form\Type\Export\FormatterType
|
||||
tags:
|
||||
- { name: form.type }
|
||||
arguments:
|
||||
- '@Chill\MainBundle\Export\ExportManager'
|
||||
|
||||
chill.main.form.date_type:
|
||||
class: Chill\MainBundle\Form\Type\ChillDateType
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.form.pick_user_type:
|
||||
class: Chill\MainBundle\Form\Type\UserPickerType
|
||||
arguments:
|
||||
- "@chill.main.security.authorization.helper"
|
||||
- "@security.token_storage"
|
||||
- "@chill.main.user_repository"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.form.pick_scope_type:
|
||||
class: Chill\MainBundle\Form\Type\ScopePickerType
|
||||
arguments:
|
||||
- "@chill.main.security.authorization.helper"
|
||||
- "@security.token_storage"
|
||||
- "@chill.main.scope_repository"
|
||||
- "@chill.main.helper.translatable_string"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
chill.main.form.advanced_search_type:
|
||||
class: Chill\MainBundle\Form\AdvancedSearchType
|
||||
arguments:
|
||||
- "@chill_main.search_provider"
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
Chill\MainBundle\Form\UserPasswordType:
|
||||
arguments:
|
||||
$chillLogger: '@monolog.logger.chill'
|
||||
$passwordEncoder: '@Symfony\Component\Security\Core\Encoder\UserPasswordEncoderInterface'
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
Chill\MainBundle\Form\PermissionsGroupType:
|
||||
tags:
|
||||
- { name: form.type }
|
||||
|
||||
Chill\MainBundle\Form\Extension\CKEditorExtension:
|
||||
tags:
|
||||
- { name: form.type_extension, extended_type: Symfony\Component\Form\Extension\Core\Type\TextareaType }
|
||||
|
||||
chill.main.form.type.comment:
|
||||
class: Chill\MainBundle\Form\Type\CommentType
|
||||
arguments:
|
||||
- "@security.token_storage"
|
||||
tags:
|
||||
- { name: form.type }
|
4
src/Bundle/ChillMainBundle/config/services/logger.yaml
Normal file
4
src/Bundle/ChillMainBundle/config/services/logger.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
chill.main.logger:
|
||||
# a logger to log events from the app (deletion, remove, etc.)
|
||||
alias: monolog.logger.chill
|
19
src/Bundle/ChillMainBundle/config/services/menu.yaml
Normal file
19
src/Bundle/ChillMainBundle/config/services/menu.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
Chill\MainBundle\Routing\MenuBuilder\UserMenuBuilder:
|
||||
arguments:
|
||||
$tokenStorage: '@Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface'
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
||||
|
||||
Chill\MainBundle\Routing\MenuBuilder\SectionMenuBuilder:
|
||||
arguments:
|
||||
$authorizationChecker: '@Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'
|
||||
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
||||
|
||||
Chill\MainBundle\Routing\MenuBuilder\AdminSectionMenuBuilder:
|
||||
arguments:
|
||||
$authorizationChecker: '@Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
10
src/Bundle/ChillMainBundle/config/services/notification.yaml
Normal file
10
src/Bundle/ChillMainBundle/config/services/notification.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
Chill\MainBundle\Notification\Mailer:
|
||||
arguments:
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
$twig: '@Twig\Environment'
|
||||
$mailer: '@swiftmailer.mailer.default'
|
||||
# $mailerTransporter: '@swiftmailer.transport'
|
||||
$router: '@Symfony\Component\Routing\RouterInterface'
|
||||
$translator: '@Symfony\Component\Translation\TranslatorInterface'
|
||||
$routeParameters: '%chill_main.notifications%'
|
14
src/Bundle/ChillMainBundle/config/services/pagination.yaml
Normal file
14
src/Bundle/ChillMainBundle/config/services/pagination.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
chill_main.paginator_factory:
|
||||
class: Chill\MainBundle\Pagination\PaginatorFactory
|
||||
public: true
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- "@router"
|
||||
- "%chill_main.pagination.item_per_page%"
|
||||
Chill\MainBundle\Pagination\PaginatorFactory: '@chill_main.paginator_factory'
|
||||
|
||||
chill_main.paginator.twig_extensions:
|
||||
class: Chill\MainBundle\Pagination\ChillPaginationTwig
|
||||
tags:
|
||||
- { name: twig.extension }
|
19
src/Bundle/ChillMainBundle/config/services/phonenumber.yaml
Normal file
19
src/Bundle/ChillMainBundle/config/services/phonenumber.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
Chill\MainBundle\Phonenumber\PhonenumberHelper:
|
||||
arguments:
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
$config: '%chill_main.phone_helper%'
|
||||
$cachePool: '@cache.user_data'
|
||||
|
||||
Chill\MainBundle\Phonenumber\Templating:
|
||||
arguments:
|
||||
$phonenumberHelper: '@Chill\MainBundle\Phonenumber\PhonenumberHelper'
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Validation\Validator\ValidPhonenumber:
|
||||
arguments:
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
$phonenumberHelper: '@Chill\MainBundle\Phonenumber\PhonenumberHelper'
|
||||
tags:
|
||||
- { name: validator.constraint_validator }
|
10
src/Bundle/ChillMainBundle/config/services/redis.yaml
Normal file
10
src/Bundle/ChillMainBundle/config/services/redis.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
Chill\MainBundle\Redis\RedisConnectionFactory:
|
||||
arguments:
|
||||
$parameters: "%chill_main.redis%"
|
||||
tags:
|
||||
- { name: kernel.event_subcriber }
|
||||
|
||||
Chill\MainBundle\Redis\ChillRedis:
|
||||
factory: [ '@Chill\MainBundle\Redis\RedisConnectionFactory', 'create' ]
|
||||
|
35
src/Bundle/ChillMainBundle/config/services/repositories.yaml
Normal file
35
src/Bundle/ChillMainBundle/config/services/repositories.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
services:
|
||||
chill.main.countries_repository:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ["@doctrine.orm.entity_manager", getRepository]
|
||||
arguments:
|
||||
- "Chill\\MainBundle\\Entity\\Country"
|
||||
|
||||
chill.main.user_repository:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ["@doctrine.orm.entity_manager", getRepository]
|
||||
arguments:
|
||||
- "Chill\\MainBundle\\Entity\\User"
|
||||
|
||||
chill.main.scope_repository:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ["@doctrine.orm.entity_manager", getRepository]
|
||||
arguments:
|
||||
- "Chill\\MainBundle\\Entity\\Scope"
|
||||
|
||||
chill.main.postalcode_repository:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ["@doctrine.orm.entity_manager", getRepository]
|
||||
arguments:
|
||||
- "Chill\\MainBundle\\Entity\\PostalCode"
|
||||
|
||||
Chill\MainBundle\Repository\PostalCodeRepository: '@chill.main.postalcode_repository'
|
||||
|
||||
chill.main.center_repository:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ["@doctrine.orm.entity_manager", getRepository]
|
||||
arguments:
|
||||
- "Chill\\MainBundle\\Entity\\Center"
|
||||
|
||||
Chill\MainBundle\Repository\CenterRepository: '@chill.main.center_repository'
|
||||
|
24
src/Bundle/ChillMainBundle/config/services/routing.yaml
Normal file
24
src/Bundle/ChillMainBundle/config/services/routing.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
chill.main.menu_composer:
|
||||
class: Chill\MainBundle\Routing\MenuComposer
|
||||
arguments:
|
||||
- '@Symfony\Component\Routing\RouterInterface'
|
||||
- '@Knp\Menu\FactoryInterface'
|
||||
- '@Symfony\Component\Translation\TranslatorInterface'
|
||||
Chill\MainBundle\Routing\MenuComposer: '@chill.main.menu_composer'
|
||||
|
||||
chill.main.routes_loader:
|
||||
class: Chill\MainBundle\Routing\Loader\ChillRoutesLoader
|
||||
arguments:
|
||||
- "%chill_main.routing.resources%"
|
||||
tags:
|
||||
- { name: routing.loader }
|
||||
|
||||
chill.main.twig.chill_menu:
|
||||
class: Chill\MainBundle\Routing\MenuTwig
|
||||
arguments:
|
||||
- "@chill.main.menu_composer"
|
||||
calls:
|
||||
- [setContainer, ["@service_container"]]
|
||||
tags:
|
||||
- { name: twig.extension }
|
3
src/Bundle/ChillMainBundle/config/services/search.yaml
Normal file
3
src/Bundle/ChillMainBundle/config/services/search.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
services:
|
||||
chill_main.search_provider:
|
||||
class: Chill\MainBundle\Search\SearchProvider
|
52
src/Bundle/ChillMainBundle/config/services/security.yaml
Normal file
52
src/Bundle/ChillMainBundle/config/services/security.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
services:
|
||||
chill.main.security.authorization.helper:
|
||||
class: Chill\MainBundle\Security\Authorization\AuthorizationHelper
|
||||
arguments:
|
||||
$roleHierarchy: "@security.role_hierarchy"
|
||||
$hierarchy: "%security.role_hierarchy.roles%"
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
Chill\MainBundle\Security\Authorization\AuthorizationHelper: '@chill.main.security.authorization.helper'
|
||||
|
||||
chill.main.role_provider:
|
||||
class: Chill\MainBundle\Security\RoleProvider
|
||||
|
||||
chill.main.user_provider:
|
||||
class: Chill\MainBundle\Security\UserProvider\UserProvider
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
|
||||
Chill\MainBundle\Security\Authorization\ChillExportVoter:
|
||||
arguments:
|
||||
$authorizationHelper: '@Chill\MainBundle\Security\Authorization\AuthorizationHelper'
|
||||
tags:
|
||||
- { name: security.voter }
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\TokenManager:
|
||||
arguments:
|
||||
$secret: '%kernel.secret%'
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\RecoverPasswordHelper:
|
||||
arguments:
|
||||
$tokenManager: '@Chill\MainBundle\Security\PasswordRecover\TokenManager'
|
||||
$urlGenerator: '@Symfony\Component\Routing\Generator\UrlGeneratorInterface'
|
||||
$mailer: '@Chill\MainBundle\Notification\Mailer'
|
||||
$routeParameters: "%chill_main.notifications%"
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\PasswordRecoverEventSubscriber:
|
||||
arguments:
|
||||
$locker: '@Chill\MainBundle\Security\PasswordRecover\PasswordRecoverLocker'
|
||||
tags:
|
||||
- { name: kernel.event_subscriber }
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\PasswordRecoverLocker:
|
||||
arguments:
|
||||
$chillRedis: '@Chill\MainBundle\Redis\ChillRedis'
|
||||
$logger: '@Psr\Log\LoggerInterface'
|
||||
|
||||
Chill\MainBundle\Security\PasswordRecover\PasswordRecoverVoter:
|
||||
arguments:
|
||||
$locker: '@Chill\MainBundle\Security\PasswordRecover\PasswordRecoverLocker'
|
||||
$requestStack: '@Symfony\Component\HttpFoundation\RequestStack'
|
||||
tags:
|
||||
- { name: security.voter }
|
38
src/Bundle/ChillMainBundle/config/services/templating.yaml
Normal file
38
src/Bundle/ChillMainBundle/config/services/templating.yaml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
# twig_intl:
|
||||
# class: Twig_Extensions_Extension_Intl
|
||||
# tags:
|
||||
# - { name: twig.extension }
|
||||
#
|
||||
# twig_date:
|
||||
# class: Twig_Extensions_Extension_Date
|
||||
# arguments:
|
||||
# - "@translator"
|
||||
# tags:
|
||||
# - { name: twig.extension }
|
||||
#
|
||||
# twig_text:
|
||||
# class: Twig_Extensions_Extension_Text
|
||||
# tags:
|
||||
# - { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\ChillTwigHelper:
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\ChillTwigRoutingHelper:
|
||||
arguments:
|
||||
$requestStack: '@Symfony\Component\HttpFoundation\RequestStack'
|
||||
$originalExtension: '@twig.extension.routing'
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\Entity\ChillEntityRenderExtension:
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
Chill\MainBundle\Templating\Entity\CommentRender:
|
||||
arguments:
|
||||
- '@chill.main.user_repository'
|
||||
tags:
|
||||
- { name: 'chill.render_entity' }
|
7
src/Bundle/ChillMainBundle/config/services/timeline.yaml
Normal file
7
src/Bundle/ChillMainBundle/config/services/timeline.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
services:
|
||||
chill_main.timeline_builder:
|
||||
class: Chill\MainBundle\Timeline\TimelineBuilder
|
||||
arguments:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
calls:
|
||||
- [ setContainer, ["@service_container"]]
|
13
src/Bundle/ChillMainBundle/config/services/validator.yaml
Normal file
13
src/Bundle/ChillMainBundle/config/services/validator.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
services:
|
||||
chill_main.validator_user_circle_consistency:
|
||||
class: Chill\MainBundle\Validator\Constraints\Entity\UserCircleConsistencyValidator
|
||||
arguments:
|
||||
- "@chill.main.security.authorization.helper"
|
||||
tags:
|
||||
- { name: "validator.constraint_validator" }
|
||||
|
||||
Chill\MainBundle\Validation\Validator\UserUniqueEmailAndUsername:
|
||||
arguments:
|
||||
$em: '@Doctrine\ORM\EntityManagerInterface'
|
||||
tags:
|
||||
- { name: "validator.constraint_validator" }
|
2
src/Bundle/ChillMainBundle/config/services/widget.yaml
Normal file
2
src/Bundle/ChillMainBundle/config/services/widget.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
services:
|
||||
Chill\MainBundle\Templating\UI\CountNotificationUser: ~
|
53
src/Bundle/ChillMainBundle/config/validation.yaml
Normal file
53
src/Bundle/ChillMainBundle/config/validation.yaml
Normal file
@@ -0,0 +1,53 @@
|
||||
Chill\MainBundle\Entity\PermissionsGroup:
|
||||
properties:
|
||||
name:
|
||||
- NotBlank: ~
|
||||
- Length:
|
||||
max: 50
|
||||
roleScopes:
|
||||
- Valid: ~
|
||||
constraints:
|
||||
- Callback:
|
||||
callback: isRoleScopePresentOnce
|
||||
|
||||
Chill\MainBundle\Entity\User:
|
||||
properties:
|
||||
username:
|
||||
- Length:
|
||||
max: 70
|
||||
min: 3
|
||||
email:
|
||||
- Email: ~
|
||||
constraints:
|
||||
- Callback:
|
||||
callback: isGroupCenterPresentOnce
|
||||
- \Chill\MainBundle\Validation\Constraint\UserUniqueEmailAndUsernameConstraint: ~
|
||||
|
||||
Chill\MainBundle\Entity\RoleScope:
|
||||
constraints:
|
||||
- \Chill\MainBundle\Validation\Constraint\RoleScopeScopePresenceConstraint: ~
|
||||
|
||||
Chill\MainBundle\Entity\Center:
|
||||
properties:
|
||||
name:
|
||||
- NotBlank: ~
|
||||
- Length:
|
||||
max: 50
|
||||
min: 2
|
||||
|
||||
Chill\MainBundle\Entity\Address:
|
||||
constraints:
|
||||
- Callback: validate
|
||||
|
||||
Chill\MainBundle\Entity\PostalCode:
|
||||
properties:
|
||||
name:
|
||||
- Length:
|
||||
max: 250
|
||||
min: 2
|
||||
code:
|
||||
- Length:
|
||||
min: 2
|
||||
max: 100
|
||||
country:
|
||||
- NotNull: ~
|
Reference in New Issue
Block a user