From fdd725a8c1e1d55cf22012ba05ca513c61ce9352 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Fri, 20 Sep 2019 10:18:35 +0200 Subject: [PATCH] Bugfix: Remove String keyword in class namespaces --- .../ConvertEmailLinksImplementation.php | 4 +-- .../EmailLinkNameConverterInterface.php | 2 +- .../Mailto2HrefObfuscatingConverter.php | 2 +- .../MailtoLinkConverterInterface.php | 2 +- .../Converter/RewriteAtCharConverter.php | 2 +- Configuration/Objects.yaml | 8 +++--- Migrations/Code/Version20190919145400.php | 26 +++++++++++++++++++ .../ConvertEmailLinksImplementationTest.php | 4 +-- 8 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 Migrations/Code/Version20190919145400.php diff --git a/Classes/Fusion/ConvertEmailLinksImplementation.php b/Classes/Fusion/ConvertEmailLinksImplementation.php index a7aef67..d4e2665 100644 --- a/Classes/Fusion/ConvertEmailLinksImplementation.php +++ b/Classes/Fusion/ConvertEmailLinksImplementation.php @@ -19,8 +19,8 @@ use Neos\Flow\Annotations as Flow; use Neos\Fusion\FusionObjects\AbstractFusionObject; use Networkteam\Neos\MailObfuscator\Exception; -use Networkteam\Neos\MailObfuscator\String\Converter\EmailLinkNameConverterInterface; -use Networkteam\Neos\MailObfuscator\String\Converter\MailtoLinkConverterInterface; +use Networkteam\Neos\MailObfuscator\Converter\EmailLinkNameConverterInterface; +use Networkteam\Neos\MailObfuscator\Converter\MailtoLinkConverterInterface; class ConvertEmailLinksImplementation extends AbstractFusionObject { diff --git a/Classes/String/Converter/EmailLinkNameConverterInterface.php b/Classes/String/Converter/EmailLinkNameConverterInterface.php index db12bba..8cfd182 100644 --- a/Classes/String/Converter/EmailLinkNameConverterInterface.php +++ b/Classes/String/Converter/EmailLinkNameConverterInterface.php @@ -1,5 +1,5 @@ searchAndReplace('Networkteam\Neos\MailObfuscator\String\Converter', 'Networkteam\Neos\MailObfuscator\Converter', ['yaml', 'php', 'fusion']); + } + + public function down() + { + $this->searchAndReplace('Networkteam\Neos\MailObfuscator\Converter', 'Networkteam\Neos\MailObfuscator\String\Converter', ['yaml', 'php', 'fusion']); + } +} diff --git a/Tests/Unit/Fusion/ConvertEmailLinksImplementationTest.php b/Tests/Unit/Fusion/ConvertEmailLinksImplementationTest.php index 398d6e4..9395ce8 100644 --- a/Tests/Unit/Fusion/ConvertEmailLinksImplementationTest.php +++ b/Tests/Unit/Fusion/ConvertEmailLinksImplementationTest.php @@ -20,8 +20,8 @@ use Neos\Flow\Tests\UnitTestCase; use Neos\Fusion\Core\Runtime; use Networkteam\Neos\MailObfuscator\Fusion\ConvertEmailLinksImplementation; -use Networkteam\Neos\MailObfuscator\String\Converter\Mailto2HrefObfuscatingConverter; -use Networkteam\Neos\MailObfuscator\String\Converter\RewriteAtCharConverter; +use Networkteam\Neos\MailObfuscator\Converter\Mailto2HrefObfuscatingConverter; +use Networkteam\Neos\MailObfuscator\Converter\RewriteAtCharConverter; class ConvertEmailLinksImplementationTest extends UnitTestCase {