Skip to content

Commit 7df53f6

Browse files
Merge pull request #138 from andreaswolf/issue-132
[TASK] Only support rules equal and higher TYPO3 10
2 parents d8c8d76 + ceafcd3 commit 7df53f6

File tree

23 files changed

+108
-353
lines changed

23 files changed

+108
-353
lines changed

e2e/run-test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cd $TESTS_BASE_DIR
1010
rm -r composer.lock vendor || true
1111
composer install
1212

13-
TEST_DIR=typo3-flexform
13+
TEST_DIR=typo3-yaml
1414

1515
cd $TEST_DIR
1616

e2e/typo3-flexform/expected-output/FlexFormWithSelect.xml

-18
This file was deleted.

e2e/typo3-flexform/fixtures/FlexFormWithSelect.xml

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
finishers:
2+
-
3+
options:
4+
recipients:
5+
6+
7+
subject: 'Kontaktanfrage von Website'
8+
senderAddress: '{email}'
9+
senderName: '{lastName}'
10+
format: html
11+
attachUploads: true
12+
replyToRecipients:
13+
14+
carbonCopyRecipients:
15+
16+
blindCarbonCopyRecipients:
17+
18+
identifier: EmailToReceiver
19+
-
20+
options:
21+
recipients:
22+
23+
24+
subject: 'Kontaktanfrage von Website'
25+
senderAddress: '{email}'
26+
senderName: '{lastName}'
27+
format: html
28+
attachUploads: true
29+
replyToRecipients:
30+
31+
carbonCopyRecipients:
32+
33+
blindCarbonCopyRecipients:
34+
35+
identifier: EmailToSender
36+
variants:
37+
-
38+
identifier: variant-1
39+
condition: 'formValues["foo"] == "bar"'
40+
finishers:
41+
-
42+
identifier: EmailToReceiver
43+
options:
44+
subject: 'Example Subject'
45+
senderAddress: [email protected]
46+
senderName: '{text-2} {text-1}'
47+
replyToRecipients:
48+
- '{email}'
49+
recipients:
50+
[email protected]: 'Example Recipient'
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
finishers:
2+
-
3+
options:
4+
recipients:
5+
6+
subject: 'Kontaktanfrage von Website'
7+
recipientAddress: [email protected]
8+
recipientName: Bar
9+
replyToAddress: [email protected]
10+
senderAddress: '{email}'
11+
senderName: '{lastName}'
12+
carbonCopyAddress: [email protected]
13+
blindCarbonCopyAddress: [email protected]
14+
format: html
15+
attachUploads: true
16+
identifier: EmailToReceiver
17+
-
18+
options:
19+
recipients:
20+
21+
subject: 'Kontaktanfrage von Website'
22+
recipientAddress: [email protected]
23+
recipientName: Bar
24+
replyToAddress: [email protected]
25+
senderAddress: '{email}'
26+
senderName: '{lastName}'
27+
carbonCopyAddress: [email protected]
28+
blindCarbonCopyAddress: [email protected]
29+
format: html
30+
attachUploads: true
31+
identifier: EmailToSender
32+
variants:
33+
-
34+
identifier: variant-1
35+
condition: 'formValues["foo"] == "bar"'
36+
finishers:
37+
-
38+
identifier: EmailToReceiver
39+
options:
40+
subject: 'Example Subject'
41+
recipientAddress: [email protected]
42+
recipientName: 'Example Recipient'
43+
senderAddress: [email protected]
44+
senderName: '{text-2} {text-1}'
45+
replyToAddress: '{email}'
File renamed without changes.

packages/typo3-fractor/config/level/up-to-typo3-10.php

-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
declare(strict_types=1);
44

5-
use a9f\Typo3Fractor\Set\Typo3LevelSetList;
65
use a9f\Typo3Fractor\Set\Typo3SetList;
76
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
87

98
return static function (ContainerConfigurator $containerConfigurator): void {
10-
$containerConfigurator->import(Typo3LevelSetList::UP_TO_TYPO3_9);
119
$containerConfigurator->import(Typo3SetList::TYPO3_10);
1210
};

packages/typo3-fractor/config/level/up-to-typo3-7.php

-10
This file was deleted.

packages/typo3-fractor/config/level/up-to-typo3-8.php

-12
This file was deleted.

packages/typo3-fractor/config/level/up-to-typo3-9.php

-12
This file was deleted.

packages/typo3-fractor/config/typo3-10.php

+4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
declare(strict_types=1);
44

5+
use a9f\Typo3Fractor\TYPO3v10\Fluid\RemoveNoCacheHashAndUseCacheHashAttributeFractor;
56
use a9f\Typo3Fractor\TYPO3v10\Yaml\EmailFinisherFractor;
7+
use a9f\Typo3Fractor\TYPO3v10\Yaml\TranslationFileFractor;
68
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
79

810
return static function (ContainerConfigurator $containerConfigurator): void {
@@ -12,4 +14,6 @@
1214
->autowire();
1315

1416
$services->set(EmailFinisherFractor::class);
17+
$services->set(TranslationFileFractor::class);
18+
$services->set(RemoveNoCacheHashAndUseCacheHashAttributeFractor::class);
1519
};

packages/typo3-fractor/config/typo3-12.php

+3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
declare(strict_types=1);
44

5+
use a9f\Typo3Fractor\TYPO3v12\Fluid\AbstractMessageGetSeverityFluidRector;
56
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
67

78
return static function (ContainerConfigurator $containerConfigurator): void {
89
$services = $containerConfigurator->services();
910
$services->defaults()
1011
->autoconfigure()
1112
->autowire();
13+
14+
$services->set(AbstractMessageGetSeverityFluidRector::class);
1215
};

packages/typo3-fractor/config/typo3-7.php

-14
This file was deleted.

packages/typo3-fractor/config/typo3-8.php

-12
This file was deleted.

packages/typo3-fractor/config/typo3-9.php

-12
This file was deleted.

packages/typo3-fractor/rules/TYPO3v7/FlexForm/AddRenderTypeToFlexFormFractor.php

-115
This file was deleted.

0 commit comments

Comments
 (0)