Skip to content

Commit 3e0543a

Browse files
committed
minor #11495 [Workflow] Enhance code examples for better understanding (webmasterMeyers)
This PR was merged into the 4.2 branch. Discussion ---------- [Workflow] Enhance code examples for better understanding add a couple lines to example code for better understanding <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 9388629 Update workflow.rst
2 parents 7ab71ba + 9388629 commit 3e0543a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

workflow.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ workflow leaves a place::
317317

318318
class WorkflowLogger implements EventSubscriberInterface
319319
{
320+
private $logger;
321+
320322
public function __construct(LoggerInterface $logger)
321323
{
322324
$this->logger = $logger;
@@ -602,6 +604,8 @@ requires:
602604
603605
Then you can access this metadata in your controller as follows::
604606

607+
use Symfony\Component\Workflow\Registry;
608+
605609
public function myController(Registry $registry, Article $article)
606610
{
607611
$workflow = $registry->get($article);

0 commit comments

Comments
 (0)