@@ -483,15 +483,15 @@ rendered.
483483
484484 .. code-block :: yaml
485485
486- # app/ config/config.yml
486+ # config/packages/twig.yaml
487487 twig :
488488 form_themes :
489489 - ' form/fields.html.twig'
490490 # ...
491491
492492 .. code-block :: xml
493493
494- <!-- app/ config/config .xml -->
494+ <!-- config/packages/twig .xml -->
495495 <?xml version =" 1.0" encoding =" UTF-8" ?>
496496 <container xmlns =" http://symfony.com/schema/dic/services"
497497 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -509,7 +509,7 @@ rendered.
509509
510510 .. code-block :: php
511511
512- // app/ config/config .php
512+ // config/packages/twig .php
513513 $container->loadFromExtension('twig', array(
514514 'form_themes' => array(
515515 'form/fields.html.twig',
@@ -526,15 +526,15 @@ resource to use such a layout:
526526
527527 .. code-block :: yaml
528528
529- # app/ config/config.yml
529+ # config/packages/twig.yaml
530530 twig :
531531 form_themes :
532532 - ' form_table_layout.html.twig'
533533 # ...
534534
535535 .. code-block :: xml
536536
537- <!-- app/ config/config .xml -->
537+ <!-- config/packages/twig .xml -->
538538 <?xml version =" 1.0" encoding =" UTF-8" ?>
539539 <container xmlns =" http://symfony.com/schema/dic/services"
540540 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -552,7 +552,7 @@ resource to use such a layout:
552552
553553 .. code-block :: php
554554
555- // app/ config/config .php
555+ // config/packages/twig .php
556556 $container->loadFromExtension('twig', array(
557557 'form_themes' => array(
558558 'form_table_layout.html.twig',
@@ -575,24 +575,24 @@ PHP
575575~~~
576576
577577By using the following configuration, any customized form fragments inside the
578- ``templates/Form `` folder will be used globally when a
578+ ``templates/form `` folder will be used globally when a
579579form is rendered.
580580
581581.. configuration-block ::
582582
583583 .. code-block :: yaml
584584
585- # app/ config/config.yml
585+ # config/packages/framework.yaml
586586 framework :
587587 templating :
588588 form :
589589 resources :
590- - ' AppBundle :Form'
590+ - ' App :Form'
591591 # ...
592592
593593 .. code-block :: xml
594594
595- <!-- app/ config/config .xml -->
595+ <!-- config/packages/framework .xml -->
596596 <?xml version =" 1.0" encoding =" UTF-8" ?>
597597 <container xmlns =" http://symfony.com/schema/dic/services"
598598 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -605,7 +605,7 @@ form is rendered.
605605 <framework : config >
606606 <framework : templating >
607607 <framework : form >
608- <framework : resource >AppBundle :Form</framework : resource >
608+ <framework : resource >App :Form</framework : resource >
609609 </framework : form >
610610 </framework : templating >
611611 <!-- ... -->
@@ -614,13 +614,13 @@ form is rendered.
614614
615615 .. code-block :: php
616616
617- // app/ config/config .php
617+ // config/packages/framework .php
618618 // PHP
619619 $container->loadFromExtension('framework', array(
620620 'templating' => array(
621621 'form' => array(
622622 'resources' => array(
623- 'AppBundle :Form',
623+ 'App :Form',
624624 ),
625625 ),
626626 ),
@@ -636,7 +636,7 @@ resource to use such a layout:
636636
637637 .. code-block :: yaml
638638
639- # app/ config/config.yml
639+ # config/packages/framework.yaml
640640 framework :
641641 templating :
642642 form :
@@ -645,7 +645,7 @@ resource to use such a layout:
645645
646646 .. code-block :: xml
647647
648- <!-- app/ config/config .xml -->
648+ <!-- config/packages/framework .xml -->
649649 <?xml version =" 1.0" encoding =" UTF-8" ?>
650650 <container xmlns =" http://symfony.com/schema/dic/services"
651651 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -667,7 +667,7 @@ resource to use such a layout:
667667
668668 .. code-block :: php
669669
670- // app/ config/config .php
670+ // config/packages/framework .php
671671 $container->loadFromExtension('framework', array(
672672 'templating' => array(
673673 'form' => array(
0 commit comments