Skip to content

Commit 9388629

Browse files
author
Chad Meyers
authored
Update workflow.rst
add a couple lines to example code for better understanding
1 parent 7ab71ba commit 9388629

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)