Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

add example with constant as key #4441

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
transitions:
!php/const App\Entity\Plant::TRANSITION_PLANT:
from: seed
to: planted
-----
tacman marked this conversation as resolved.
Show resolved Hide resolved
<?php

declare(strict_types=1);

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->extension('transitions', [\App\Entity\Plant::class => ['from' => 'seed', 'to' => 'planted']]);
};