From 0633768582d4cf60c4cad4499b704a66a08536c1 Mon Sep 17 00:00:00 2001 From: brabli <67018167+brabli@users.noreply.github.com> Date: Thu, 27 Nov 2025 13:31:15 +0000 Subject: [PATCH] Run quickstart script --- composer.json | 4 ++-- config/bundles.php | 2 +- config/services.yaml | 6 +++--- src/Greeting.php | 2 +- src/{PcmExampleBundle.php => PcmMetadataBundle.php} | 4 ++-- tests/Config/ConfigurationTest.php | 2 +- tests/TestKernel.php | 6 +++--- 7 files changed, 13 insertions(+), 13 deletions(-) rename src/{PcmExampleBundle.php => PcmMetadataBundle.php} (94%) diff --git a/composer.json b/composer.json index 5946fdc..f1a1b01 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ "autoload": { "psr-4": { - "Pcm\\ExampleBundle\\": "src/" + "Pcm\\MetadataBundle\\": "src/" } }, "autoload-dev": { "psr-4": { - "Pcm\\ExampleBundle\\Tests\\": "tests/" + "Pcm\\MetadataBundle\\Tests\\": "tests/" } }, diff --git a/config/bundles.php b/config/bundles.php index bf25021..1f7f4b3 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -9,6 +9,6 @@ declare(strict_types=1); * all environments (prod, dev, test etc). */ return [ - Pcm\ExampleBundle\PcmExampleBundle::class => ['all' => true], + Pcm\MetadataBundle\PcmMetadataBundle::class => ['all' => true], ]; diff --git a/config/services.yaml b/config/services.yaml index 382ef0b..1dd317f 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -9,7 +9,7 @@ services: # Read the documentation to see why we do this: # https://symfony.com/doc/current/service_container/autowiring.html#service-autowiring-alias # - Pcm\ExampleBundle\Greeting: + Pcm\MetadataBundle\Greeting: public: false alias: pcm_example.greeting @@ -17,12 +17,12 @@ services: # Mark the alias we created as public. pcm_example.greeting: public: true - class: Pcm\ExampleBundle\Greeting + class: Pcm\MetadataBundle\Greeting # If we were defining a twig extension, we'd want to add the twig.runtime tag # so it loads correctly. # - # Pcm\ExampleBundle\SomeTwigRuntime + # Pcm\MetadataBundle\SomeTwigRuntime # tags: # - { name: twig.runtime } diff --git a/src/Greeting.php b/src/Greeting.php index 7aa7f91..f491dbd 100644 --- a/src/Greeting.php +++ b/src/Greeting.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pcm\ExampleBundle; +namespace Pcm\MetadataBundle; final class Greeting { diff --git a/src/PcmExampleBundle.php b/src/PcmMetadataBundle.php similarity index 94% rename from src/PcmExampleBundle.php rename to src/PcmMetadataBundle.php index fcc189c..99ffdf6 100644 --- a/src/PcmExampleBundle.php +++ b/src/PcmMetadataBundle.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pcm\ExampleBundle; +namespace Pcm\MetadataBundle; use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator; use Symfony\Component\DependencyInjection\ContainerBuilder; @@ -12,7 +12,7 @@ use Symfony\Component\HttpKernel\Bundle\AbstractBundle; /** * This class represents the bundle. */ -final class PcmExampleBundle extends AbstractBundle +final class PcmMetadataBundle extends AbstractBundle { /** * @param array $config diff --git a/tests/Config/ConfigurationTest.php b/tests/Config/ConfigurationTest.php index 01c9ff8..a5e3325 100644 --- a/tests/Config/ConfigurationTest.php +++ b/tests/Config/ConfigurationTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Pcm\ExampleBundle\Tests\Config; +namespace Pcm\MetadataBundle\Tests\Config; use PHPUnit\Framework\TestCase; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration; diff --git a/tests/TestKernel.php b/tests/TestKernel.php index 11728ac..231dc8c 100644 --- a/tests/TestKernel.php +++ b/tests/TestKernel.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Pcm\ExampleBundle\Tests; +namespace Pcm\MetadataBundle\Tests; -use Pcm\ExampleBundle\PcmExampleBundle; +use Pcm\MetadataBundle\PcmMetadataBundle; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\HttpKernel\Kernel; @@ -13,7 +13,7 @@ final class TestKernel extends Kernel public function registerBundles(): array { return [ - new PcmExampleBundle() + new PcmMetadataBundle() ]; }