Run quickstart script

This commit is contained in:
brabli
2025-11-27 13:31:15 +00:00
parent 2a82b5c0b1
commit 0633768582
7 changed files with 13 additions and 13 deletions

View File

@@ -16,13 +16,13 @@
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Pcm\\ExampleBundle\\": "src/" "Pcm\\MetadataBundle\\": "src/"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"Pcm\\ExampleBundle\\Tests\\": "tests/" "Pcm\\MetadataBundle\\Tests\\": "tests/"
} }
}, },

View File

@@ -9,6 +9,6 @@ declare(strict_types=1);
* all environments (prod, dev, test etc). * all environments (prod, dev, test etc).
*/ */
return [ return [
Pcm\ExampleBundle\PcmExampleBundle::class => ['all' => true], Pcm\MetadataBundle\PcmMetadataBundle::class => ['all' => true],
]; ];

View File

@@ -9,7 +9,7 @@ services:
# Read the documentation to see why we do this: # Read the documentation to see why we do this:
# https://symfony.com/doc/current/service_container/autowiring.html#service-autowiring-alias # https://symfony.com/doc/current/service_container/autowiring.html#service-autowiring-alias
# #
Pcm\ExampleBundle\Greeting: Pcm\MetadataBundle\Greeting:
public: false public: false
alias: pcm_example.greeting alias: pcm_example.greeting
@@ -17,12 +17,12 @@ services:
# Mark the alias we created as public. # Mark the alias we created as public.
pcm_example.greeting: pcm_example.greeting:
public: true 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 # If we were defining a twig extension, we'd want to add the twig.runtime tag
# so it loads correctly. # so it loads correctly.
# #
# Pcm\ExampleBundle\SomeTwigRuntime # Pcm\MetadataBundle\SomeTwigRuntime
# tags: # tags:
# - { name: twig.runtime } # - { name: twig.runtime }

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace Pcm\ExampleBundle; namespace Pcm\MetadataBundle;
final class Greeting final class Greeting
{ {

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace Pcm\ExampleBundle; namespace Pcm\MetadataBundle;
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator; use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -12,7 +12,7 @@ use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
/** /**
* This class represents the bundle. * This class represents the bundle.
*/ */
final class PcmExampleBundle extends AbstractBundle final class PcmMetadataBundle extends AbstractBundle
{ {
/** /**
* @param array<string, mixed> $config * @param array<string, mixed> $config

View File

@@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace Pcm\ExampleBundle\Tests\Config; namespace Pcm\MetadataBundle\Tests\Config;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration; use Symfony\Bundle\FrameworkBundle\DependencyInjection\Configuration;

View File

@@ -2,9 +2,9 @@
declare(strict_types=1); 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\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\HttpKernel\Kernel;
@@ -13,7 +13,7 @@ final class TestKernel extends Kernel
public function registerBundles(): array public function registerBundles(): array
{ {
return [ return [
new PcmExampleBundle() new PcmMetadataBundle()
]; ];
} }