From 2bce02db7d38375ba3638e792a3979e0aa95ebb7 Mon Sep 17 00:00:00 2001 From: ubick Date: Tue, 20 Nov 2012 11:15:09 +0000 Subject: [PATCH] Update cookbook/form/create_form_type_extension.rst Fixed service class path from: Acme\DemoBundle\Form\Type\ImageTypeExtension to: Acme\DemoBundle\Form\Extension\ImageTypeExtension --- cookbook/form/create_form_type_extension.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/form/create_form_type_extension.rst b/cookbook/form/create_form_type_extension.rst index 116992d1280..b644978fae6 100644 --- a/cookbook/form/create_form_type_extension.rst +++ b/cookbook/form/create_form_type_extension.rst @@ -104,20 +104,20 @@ tag: services: acme_demo_bundle.image_type_extension: - class: Acme\DemoBundle\Form\Type\ImageTypeExtension + class: Acme\DemoBundle\Form\Extension\ImageTypeExtension tags: - { name: form.type_extension, alias: file } .. code-block:: xml - + .. code-block:: php $container - ->register('acme_demo_bundle.image_type_extension', 'Acme\DemoBundle\Form\Type\ImageTypeExtension') + ->register('acme_demo_bundle.image_type_extension', 'Acme\DemoBundle\Form\Extension\ImageTypeExtension') ->addTag('form.type_extension', array('alias' => 'file')); The ``alias`` key of the tag is the type of field that this extension should