mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 16:43:48 +00:00
move bundle to root dir for inclusion in packagist refs #259
This commit is contained in:
14
Resources/config/doctrine/Adress.orm.yml
Normal file
14
Resources/config/doctrine/Adress.orm.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
Chill\CustomFieldsBundle\Entity\Adress:
|
||||
type: entity
|
||||
table: null
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
data:
|
||||
type: string
|
||||
length: 255
|
||||
lifecycleCallbacks: { }
|
23
Resources/config/doctrine/BlopEntity.orm.yml
Normal file
23
Resources/config/doctrine/BlopEntity.orm.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
Chill\CustomFieldsBundle\Entity\BlopEntity:
|
||||
type: entity
|
||||
table: blop_entity
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
field1:
|
||||
type: string
|
||||
length: 255
|
||||
field2:
|
||||
type: string
|
||||
length: 255
|
||||
customField:
|
||||
type: json_array
|
||||
manyToOne:
|
||||
adress:
|
||||
targetEntity: Chill\CustomFieldsBundle\Entity\Adress
|
||||
cascade: [persist]
|
||||
lifecycleCallbacks: { }
|
16
Resources/config/doctrine/BlopEntity2.orm.yml
Normal file
16
Resources/config/doctrine/BlopEntity2.orm.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
Chill\CustomFieldsBundle\Entity\BlopEntity2:
|
||||
type: entity
|
||||
table: null
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
customFieldData:
|
||||
type: json_array
|
||||
lifecycleCallbacks:
|
||||
postLoad: [ loadCustomFieldConfig, unfoldCustomFieldData ]
|
||||
preFlush: [ preFlush ]
|
||||
prePersist: [ prePersist ]
|
30
Resources/config/doctrine/CustomField.orm.yml
Normal file
30
Resources/config/doctrine/CustomField.orm.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
Chill\CustomFieldsBundle\Entity\CustomField:
|
||||
type: entity
|
||||
table: null
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
name:
|
||||
type: json_array
|
||||
slug:
|
||||
type: string
|
||||
length: 255
|
||||
type:
|
||||
type: string
|
||||
length: 255
|
||||
active:
|
||||
type: boolean
|
||||
ordering:
|
||||
type: float
|
||||
options:
|
||||
type: json_array
|
||||
lifecycleCallbacks: { }
|
||||
manyToOne:
|
||||
customFieldGroup:
|
||||
targetEntity: Chill\CustomFieldsBundle\Entity\CustomFieldsGroup
|
||||
inversedBy: customFields
|
||||
#TODO: add an unique constraint slug+customFieldsGroup
|
19
Resources/config/doctrine/CustomFieldsGroup.orm.yml
Normal file
19
Resources/config/doctrine/CustomFieldsGroup.orm.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
Chill\CustomFieldsBundle\Entity\CustomFieldsGroup:
|
||||
type: entity
|
||||
table: null
|
||||
id:
|
||||
id:
|
||||
type: integer
|
||||
id: true
|
||||
generator:
|
||||
strategy: AUTO
|
||||
fields:
|
||||
name:
|
||||
type: json_array
|
||||
entity:
|
||||
type: string
|
||||
length: 255
|
||||
oneToMany:
|
||||
customFields:
|
||||
targetEntity: Chill\CustomFieldsBundle\Entity\CustomField
|
||||
mappedBy: customFieldGroup
|
20
Resources/config/routing.yml
Normal file
20
Resources/config/routing.yml
Normal file
@@ -0,0 +1,20 @@
|
||||
cl_custom_fields_customfieldsgroup:
|
||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfieldsgroup.yml"
|
||||
prefix: /customfieldsgroup
|
||||
|
||||
cl_custom_fields_blopentity2:
|
||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/blopentity2.yml"
|
||||
prefix: /blopentity2
|
||||
|
||||
cl_custom_fields_adress:
|
||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/adress.yml"
|
||||
prefix: /adress
|
||||
|
||||
cl_custom_fields_customfield:
|
||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/customfield.yml"
|
||||
prefix: /customfield
|
||||
|
||||
cl_custom_fields_blopentity:
|
||||
resource: "@ChillCustomFieldsBundle/Resources/config/routing/blopentity.yml"
|
||||
prefix: /
|
||||
|
30
Resources/config/routing/adress.yml
Normal file
30
Resources/config/routing/adress.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
adress:
|
||||
path: /
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:index" }
|
||||
|
||||
adress_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:show" }
|
||||
|
||||
adress_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:new" }
|
||||
|
||||
adress_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:create" }
|
||||
requirements: { _method: post }
|
||||
|
||||
adress_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:edit" }
|
||||
|
||||
adress_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:update" }
|
||||
requirements: { _method: post|put }
|
||||
|
||||
adress_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:Adress:delete" }
|
||||
requirements: { _method: post|delete }
|
42
Resources/config/routing/blopentity.yml
Normal file
42
Resources/config/routing/blopentity.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
blopentity:
|
||||
path: /
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:index" }
|
||||
|
||||
blopentity_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:show" }
|
||||
|
||||
blopentity_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:new" }
|
||||
|
||||
blopentity_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:create" }
|
||||
requirements: { _method: post }
|
||||
|
||||
blopentity_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:edit" }
|
||||
|
||||
blopentity_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:update" }
|
||||
requirements: { _method: post|put }
|
||||
|
||||
blopentity_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:delete" }
|
||||
requirements: { _method: post|delete }
|
||||
|
||||
blopentity_cfget:
|
||||
path: /{id}/cfget/{key}
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:cfGet" }
|
||||
|
||||
blopentity_cfset:
|
||||
path: /{id}/cfset/{key}/{value}
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity:cfSet" }
|
||||
|
||||
blopentity_addmany_to_one:
|
||||
path: /{id}/add/custom/field/{key}
|
||||
defaults: {_controller: "ChillCustomFieldsBundle:BlopEntity:addNewManyToOne"}
|
30
Resources/config/routing/blopentity2.yml
Normal file
30
Resources/config/routing/blopentity2.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
blopentity2:
|
||||
path: /
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:index" }
|
||||
|
||||
blopentity2_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:show" }
|
||||
|
||||
blopentity2_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:new" }
|
||||
|
||||
blopentity2_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:create" }
|
||||
requirements: { _method: post }
|
||||
|
||||
blopentity2_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:edit" }
|
||||
|
||||
blopentity2_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:update" }
|
||||
requirements: { _method: post|put }
|
||||
|
||||
blopentity2_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:BlopEntity2:delete" }
|
||||
requirements: { _method: post|delete }
|
30
Resources/config/routing/customfield.yml
Normal file
30
Resources/config/routing/customfield.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
customfield:
|
||||
path: /
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:index" }
|
||||
|
||||
customfield_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:show" }
|
||||
|
||||
customfield_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:new" }
|
||||
|
||||
customfield_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:create" }
|
||||
requirements: { _method: post }
|
||||
|
||||
customfield_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:edit" }
|
||||
|
||||
customfield_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:update" }
|
||||
requirements: { _method: post|put }
|
||||
|
||||
customfield_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomField:delete" }
|
||||
requirements: { _method: post|delete }
|
30
Resources/config/routing/customfieldsgroup.yml
Normal file
30
Resources/config/routing/customfieldsgroup.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
customfieldsgroup:
|
||||
path: /
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:index" }
|
||||
|
||||
customfieldsgroup_show:
|
||||
path: /{id}/show
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:show" }
|
||||
|
||||
customfieldsgroup_new:
|
||||
path: /new
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:new" }
|
||||
|
||||
customfieldsgroup_create:
|
||||
path: /create
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:create" }
|
||||
requirements: { _method: post }
|
||||
|
||||
customfieldsgroup_edit:
|
||||
path: /{id}/edit
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:edit" }
|
||||
|
||||
customfieldsgroup_update:
|
||||
path: /{id}/update
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:update" }
|
||||
requirements: { _method: post|put }
|
||||
|
||||
customfieldsgroup_delete:
|
||||
path: /{id}/delete
|
||||
defaults: { _controller: "ChillCustomFieldsBundle:CustomFieldsGroup:delete" }
|
||||
requirements: { _method: post|delete }
|
44
Resources/config/services.yml
Normal file
44
Resources/config/services.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
parameters:
|
||||
# cl_custom_fields.example.class: Chill\CustomFieldsBundle\Example
|
||||
|
||||
services:
|
||||
chill.custom_field_compiler:
|
||||
class: Chill\CustomFieldsBundle\Service\CustomFieldProvider
|
||||
call:
|
||||
- [setContainer, ["@service_container"]]
|
||||
|
||||
chill.custom_field.custom_field_choice_type:
|
||||
class: Chill\CustomFieldsBundle\Form\CustomFieldType
|
||||
arguments:
|
||||
- "@chill.custom_field_compiler"
|
||||
|
||||
tags:
|
||||
- { name: 'form.type', alias: 'custom_field_choice' }
|
||||
|
||||
chill.custom_field.custom_fields_group_type:
|
||||
class: Chill\CustomFieldsBundle\Form\CustomFieldsGroupType
|
||||
arguments:
|
||||
- %chill_custom_fields.customizables_entities%
|
||||
- "@translator"
|
||||
tags:
|
||||
- { name: 'form.type', alias: 'custom_fields_group' }
|
||||
|
||||
chill.custom_field.custom_field_type:
|
||||
class: Chill\CustomFieldsBundle\Form\Type\CustomFieldType
|
||||
arguments:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
- "@chill.custom_field_compiler"
|
||||
tags:
|
||||
- { name: 'form.type', alias: 'custom_field' }
|
||||
|
||||
chill.custom_field.text:
|
||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldText
|
||||
tags:
|
||||
- { name: 'chill.custom_field', type: 'text' }
|
||||
|
||||
chill.custom_field.address:
|
||||
class: Chill\CustomFieldsBundle\CustomFields\CustomFieldAddress
|
||||
arguments:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
tags:
|
||||
- { name: 'chill.custom_field', type: 'address' }
|
Reference in New Issue
Block a user