From e8846a3c48ab4af23cf572c8797fb7aacf20c611 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 19 Apr 2017 10:56:31 +0200 Subject: [PATCH 1/2] Documented the getWorkflowName() method --- workflow/usage.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/workflow/usage.rst b/workflow/usage.rst index 7f6ce9d9f36..e1f6c86b518 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -237,6 +237,12 @@ This means that each event has access to the following information: :method:`Symfony\\Component\\Workflow\\Event\\Event::getTransition` Returns the :class:`Symfony\\Component\\Workflow\\Transition` that dispatches the event. +:method:`Symfony\\Component\\Workflow\\Event\\Event::getWorkflowName` + Returns a string with the name of the workflow that triggered the event. + +.. versionadded:: 3.3 + The ``getWorkflowName()`` method was introduced in Symfony 3.3. + For Guard Events, there is an extended class :class:`Symfony\\Component\\Workflow\\Event\\GuardEvent`. This class has two more methods: From a46f22362c329c2ea6cf9d521b37694bb83c8fe0 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Wed, 19 Apr 2017 11:05:20 +0200 Subject: [PATCH 2/2] Indent the versionadded directive --- workflow/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/workflow/usage.rst b/workflow/usage.rst index e1f6c86b518..694db02c60a 100644 --- a/workflow/usage.rst +++ b/workflow/usage.rst @@ -240,8 +240,8 @@ This means that each event has access to the following information: :method:`Symfony\\Component\\Workflow\\Event\\Event::getWorkflowName` Returns a string with the name of the workflow that triggered the event. -.. versionadded:: 3.3 - The ``getWorkflowName()`` method was introduced in Symfony 3.3. + .. versionadded:: 3.3 + The ``getWorkflowName()`` method was introduced in Symfony 3.3. For Guard Events, there is an extended class :class:`Symfony\\Component\\Workflow\\Event\\GuardEvent`. This class has two more methods: