rename service name chill.custom_field_compiler to chill.custom_field.provider

This commit is contained in:
Julien Fastré 2014-11-08 12:02:12 +01:00
parent 99a88e8705
commit 8b71a9e7cf
3 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class CustomFieldController extends Controller
//prepare form for new custom type //prepare form for new custom type
$fieldChoices = array(); $fieldChoices = array();
foreach ($this->get('chill.custom_field_compiler')->getAllFields() foreach ($this->get('chill.custom_field.provider')->getAllFields()
as $key => $customType) { as $key => $customType) {
$fieldChoices[$key] = $customType->getName(); $fieldChoices[$key] = $customType->getName();
} }

View File

@ -17,13 +17,13 @@ class CustomFieldCompilerPass implements CompilerPassInterface
{ {
public function process(ContainerBuilder $container) public function process(ContainerBuilder $container)
{ {
if (!$container->hasDefinition('chill.custom_field_compiler')) { if (!$container->hasDefinition('chill.custom_field.provider')) {
throw new \LogicException('service chill.custom_field_compiler ' throw new \LogicException('service chill.custom_field.provider '
. 'is not defined.'); . 'is not defined.');
} }
$definition = $container->getDefinition( $definition = $container->getDefinition(
'chill.custom_field_compiler' 'chill.custom_field.provider'
); );
$taggedServices = $container->findTaggedServiceIds( $taggedServices = $container->findTaggedServiceIds(

View File

@ -7,7 +7,7 @@ services:
tags: tags:
- { name: routing.loader } - { name: routing.loader }
chill.custom_field_compiler: chill.custom_field.provider:
class: Chill\CustomFieldsBundle\Service\CustomFieldProvider class: Chill\CustomFieldsBundle\Service\CustomFieldProvider
call: call:
- [setContainer, ["@service_container"]] - [setContainer, ["@service_container"]]
@ -15,7 +15,7 @@ services:
chill.custom_field.custom_field_choice_type: chill.custom_field.custom_field_choice_type:
class: Chill\CustomFieldsBundle\Form\CustomFieldType class: Chill\CustomFieldsBundle\Form\CustomFieldType
arguments: arguments:
- "@chill.custom_field_compiler" - "@chill.custom_field.provider"
tags: tags:
- { name: 'form.type', alias: 'custom_field_choice' } - { name: 'form.type', alias: 'custom_field_choice' }
@ -32,7 +32,7 @@ services:
class: Chill\CustomFieldsBundle\Form\Type\CustomFieldType class: Chill\CustomFieldsBundle\Form\Type\CustomFieldType
arguments: arguments:
- "@doctrine.orm.entity_manager" - "@doctrine.orm.entity_manager"
- "@chill.custom_field_compiler" - "@chill.custom_field.provider"
tags: tags:
- { name: 'form.type', alias: 'custom_field' } - { name: 'form.type', alias: 'custom_field' }