Update basic stuff
This commit is contained in:
@@ -7,6 +7,6 @@ declare(strict_types=1);
|
||||
// Most of the time we probably want to have access to our bundle
|
||||
// in all environments (prod, dev, test etc).
|
||||
return [
|
||||
Pcm\ExampleBundle\PcmExampleBundle::class => ['all' => true],
|
||||
Pcm\BadgeBundle\PcmBadgeBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
|
||||
// This file is imported and used by the main bundle class to
|
||||
// define how the configuration should look.
|
||||
return static function (DefinitionConfigurator $definition): void {
|
||||
$definition->rootNode()
|
||||
->children()
|
||||
->scalarNode('name')->defaultValue('Mr. NoName')->cannotBeEmpty()->end()
|
||||
->end()
|
||||
;
|
||||
// $definition->rootNode()
|
||||
// ->children()
|
||||
// ->scalarNode('name')->defaultValue('Mr. NoName')->cannotBeEmpty()->end()
|
||||
// ->end()
|
||||
// ;
|
||||
};
|
||||
|
||||
|
||||
@@ -9,15 +9,15 @@ 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:
|
||||
public: false
|
||||
alias: pcm_example.greeting
|
||||
# Pcm\ExampleBundle\Greeting:
|
||||
# public: false
|
||||
# alias: pcm_example.greeting
|
||||
|
||||
|
||||
# Mark the alias we created as public.
|
||||
pcm_example.greeting:
|
||||
public: true
|
||||
class: Pcm\ExampleBundle\Greeting
|
||||
# pcm_example.greeting:
|
||||
# public: true
|
||||
# class: Pcm\ExampleBundle\Greeting
|
||||
|
||||
|
||||
# If we were defining a twig extension, we'd want to add the twig.runtime tag
|
||||
|
||||
Reference in New Issue
Block a user