Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Only support rules equal and higher TYPO3 10 #138

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion e2e/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd $TESTS_BASE_DIR
rm -r composer.lock vendor || true
composer install

TEST_DIR=typo3-flexform
TEST_DIR=typo3-yaml

cd $TEST_DIR

Expand Down
18 changes: 0 additions & 18 deletions e2e/typo3-flexform/expected-output/FlexFormWithSelect.xml

This file was deleted.

18 changes: 0 additions & 18 deletions e2e/typo3-flexform/fixtures/FlexFormWithSelect.xml

This file was deleted.

50 changes: 50 additions & 0 deletions e2e/typo3-yaml/expected-output/my_form.form.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
finishers:
-
options:
recipients:
[email protected]: Bar
[email protected]: Bar
subject: 'Kontaktanfrage von Website'
senderAddress: '{email}'
senderName: '{lastName}'
format: html
attachUploads: true
replyToRecipients:
- [email protected]
carbonCopyRecipients:
- [email protected]
blindCarbonCopyRecipients:
- [email protected]
identifier: EmailToReceiver
-
options:
recipients:
[email protected]: Bar
[email protected]: Bar
subject: 'Kontaktanfrage von Website'
senderAddress: '{email}'
senderName: '{lastName}'
format: html
attachUploads: true
replyToRecipients:
- [email protected]
carbonCopyRecipients:
- [email protected]
blindCarbonCopyRecipients:
- [email protected]
identifier: EmailToSender
variants:
-
identifier: variant-1
condition: 'formValues["foo"] == "bar"'
finishers:
-
identifier: EmailToReceiver
options:
subject: 'Example Subject'
senderAddress: [email protected]
senderName: '{text-2} {text-1}'
replyToRecipients:
- '{email}'
recipients:
[email protected]: 'Example Recipient'
45 changes: 45 additions & 0 deletions e2e/typo3-yaml/fixtures/my_form.form.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
finishers:
-
options:
recipients:
[email protected]: 'Bar'
subject: 'Kontaktanfrage von Website'
recipientAddress: [email protected]
recipientName: Bar
replyToAddress: [email protected]
senderAddress: '{email}'
senderName: '{lastName}'
carbonCopyAddress: [email protected]
blindCarbonCopyAddress: [email protected]
format: html
attachUploads: true
identifier: EmailToReceiver
-
options:
recipients:
[email protected]: 'Bar'
subject: 'Kontaktanfrage von Website'
recipientAddress: [email protected]
recipientName: Bar
replyToAddress: [email protected]
senderAddress: '{email}'
senderName: '{lastName}'
carbonCopyAddress: [email protected]
blindCarbonCopyAddress: [email protected]
format: html
attachUploads: true
identifier: EmailToSender
variants:
-
identifier: variant-1
condition: 'formValues["foo"] == "bar"'
finishers:
-
identifier: EmailToReceiver
options:
subject: 'Example Subject'
recipientAddress: [email protected]
recipientName: 'Example Recipient'
senderAddress: [email protected]
senderName: '{text-2} {text-1}'
replyToAddress: '{email}'
File renamed without changes.
2 changes: 0 additions & 2 deletions packages/typo3-fractor/config/level/up-to-typo3-10.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@

declare(strict_types=1);

use a9f\Typo3Fractor\Set\Typo3LevelSetList;
use a9f\Typo3Fractor\Set\Typo3SetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(Typo3LevelSetList::UP_TO_TYPO3_9);
$containerConfigurator->import(Typo3SetList::TYPO3_10);
};
10 changes: 0 additions & 10 deletions packages/typo3-fractor/config/level/up-to-typo3-7.php

This file was deleted.

12 changes: 0 additions & 12 deletions packages/typo3-fractor/config/level/up-to-typo3-8.php

This file was deleted.

12 changes: 0 additions & 12 deletions packages/typo3-fractor/config/level/up-to-typo3-9.php

This file was deleted.

4 changes: 4 additions & 0 deletions packages/typo3-fractor/config/typo3-10.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

declare(strict_types=1);

use a9f\Typo3Fractor\TYPO3v10\Fluid\RemoveNoCacheHashAndUseCacheHashAttributeFractor;
use a9f\Typo3Fractor\TYPO3v10\Yaml\EmailFinisherFractor;
use a9f\Typo3Fractor\TYPO3v10\Yaml\TranslationFileFractor;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

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

$services->set(EmailFinisherFractor::class);
$services->set(TranslationFileFractor::class);
$services->set(RemoveNoCacheHashAndUseCacheHashAttributeFractor::class);
};
3 changes: 3 additions & 0 deletions packages/typo3-fractor/config/typo3-12.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@

declare(strict_types=1);

use a9f\Typo3Fractor\TYPO3v12\Fluid\AbstractMessageGetSeverityFluidRector;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();
$services->defaults()
->autoconfigure()
->autowire();

$services->set(AbstractMessageGetSeverityFluidRector::class);
};
14 changes: 0 additions & 14 deletions packages/typo3-fractor/config/typo3-7.php

This file was deleted.

12 changes: 0 additions & 12 deletions packages/typo3-fractor/config/typo3-8.php

This file was deleted.

12 changes: 0 additions & 12 deletions packages/typo3-fractor/config/typo3-9.php

This file was deleted.

This file was deleted.

Loading