Initial commit
This commit is contained in:
14
config/bundles.php
Normal file
14
config/bundles.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Here we define the environments the bundle is allowed to be in.
|
||||
*
|
||||
* Most of the time we probably want our bundle to be present in
|
||||
* all environments (prod, dev, test etc).
|
||||
*/
|
||||
return [
|
||||
Pcm\ExampleBundle\PcmExampleBundle::class => ['all' => true],
|
||||
];
|
||||
|
||||
18
config/definition.php
Normal file
18
config/definition.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Symfony\Component\Config\Definition\Configurator\DefinitionConfigurator;
|
||||
|
||||
/**
|
||||
* This file defines the layout of the configuration, type constraints
|
||||
* and any default argument values.
|
||||
*/
|
||||
return static function (DefinitionConfigurator $definition): void {
|
||||
$definition->rootNode()
|
||||
->children()
|
||||
->scalarNode('name')->defaultValue('Mr. NoName')->cannotBeEmpty()->end()
|
||||
->end()
|
||||
;
|
||||
};
|
||||
|
||||
28
config/services.yaml
Normal file
28
config/services.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
||||
# Hide the fully qualified Greeting class name from public view
|
||||
# but give the class an alias. This alias will be made public instead.
|
||||
#
|
||||
# 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
|
||||
|
||||
|
||||
# Mark the alias we created as public.
|
||||
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
|
||||
# so it loads correctly.
|
||||
#
|
||||
# Pcm\ExampleBundle\SomeTwigRuntime
|
||||
# tags:
|
||||
# - { name: twig.runtime }
|
||||
Reference in New Issue
Block a user