From 29bf7ccae5cde882871a2995b1b4af39ef6ea50b Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 1 Dec 2019 12:16:06 +0100 Subject: [PATCH] [TASK] Convert the PHP namespaces to "TTN" (#9) Fixes #1 --- CHANGELOG.md | 1 + Classes/Controller/TeaController.php | 6 +++--- Classes/Domain/Model/Product/Tea.php | 2 +- Classes/Domain/Repository/Product/TeaRepository.php | 4 ++-- .../Domain/Repository/Traits/StoragePageAgnosticTrait.php | 2 +- Configuration/TCA/Overrides/tt_content.php | 2 +- Tests/Acceptance/StarterCest.php | 2 +- Tests/Functional/Controller/TeaControllerTest.php | 2 +- .../Domain/Repository/Product/TeaRepositoryTest.php | 6 +++--- Tests/Unit/Controller/TeaControllerTest.php | 8 ++++---- Tests/Unit/Domain/Model/Product/TeaTest.php | 4 ++-- .../Unit/Domain/Repository/Product/TeaRepositoryTest.php | 4 ++-- composer.json | 4 ++-- ext_emconf.php | 4 ++-- ext_localconf.php | 2 +- 15 files changed, 27 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a12e8d8..65bdb67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - Composer script for PHP linting ### Changed +- Convert the PHP namespaces to "TTN" (#8) - Update the contact email in the CoC document (#6) - Switch to the `TTN` PHP vendor namespace (#1, #5) - Sort the Composer dependencies diff --git a/Classes/Controller/TeaController.php b/Classes/Controller/TeaController.php index ab0d46e..4282dd0 100644 --- a/Classes/Controller/TeaController.php +++ b/Classes/Controller/TeaController.php @@ -1,10 +1,10 @@ 'TYPO3 Trainer Network', 'autoload' => [ 'psr-4' => [ - 'OliverKlee\\Tea\\' => 'Classes/', + 'TTN\\Tea\\' => 'Classes/', ], ], 'autoload-dev' => [ 'psr-4' => [ - 'OliverKlee\\Tea\\Tests\\' => 'Tests/', + 'TTN\\Tea\\Tests\\' => 'Tests/', ], ], ]; diff --git a/ext_localconf.php b/ext_localconf.php index 749e7fe..5f27f81 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -2,7 +2,7 @@ // This makes the plugin available for front-end rendering. \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( // extension name, exactly matching the PHP namespaces (vendor and product) - 'OliverKlee.Tea', + 'TTN.Tea', // arbitrary, but unique plugin name (not visible in the BE) 'Tea', // all actions