From 97e25b910e2e48bc0c97c6e8fe953bd6b04c5433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20M=C3=BCller?= <2566282+brotkrueml@users.noreply.github.com> Date: Thu, 23 Nov 2023 09:08:15 +0100 Subject: [PATCH] [TASK] Rename extension file (#7) --- phpstan-baseline.neon | 4 ++-- .../{PhpDomainExtension.php => GuidesPhpDomainExtension.php} | 2 +- tests/ApplicationTestCase.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/DependencyInjection/{PhpDomainExtension.php => GuidesPhpDomainExtension.php} (95%) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 248b815..01c33a1 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -3,12 +3,12 @@ parameters: - message: "#^Function phpDocumentor\\\\Guides\\\\DependencyInjection\\\\template not found\\.$#" count: 5 - path: src/DependencyInjection/PhpDomainExtension.php + path: src/DependencyInjection/GuidesPhpDomainExtension.php - message: "#^Used function phpDocumentor\\\\Guides\\\\DependencyInjection\\\\template not found\\.$#" count: 1 - path: src/DependencyInjection/PhpDomainExtension.php + path: src/DependencyInjection/GuidesPhpDomainExtension.php - message: "#^Method T3Docs\\\\GuidesPhpDomain\\\\Tests\\\\ApplicationTestCase\\:\\:prepareContainer\\(\\) has parameter \\$extraExtensions with no value type specified in iterable type array\\.$#" diff --git a/src/DependencyInjection/PhpDomainExtension.php b/src/DependencyInjection/GuidesPhpDomainExtension.php similarity index 95% rename from src/DependencyInjection/PhpDomainExtension.php rename to src/DependencyInjection/GuidesPhpDomainExtension.php index b8d167d..426d381 100644 --- a/src/DependencyInjection/PhpDomainExtension.php +++ b/src/DependencyInjection/GuidesPhpDomainExtension.php @@ -18,7 +18,7 @@ use function dirname; use function phpDocumentor\Guides\DependencyInjection\template; -final class PhpDomainExtension extends Extension implements PrependExtensionInterface +final class GuidesPhpDomainExtension extends Extension implements PrependExtensionInterface { /** @param mixed[] $configs */ public function load(array $configs, ContainerBuilder $container): void diff --git a/tests/ApplicationTestCase.php b/tests/ApplicationTestCase.php index 823144a..916ab72 100644 --- a/tests/ApplicationTestCase.php +++ b/tests/ApplicationTestCase.php @@ -9,7 +9,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Component\DependencyInjection\Container; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; -use T3Docs\GuidesPhpDomain\DependencyInjection\PhpDomainExtension; +use T3Docs\GuidesPhpDomain\DependencyInjection\GuidesPhpDomainExtension; abstract class ApplicationTestCase extends TestCase { @@ -34,7 +34,7 @@ protected function prepareContainer(string|null $configurationFile = null, array { $containerFactory = new ContainerFactory([ new ApplicationExtension(), - new PhpDomainExtension(), + new GuidesPhpDomainExtension(), ...$extraExtensions, ]);