Skip to content

Commit

Permalink
Merge pull request #3 from netlogix/develop
Browse files Browse the repository at this point in the history
change namespace
  • Loading branch information
Scarbous authored Dec 11, 2023
2 parents 86c724b + 67050d8 commit e1652fe
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 47 deletions.
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -9,18 +15,19 @@
],
"authors": [
{
"name": "Sascha Heilmeier"
"name": "Sascha Heilmeier",
"email": "[email protected]"
}
],
"license": "MIT",
"autoload": {
"psr-4": {
"Scarbous\\TolgeeTranslationProvider\\": "src/"
"Netlogix\\SymfonyTolgeeTranslationProvider\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Scarbous\\TolgeeTranslationProvider\\Test\\": "tests/"
"Netlogix\\SymfonyTolgeeTranslationProvider\\Test\\": "tests/"
}
},
"require": {
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.3/phpunit.xsd"
backupGlobals="false"
Expand All @@ -11,7 +10,7 @@
<php>
<ini name="error_reporting" value="-1" />
<server name="APP_ENV" value="test" force="true" />
<server name="KERNEL_CLASS" value="Scarbous\TolgeeTranslationProvider\Test\App\TestKernel" />
<server name="KERNEL_CLASS" value="Netlogix\SymfonyTolgeeTranslationProvider\Test\App\TestKernel" />
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
<env name="TOLGEE_DSN" value="tolgee://1:[email protected]/"/>
</php>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\DependencyInjection;
namespace Netlogix\SymfonyTolgeeTranslationProvider\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/TolgeeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\Exception;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Exception;

use Symfony\Contracts\HttpClient\ResponseInterface;

Expand Down
11 changes: 2 additions & 9 deletions src/Resources/config/translation_providers.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* 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) {
Expand Down
13 changes: 3 additions & 10 deletions src/TolgeeProvider.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* 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;
Expand Down
2 changes: 1 addition & 1 deletion src/TolgeeProviderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider;
namespace Netlogix\SymfonyTolgeeTranslationProvider;

use Psr\Log\LoggerInterface;
use Symfony\Component\Translation\Exception\IncompleteDsnException;
Expand Down
3 changes: 2 additions & 1 deletion src/TolgeeTranslationProviderBundle.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider;
namespace Netlogix\SymfonyTolgeeTranslationProvider;

use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand Down
2 changes: 1 addition & 1 deletion tests/App/DependencyInjection/PublicHttpClientPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
declare(strict_types=1);


namespace Scarbous\TolgeeTranslationProvider\Test\App\DependencyInjection;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\App\DependencyInjection;

use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

Expand Down
6 changes: 3 additions & 3 deletions tests/App/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\Test\App;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\App;

use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
Expand All @@ -19,14 +19,14 @@ public function registerBundles(): iterable
{
return [
new \Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new \Scarbous\TolgeeTranslationProvider\TolgeeTranslationProviderBundle(),
new \Netlogix\SymfonyTolgeeTranslationProvider\TolgeeTranslationProviderBundle(),
];
}

protected function build(ContainerBuilder $container): void
{
$container->addCompilerPass(
new \Scarbous\TolgeeTranslationProvider\Test\App\DependencyInjection\PublicHttpClientPass()
new \Netlogix\SymfonyTolgeeTranslationProvider\Test\App\DependencyInjection\PublicHttpClientPass()
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/HttpClientFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\Test\Fixtures;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Fixtures;

class HttpClientFixture
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Functional/TolgeeProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions tests/Symfony/TolgeeProviderFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 3 additions & 2 deletions tests/Symfony/TolgeeProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\Test\Symfony;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Symfony;

use Psr\Log\LoggerInterface;
use Psr\Log\NullLogger;
Expand All @@ -12,7 +13,7 @@
use Symfony\Component\Translation\Test\ProviderTestCase;
use Symfony\Component\Translation\TranslatorBag;
use Symfony\Contracts\HttpClient\ResponseInterface;
use Scarbous\TolgeeTranslationProvider\TolgeeProvider;
use Netlogix\SymfonyTolgeeTranslationProvider\TolgeeProvider;
use Symfony\Component\Translation\Loader\JsonFileLoader;

class TolgeeProviderTest extends ProviderTestCase
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/TolgeeProviderFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\Test\Unit;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Unit;

use Mockery;
use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
use Scarbous\TolgeeTranslationProvider\TolgeeProviderFactory;
use Netlogix\SymfonyTolgeeTranslationProvider\TolgeeProviderFactory;
use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\Translation\Exception\IncompleteDsnException;
use Symfony\Component\Translation\Exception\UnsupportedSchemeException;
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/TolgeeProviderPrivateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

declare(strict_types=1);

namespace Scarbous\TolgeeTranslationProvider\Test\Unit;
namespace Netlogix\SymfonyTolgeeTranslationProvider\Test\Unit;

use PHPUnit\Framework\TestCase;
use Psr\Log\LoggerInterface;
use Scarbous\TolgeeTranslationProvider\Exception\TolgeeException;
use Scarbous\TolgeeTranslationProvider\Test\Fixtures\HttpClientFixture;
use Scarbous\TolgeeTranslationProvider\TolgeeProvider;
use Netlogix\SymfonyTolgeeTranslationProvider\Exception\TolgeeException;
use Netlogix\SymfonyTolgeeTranslationProvider\Test\Fixtures\HttpClientFixture;
use Netlogix\SymfonyTolgeeTranslationProvider\TolgeeProvider;
use Symfony\Component\HttpClient\MockHttpClient;
use Symfony\Component\HttpClient\Response\MockResponse;
use Symfony\Component\Mime\Part\DataPart;
Expand Down
2 changes: 1 addition & 1 deletion tests/console
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

declare(strict_types=1);

use Scarbous\TolgeeTranslationProvider\Test\App\TestKernel;
use Netlogix\SymfonyTolgeeTranslationProvider\Test\App\TestKernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;

Expand Down

0 comments on commit e1652fe

Please sign in to comment.