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
$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();
}

View File

@ -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(

View File

@ -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' }