Update basic stuff

This commit is contained in:
brabli
2024-08-07 16:47:56 +01:00
parent a4f4e1990c
commit 0d29da03c4
7 changed files with 24 additions and 48 deletions

View File

@@ -1,18 +0,0 @@
<?php
declare(strict_types=1);
namespace Pcm\ExampleBundle;
final class Greeting
{
public function __construct(private string $name)
{
}
public function greetPerson(): string
{
return sprintf("Hello there %s! Hope you're well.", $this->name);
}
}

View File

@@ -2,14 +2,14 @@
declare(strict_types=1);
namespace Pcm\ExampleBundle;
namespace Pcm\BadgeBundle;
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\HttpKernel\Bundle\AbstractBundle;
final class PcmExampleBundle extends AbstractBundle
final class PcmBadgeBundle extends AbstractBundle
{
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
{
@@ -27,10 +27,10 @@ final class PcmExampleBundle extends AbstractBundle
*
* (see services.yaml)
*/
$container->services()
->get('pcm_example.greeting')
->arg('$name', $config['name'])
;
// $container->services()
// ->get('pcm_example.greeting')
// ->arg('$name', $config['name'])
// ;
}
public function configure(DefinitionConfigurator $definition): void