From 13d29a5ccdd0b87267e7da6599489bc19c2ca487 Mon Sep 17 00:00:00 2001 From: Sascha Date: Mon, 11 Dec 2023 13:44:20 +0000 Subject: [PATCH] feat: switch namespace to netlogix --- composer.json | 15 +++++++++++---- phpunit.xml.dist | 3 +-- .../TolgeeTranslationProviderExtension.php | 3 ++- src/Exception/TolgeeException.php | 2 +- src/Resources/config/translation_providers.php | 11 ++--------- src/TolgeeProvider.php | 13 +++---------- src/TolgeeProviderFactory.php | 2 +- src/TolgeeTranslationProviderBundle.php | 3 ++- .../DependencyInjection/PublicHttpClientPass.php | 2 +- tests/App/TestKernel.php | 6 +++--- tests/Fixtures/HttpClientFixture.php | 2 +- tests/Functional/TolgeeProviderTest.php | 4 ++-- tests/Symfony/TolgeeProviderFactoryTest.php | 4 ++-- tests/Symfony/TolgeeProviderTest.php | 5 +++-- tests/Unit/TolgeeProviderFactoryTest.php | 4 ++-- tests/Unit/TolgeeProviderPrivateTest.php | 8 ++++---- tests/console | 2 +- 17 files changed, 42 insertions(+), 47 deletions(-) diff --git a/composer.json b/composer.json index 2f6dd53..8345d68 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,12 @@ { - "name": "scarbous/tolgee-translation-provider", + "name": "netlogix/symfony-tolgee-translation-provider", "description": "Symfony Tolgee Translation Provider Bridge", + "homepage": "https://github.com/netlogix/symfony-tolgee-translation-provider", + "support":{ + "source": "https://github.com/netlogix/symfony-tolgee-translation-provider/", + "docs": "https://github.com/netlogix/symfony-tolgee-translation-provider/blob/main/README.md", + "issues": "https://github.com/netlogix/symfony-tolgee-translation-provider/issues" + }, "type": "symfony-bridge", "keywords": [ "tolgee", @@ -9,18 +15,19 @@ ], "authors": [ { - "name": "Sascha Heilmeier" + "name": "Sascha Heilmeier", + "email": "sascha.heilmeier@netlogix.de" } ], "license": "MIT", "autoload": { "psr-4": { - "Scarbous\\TolgeeTranslationProvider\\": "src/" + "Netlogix\\SymfonyTolgeeTranslationProvider\\": "src/" } }, "autoload-dev": { "psr-4": { - "Scarbous\\TolgeeTranslationProvider\\Test\\": "tests/" + "Netlogix\\SymfonyTolgeeTranslationProvider\\Test\\": "tests/" } }, "require": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 1bd7cba..a97fb27 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,5 +1,4 @@ - - + diff --git a/src/DependencyInjection/TolgeeTranslationProviderExtension.php b/src/DependencyInjection/TolgeeTranslationProviderExtension.php index 2790bb3..e4c6521 100644 --- a/src/DependencyInjection/TolgeeTranslationProviderExtension.php +++ b/src/DependencyInjection/TolgeeTranslationProviderExtension.php @@ -1,6 +1,7 @@ -* -* For the full copyright and license information, please view the LICENSE -* file that was distributed with this source code. -*/ +declare(strict_types=1); namespace Symfony\Component\DependencyInjection\Loader\Configurator; -use Scarbous\TolgeeTranslationProvider\TolgeeProviderFactory; +use Netlogix\SymfonyTolgeeTranslationProvider\TolgeeProviderFactory; // @codeCoverageIgnoreStart return static function (ContainerConfigurator $container) { diff --git a/src/TolgeeProvider.php b/src/TolgeeProvider.php index 5058bbb..ff6ab3d 100644 --- a/src/TolgeeProvider.php +++ b/src/TolgeeProvider.php @@ -1,18 +1,11 @@ - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ +declare(strict_types=1); -namespace Scarbous\TolgeeTranslationProvider; +namespace Netlogix\SymfonyTolgeeTranslationProvider; use Psr\Log\LoggerInterface; -use Scarbous\TolgeeTranslationProvider\Exception\TolgeeException; +use Netlogix\SymfonyTolgeeTranslationProvider\Exception\TolgeeException; use Symfony\Component\HttpClient\Exception\ClientException; use Symfony\Component\HttpClient\Exception\RedirectionException; use Symfony\Component\HttpClient\Exception\ServerException; diff --git a/src/TolgeeProviderFactory.php b/src/TolgeeProviderFactory.php index a48eb76..0e18457 100644 --- a/src/TolgeeProviderFactory.php +++ b/src/TolgeeProviderFactory.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Scarbous\TolgeeTranslationProvider; +namespace Netlogix\SymfonyTolgeeTranslationProvider; use Psr\Log\LoggerInterface; use Symfony\Component\Translation\Exception\IncompleteDsnException; diff --git a/src/TolgeeTranslationProviderBundle.php b/src/TolgeeTranslationProviderBundle.php index b644c69..ba5a1be 100644 --- a/src/TolgeeTranslationProviderBundle.php +++ b/src/TolgeeTranslationProviderBundle.php @@ -1,6 +1,7 @@ addCompilerPass( - new \Scarbous\TolgeeTranslationProvider\Test\App\DependencyInjection\PublicHttpClientPass() + new \Netlogix\SymfonyTolgeeTranslationProvider\Test\App\DependencyInjection\PublicHttpClientPass() ); } diff --git a/tests/Fixtures/HttpClientFixture.php b/tests/Fixtures/HttpClientFixture.php index 5db91f7..61ca24f 100644 --- a/tests/Fixtures/HttpClientFixture.php +++ b/tests/Fixtures/HttpClientFixture.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Scarbous\TolgeeTranslationProvider\Test\Fixtures; +namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Fixtures; class HttpClientFixture { diff --git a/tests/Functional/TolgeeProviderTest.php b/tests/Functional/TolgeeProviderTest.php index 4dceec7..a5f5777 100644 --- a/tests/Functional/TolgeeProviderTest.php +++ b/tests/Functional/TolgeeProviderTest.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Scarbous\TolgeeTranslationProvider\Test\Functional; +namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Functional; -use Scarbous\TolgeeTranslationProvider\Test\Fixtures\HttpClientFixture; +use Netlogix\SymfonyTolgeeTranslationProvider\Test\Fixtures\HttpClientFixture; use Symfony\Component\Filesystem\Filesystem; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\HttpClient\MockHttpClient; diff --git a/tests/Symfony/TolgeeProviderFactoryTest.php b/tests/Symfony/TolgeeProviderFactoryTest.php index 105b3e3..0880dd2 100644 --- a/tests/Symfony/TolgeeProviderFactoryTest.php +++ b/tests/Symfony/TolgeeProviderFactoryTest.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace Scarbous\TolgeeTranslationProvider\Test\Symfony; +namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Symfony; use Symfony\Component\HttpClient\MockHttpClient; use Symfony\Component\HttpClient\Response\MockResponse; -use Scarbous\TolgeeTranslationProvider\TolgeeProviderFactory as ProviderFactory; +use Netlogix\SymfonyTolgeeTranslationProvider\TolgeeProviderFactory as ProviderFactory; use Symfony\Component\Translation\Dumper\JsonFileDumper; use Symfony\Component\Translation\Loader\JsonFileLoader; use Symfony\Component\Translation\Provider\Dsn; diff --git a/tests/Symfony/TolgeeProviderTest.php b/tests/Symfony/TolgeeProviderTest.php index ab08261..42abc4e 100644 --- a/tests/Symfony/TolgeeProviderTest.php +++ b/tests/Symfony/TolgeeProviderTest.php @@ -1,6 +1,7 @@