mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 00:23:50 +00:00
Merge branch 'upgrade-sf3' into edit-user-password
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
Chill\MainBundle\Entity\PostalCode:
|
||||
type: entity
|
||||
table: chill_main_postal_code
|
||||
repositoryClass: Chill\MainBundle\Repository\PostalCodeRepository
|
||||
indexes:
|
||||
- { name: search_name_code, columns: [ "code", "label" ] }
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
|
@@ -14,6 +14,21 @@ Chill\MainBundle\Entity\User:
|
||||
username:
|
||||
type: string
|
||||
length: 80
|
||||
usernameCanonical:
|
||||
name: username_canonical
|
||||
type: string
|
||||
length: 80
|
||||
unique: true
|
||||
email:
|
||||
type: string
|
||||
length: 150
|
||||
nullable: true
|
||||
emailCanonical:
|
||||
name: email_canonical
|
||||
type: string
|
||||
length: 150
|
||||
nullable: true
|
||||
unique: true
|
||||
password:
|
||||
type: string
|
||||
length: 255
|
||||
|
@@ -17,6 +17,10 @@ chill_main_admin:
|
||||
chill_main_exports:
|
||||
resource: "@ChillMainBundle/Resources/config/routing/exports.yml"
|
||||
prefix: "{_locale}/exports"
|
||||
|
||||
chill_postal_code:
|
||||
resource: "@ChillMainBundle/Resources/config/routing/postal-code.yml"
|
||||
prefix: "{_locale}/postal-code"
|
||||
|
||||
root:
|
||||
path: /
|
||||
@@ -32,12 +36,6 @@ chill_main_homepage_without_locale:
|
||||
chill_main_homepage:
|
||||
path: /{_locale}/homepage
|
||||
defaults: { _controller: ChillMainBundle:Default:index }
|
||||
options:
|
||||
menus:
|
||||
section:
|
||||
order: 10
|
||||
label: Homepage
|
||||
icons: [home]
|
||||
|
||||
|
||||
chill_main_admin_central:
|
||||
@@ -80,13 +78,7 @@ login_check:
|
||||
|
||||
logout:
|
||||
path: /logout
|
||||
options:
|
||||
menus:
|
||||
user:
|
||||
order: 10
|
||||
label: Logout
|
||||
icon: power-off
|
||||
|
||||
password:
|
||||
path: /password
|
||||
defaults: { _controller: ChillMainBundle:Password:userPassword }
|
||||
defaults: { _controller: ChillMainBundle:Password:userPassword }
|
@@ -1,12 +1,6 @@
|
||||
chill_main_export_index:
|
||||
path: /
|
||||
defaults: { _controller: ChillMainBundle:Export:index }
|
||||
options:
|
||||
menus:
|
||||
section:
|
||||
order: 20
|
||||
label: Export Menu
|
||||
icons: [upload]
|
||||
|
||||
chill_main_export_new:
|
||||
path: /new/{alias}
|
||||
|
4
Resources/config/routing/postal-code.yml
Normal file
4
Resources/config/routing/postal-code.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
chill_main_postal_code_search:
|
||||
path: /search
|
||||
defaults: { _controller: ChillMainBundle:PostalCode:search }
|
||||
|
@@ -2,27 +2,6 @@ parameters:
|
||||
# cl_chill_main.example.class: Chill\MainBundle\Example
|
||||
|
||||
services:
|
||||
chill.main.routes_loader:
|
||||
class: Chill\MainBundle\Routing\Loader\ChillRoutesLoader
|
||||
arguments:
|
||||
- "%chill_main.routing.resources%"
|
||||
tags:
|
||||
- { name: routing.loader }
|
||||
|
||||
chill.main.menu_composer:
|
||||
class: Chill\MainBundle\Routing\MenuComposer
|
||||
#must be set in function to avoid circular reference with chill.main.twig.chill_menu
|
||||
calls:
|
||||
- [setContainer, ["@service_container"]]
|
||||
|
||||
chill.main.twig.chill_menu:
|
||||
class: Chill\MainBundle\Routing\MenuTwig
|
||||
arguments:
|
||||
- "@chill.main.menu_composer"
|
||||
calls:
|
||||
- [setContainer, ["@service_container"]]
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
twig_intl:
|
||||
class: Twig_Extensions_Extension_Intl
|
||||
@@ -41,6 +20,7 @@ services:
|
||||
arguments:
|
||||
- "@request_stack"
|
||||
- "@translator.default"
|
||||
Chill\MainBundle\Templating\TranslatableStringHelper: '@chill.main.helper.translatable_string'
|
||||
|
||||
chill.main.twig.translatable_string:
|
||||
class: Chill\MainBundle\Templating\TranslatableStringTwig
|
||||
@@ -75,15 +55,7 @@ services:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
calls:
|
||||
- [ setContainer, ["@service_container"]]
|
||||
|
||||
chill.main.security.authorization.helper:
|
||||
class: Chill\MainBundle\Security\Authorization\AuthorizationHelper
|
||||
arguments:
|
||||
- "@security.role_hierarchy"
|
||||
|
||||
chill.main.role_provider:
|
||||
class: Chill\MainBundle\Security\RoleProvider
|
||||
|
||||
|
||||
chill.main.validator.role_scope_scope_presence:
|
||||
class: Chill\MainBundle\Validation\Validator\RoleScopeScopePresence
|
||||
arguments:
|
||||
|
6
Resources/config/services/controller.yml
Normal file
6
Resources/config/services/controller.yml
Normal file
@@ -0,0 +1,6 @@
|
||||
services:
|
||||
|
||||
Chill\MainBundle\Controller\:
|
||||
autowire: true
|
||||
resource: '../../../Controller'
|
||||
tags: ['controller.service_arguments']
|
4
Resources/config/services/fixtures.yml
Normal file
4
Resources/config/services/fixtures.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
services:
|
||||
Chill\MainBundle\DataFixtures\ORM\:
|
||||
resource: ../../../DataFixtures/ORM
|
||||
tags: [ 'doctrine.fixture.orm' ]
|
@@ -54,9 +54,17 @@ services:
|
||||
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
|
||||
arguments:
|
||||
|
10
Resources/config/services/menu.yml
Normal file
10
Resources/config/services/menu.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
services:
|
||||
Chill\MainBundle\Routing\MenuBuilder\UserMenuBuilder:
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
||||
|
||||
Chill\MainBundle\Routing\MenuBuilder\SectionMenuBuilder:
|
||||
arguments:
|
||||
$authorizationChecker: '@Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface'
|
||||
tags:
|
||||
- { name: 'chill.menu_builder' }
|
@@ -5,6 +5,7 @@ services:
|
||||
- "@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
|
||||
|
@@ -15,4 +15,13 @@ services:
|
||||
class: Doctrine\ORM\EntityRepository
|
||||
factory: ["@doctrine.orm.entity_manager", getRepository]
|
||||
arguments:
|
||||
- "Chill\\MainBundle\\Entity\\Scope"
|
||||
- "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'
|
||||
|
24
Resources/config/services/routing.yml
Normal file
24
Resources/config/services/routing.yml
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 }
|
23
Resources/config/services/security.yml
Normal file
23
Resources/config/services/security.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
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 }
|
||||
|
13
Resources/config/services/validator.yml
Normal file
13
Resources/config/services/validator.yml
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
Resources/config/services/widget.yml
Normal file
2
Resources/config/services/widget.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
services:
|
||||
Chill\MainBundle\Templating\UI\CountNotificationUser: ~
|
@@ -1,27 +1,32 @@
|
||||
Chill\MainBundle\Entity\PermissionsGroup:
|
||||
properties:
|
||||
name:
|
||||
name:
|
||||
- NotBlank: ~
|
||||
- Length:
|
||||
max: 50
|
||||
roleScopes:
|
||||
- Valid: ~
|
||||
constraints:
|
||||
- Callback: [isRoleScopePresentOnce]
|
||||
|
||||
- Callback:
|
||||
callback: isRoleScopePresentOnce
|
||||
|
||||
Chill\MainBundle\Entity\User:
|
||||
properties:
|
||||
username:
|
||||
- Length:
|
||||
- Length:
|
||||
max: 70
|
||||
min: 3
|
||||
email:
|
||||
- Email: ~
|
||||
constraints:
|
||||
- Callback: [isGroupCenterPresentOnce]
|
||||
- Callback:
|
||||
callback: isGroupCenterPresentOnce
|
||||
- \Chill\MainBundle\Validation\Constraint\UserUniqueEmailAndUsernameConstraint: ~
|
||||
|
||||
Chill\MainBundle\Entity\RoleScope:
|
||||
constraints:
|
||||
- \Chill\MainBundle\Validation\Constraint\RoleScopeScopePresenceConstraint: ~
|
||||
|
||||
|
||||
Chill\MainBundle\Entity\Center:
|
||||
properties:
|
||||
name:
|
||||
@@ -41,11 +46,11 @@ Chill\MainBundle\Entity\Address:
|
||||
validFrom:
|
||||
- NotNull: ~
|
||||
- Date: ~
|
||||
|
||||
|
||||
Chill\MainBundle\Entity\PostalCode:
|
||||
properties:
|
||||
name:
|
||||
- Length:
|
||||
- Length:
|
||||
max: 250
|
||||
min: 2
|
||||
code:
|
||||
@@ -53,4 +58,4 @@ Chill\MainBundle\Entity\PostalCode:
|
||||
min: 2
|
||||
max: 100
|
||||
country:
|
||||
- NotNull: ~
|
||||
- NotNull: ~
|
||||
|
Reference in New Issue
Block a user