We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0926556 commit 0d3cf69Copy full SHA for 0d3cf69
workflow.rst
@@ -216,12 +216,11 @@ what actions are allowed on a blog post::
216
// See all the available transitions for the post in the current state
217
$transitions = $workflow->getEnabledTransitions($post);
218
219
-In a class or a controller
220
---------------------------
+Accessing the Workflow in a Class
+---------------------------------
221
222
-To access workflow inside a class, use dependency injection and inject the registry in the constructor.
223
-
224
-For a controller, you can directly inject it in a method::
+To access workflow inside a class, use dependency injection and inject the
+registry in the constructor::
225
226
use Symfony\Component\Workflow\Registry;
227
0 commit comments