Update basic stuff
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user