mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
rename service name chill.custom_field_compiler to chill.custom_field.provider
This commit is contained in:
parent
99a88e8705
commit
8b71a9e7cf
@ -27,7 +27,7 @@ class CustomFieldController extends Controller
|
||||
|
||||
//prepare form for new custom type
|
||||
$fieldChoices = array();
|
||||
foreach ($this->get('chill.custom_field_compiler')->getAllFields()
|
||||
foreach ($this->get('chill.custom_field.provider')->getAllFields()
|
||||
as $key => $customType) {
|
||||
$fieldChoices[$key] = $customType->getName();
|
||||
}
|
||||
|
@ -17,13 +17,13 @@ class CustomFieldCompilerPass implements CompilerPassInterface
|
||||
{
|
||||
public function process(ContainerBuilder $container)
|
||||
{
|
||||
if (!$container->hasDefinition('chill.custom_field_compiler')) {
|
||||
throw new \LogicException('service chill.custom_field_compiler '
|
||||
if (!$container->hasDefinition('chill.custom_field.provider')) {
|
||||
throw new \LogicException('service chill.custom_field.provider '
|
||||
. 'is not defined.');
|
||||
}
|
||||
|
||||
$definition = $container->getDefinition(
|
||||
'chill.custom_field_compiler'
|
||||
'chill.custom_field.provider'
|
||||
);
|
||||
|
||||
$taggedServices = $container->findTaggedServiceIds(
|
||||
|
@ -7,7 +7,7 @@ services:
|
||||
tags:
|
||||
- { name: routing.loader }
|
||||
|
||||
chill.custom_field_compiler:
|
||||
chill.custom_field.provider:
|
||||
class: Chill\CustomFieldsBundle\Service\CustomFieldProvider
|
||||
call:
|
||||
- [setContainer, ["@service_container"]]
|
||||
@ -15,7 +15,7 @@ services:
|
||||
chill.custom_field.custom_field_choice_type:
|
||||
class: Chill\CustomFieldsBundle\Form\CustomFieldType
|
||||
arguments:
|
||||
- "@chill.custom_field_compiler"
|
||||
- "@chill.custom_field.provider"
|
||||
|
||||
tags:
|
||||
- { name: 'form.type', alias: 'custom_field_choice' }
|
||||
@ -32,7 +32,7 @@ services:
|
||||
class: Chill\CustomFieldsBundle\Form\Type\CustomFieldType
|
||||
arguments:
|
||||
- "@doctrine.orm.entity_manager"
|
||||
- "@chill.custom_field_compiler"
|
||||
- "@chill.custom_field.provider"
|
||||
tags:
|
||||
- { name: 'form.type', alias: 'custom_field' }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user