Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #28769 [FrameworkBundle] deal with explicitly enabled workflow no…
…des (xabbuh) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] deal with explicitly enabled workflow nodes | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | not yet | Fixed tickets | #28662 | License | MIT | Doc PR | Commits ------- 017fd56 deal with explicitly enabled workflow nodes
- Loading branch information
Showing
8 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...e/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/workflows_explicitly_enabled.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('framework', array( | ||
'workflows' => array( | ||
'enabled' => true, | ||
'foo' => array( | ||
'type' => 'workflow', | ||
'supports' => array('Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest'), | ||
'initial_place' => 'bar', | ||
'places' => array('bar', 'baz'), | ||
'transitions' => array( | ||
'bar_baz' => array( | ||
'from' => array('foo'), | ||
'to' => array('bar'), | ||
), | ||
), | ||
), | ||
), | ||
)); |
19 changes: 19 additions & 0 deletions
19
...e/Tests/DependencyInjection/Fixtures/php/workflows_explicitly_enabled_named_workflows.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
$container->loadFromExtension('framework', array( | ||
'workflows' => array( | ||
'enabled' => true, | ||
'workflows' => array( | ||
'type' => 'workflow', | ||
'supports' => array('Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest'), | ||
'initial_place' => 'bar', | ||
'places' => array('bar', 'baz'), | ||
'transitions' => array( | ||
'bar_baz' => array( | ||
'from' => array('foo'), | ||
'to' => array('bar'), | ||
), | ||
), | ||
), | ||
), | ||
)); |
19 changes: 19 additions & 0 deletions
19
...e/FrameworkBundle/Tests/DependencyInjection/Fixtures/xml/workflows_explicitly_enabled.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" ?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:framework="http://symfony.com/schema/dic/symfony" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | ||
|
||
<framework:config> | ||
<framework:workflow enabled="true" name="foo" type="workflow" initial-place="bar"> | ||
<framework:support>Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest</framework:support> | ||
<framework:place>bar</framework:place> | ||
<framework:place>baz</framework:place> | ||
<framework:transition name="bar_baz"> | ||
<framework:from>bar</framework:from> | ||
<framework:to>baz</framework:to> | ||
</framework:transition> | ||
</framework:workflow> | ||
</framework:config> | ||
</container> |
19 changes: 19 additions & 0 deletions
19
...e/Tests/DependencyInjection/Fixtures/xml/workflows_explicitly_enabled_named_workflows.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" ?> | ||
<container xmlns="http://symfony.com/schema/dic/services" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:framework="http://symfony.com/schema/dic/symfony" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/symfony http://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | ||
|
||
<framework:config> | ||
<framework:workflow enabled="true" name="workflows" type="workflow" initial-place="bar"> | ||
<framework:support>Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest</framework:support> | ||
<framework:place>bar</framework:place> | ||
<framework:place>baz</framework:place> | ||
<framework:transition name="bar_baz"> | ||
<framework:from>bar</framework:from> | ||
<framework:to>baz</framework:to> | ||
</framework:transition> | ||
</framework:workflow> | ||
</framework:config> | ||
</container> |
16 changes: 16 additions & 0 deletions
16
...e/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/workflows_explicitly_enabled.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
framework: | ||
workflows: | ||
enabled: true | ||
workflows: | ||
foo: | ||
type: workflow | ||
supports: | ||
- Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest | ||
initial_place: bar | ||
places: | ||
- bar | ||
- baz | ||
transitions: | ||
bar_baz: | ||
from: [foo] | ||
to: [bar] |
15 changes: 15 additions & 0 deletions
15
...e/Tests/DependencyInjection/Fixtures/yml/workflows_explicitly_enabled_named_workflows.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
framework: | ||
workflows: | ||
enabled: true | ||
workflows: | ||
type: workflow | ||
supports: | ||
- Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\FrameworkExtensionTest | ||
initial_place: bar | ||
places: | ||
- bar | ||
- baz | ||
transitions: | ||
bar_baz: | ||
from: [foo] | ||
to: [bar] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters