Skip to content

Commit fb19c14

Browse files
committed
[Translator] Prefix bundle and extension classes with "Ux"
1 parent 4b3aa8d commit fb19c14

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/Translator/src/DependencyInjection/TranslatorExtension.php renamed to src/Translator/src/DependencyInjection/UxTranslatorExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @experimental
2525
*/
26-
class TranslatorExtension extends Extension
26+
class UxTranslatorExtension extends Extension
2727
{
2828
public function load(array $configs, ContainerBuilder $container)
2929
{

src/Translator/src/TranslatorBundle.php renamed to src/Translator/src/UxTranslatorBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*
2121
* @experimental
2222
*/
23-
class TranslatorBundle extends Bundle
23+
class UxTranslatorBundle extends Bundle
2424
{
2525
public function getPath(): string
2626
{

src/Translator/tests/Kernel/EmptyAppKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Config\Loader\LoaderInterface;
1515
use Symfony\Component\HttpKernel\Kernel;
16-
use Symfony\UX\Translator\TranslatorBundle;
16+
use Symfony\UX\Translator\UxTranslatorBundle;
1717

1818
/**
1919
* @author Hugo Alliaume <[email protected]>
@@ -26,7 +26,7 @@ class EmptyAppKernel extends Kernel
2626

2727
public function registerBundles(): iterable
2828
{
29-
return [new TranslatorBundle()];
29+
return [new UxTranslatorBundle()];
3030
}
3131

3232
public function registerContainerConfiguration(LoaderInterface $loader)

src/Translator/tests/Kernel/FrameworkAppKernel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Config\Loader\LoaderInterface;
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\HttpKernel\Kernel;
18-
use Symfony\UX\Translator\TranslatorBundle;
18+
use Symfony\UX\Translator\UxTranslatorBundle;
1919

2020
/**
2121
* @author Hugo Alliaume <[email protected]>
@@ -28,7 +28,7 @@ class FrameworkAppKernel extends Kernel
2828

2929
public function registerBundles(): iterable
3030
{
31-
return [new FrameworkBundle(), new TranslatorBundle()];
31+
return [new FrameworkBundle(), new UxTranslatorBundle()];
3232
}
3333

3434
public function registerContainerConfiguration(LoaderInterface $loader)

src/Translator/tests/TranslatorBundleTest.php renamed to src/Translator/tests/UxTranslatorBundleTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Symfony\UX\Translator\Tests\Kernel\EmptyAppKernel;
88
use Symfony\UX\Translator\Tests\Kernel\FrameworkAppKernel;
99

10-
class TranslatorBundleTest extends TestCase
10+
class UxTranslatorBundleTest extends TestCase
1111
{
1212
public function provideKernels()
1313
{
@@ -21,6 +21,6 @@ public function provideKernels()
2121
public function testBootKernel(Kernel $kernel)
2222
{
2323
$kernel->boot();
24-
$this->assertArrayHasKey('TranslatorBundle', $kernel->getBundles());
24+
$this->assertArrayHasKey('UxTranslatorBundle', $kernel->getBundles());
2525
}
2626
}

0 commit comments

Comments
 (0)