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 8c540ce commit f9bb412Copy full SHA for f9bb412
workflow/usage.rst
@@ -171,8 +171,9 @@ you can get the workflow by injecting the Workflow registry service::
171
// ...
172
use Symfony\Component\Workflow\Registry;
173
use App\Entity\BlogPost;
174
+ use Symfony\Bundle\FrameworkBundle\Controller\Controller;
175
- class BlogController
176
+ class BlogController extends Controller
177
{
178
public function edit(Registry $workflows)
179
@@ -190,7 +191,7 @@ you can get the workflow by injecting the Workflow registry service::
190
191
try {
192
$workflow->apply($post, 'to_review');
193
} catch (LogicException $e) {
- // ...
194
+ // ... if the transition is not allowed
195
}
196
197
// See all the available transitions for the post in the current state
0 commit comments