@@ -583,12 +583,12 @@ requires:
583
583
.. code-block :: xml
584
584
585
585
<!-- config/packages/workflow.xml -->
586
- <?xml version =" 1.0" encoding =" utf -8" ?>
586
+ <?xml version =" 1.0" encoding =" UTF -8" ?>
587
587
<container xmlns =" http://symfony.com/schema/dic/services"
588
588
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
589
589
xmlns : framework =" http://symfony.com/schema/dic/symfony"
590
- xsi : schemaLocation =" http://symfony.com/schema/dic/services http ://symfony.com/schema/dic/services/services-1.0.xsd
591
- http://symfony.com/schema/dic/symfony http ://symfony.com/schema/dic/symfony/symfony-1.0.xsd"
590
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services https ://symfony.com/schema/dic/services/services-1.0.xsd
591
+ http://symfony.com/schema/dic/symfony https ://symfony.com/schema/dic/symfony/symfony-1.0.xsd"
592
592
>
593
593
594
594
<framework : config >
@@ -684,10 +684,11 @@ There is a shortcut that works with everything::
684
684
685
685
In a Flash message in your Controller::
686
686
687
- // $transition = ...; (an instance of Transition)
688
- // $workflow is a Workflow instance retrieved from the Registry (see above)
689
- $title = $workflow->getMetadataStore()->getMetadata('title', $transition);
690
- $this->addFlash('info', "You have successfully applied the transition with title: '$title'");
687
+ // $transition = ...; (an instance of Transition)
688
+
689
+ // $workflow is a Workflow instance retrieved from the Registry (see above)
690
+ $title = $workflow->getMetadataStore()->getMetadata('title', $transition);
691
+ $this->addFlash('info', "You have successfully applied the transition with title: '$title'");
691
692
692
693
Metadata can also be accessed in a Listener, from the Event object.
693
694
0 commit comments