@@ -63,7 +63,7 @@ A very simple extension may just load configuration files into the container::
63
63
$loader->load('services.xml');
64
64
}
65
65
66
- //--
66
+ // ...
67
67
}
68
68
69
69
This does not gain very much compared to loading the file directly into the
@@ -77,11 +77,11 @@ relevant Extension.
77
77
78
78
The Extension must specify a ``getAlias `` method to implement the interface::
79
79
80
- //--
80
+ // ...
81
81
82
82
class AcmeDemoExtension implements ExtensionInterface
83
83
{
84
- //--
84
+ // ...
85
85
86
86
public function getAlias()
87
87
{
@@ -93,7 +93,7 @@ For YAML configuration files specifying the alias for the Extension as a key
93
93
will mean that those values are passed to the Extension's ``load `` method:
94
94
95
95
.. code-block :: yaml
96
- # --
96
+ # ...
97
97
98
98
acme_demo :
99
99
foo : fooValue
@@ -111,7 +111,7 @@ processed when the container is compiled at which point the Extensions are loade
111
111
$loader->load('config.yml');
112
112
113
113
$container->registerExtension(new AcmeDemoExtension);
114
- //--
114
+ // ...
115
115
$container->compile();
116
116
117
117
The values from those sections of the config files are passed into the first
@@ -141,7 +141,7 @@ and validate the config values. Using the configuration processing you could
141
141
access the config value this way::
142
142
143
143
use Symfony\Component\Config\Definition\Processor;
144
- //--
144
+ // ...
145
145
146
146
public function load(array $configs, ContainerBuilder $container)
147
147
{
@@ -152,7 +152,7 @@ access the config value this way::
152
152
$foo = $config['foo']; //fooValue
153
153
$bar = $config['bar']; //barValue
154
154
155
- //--
155
+ // ...
156
156
}
157
157
158
158
There are a further two methods you must implement. One to return the XML
@@ -208,7 +208,7 @@ and validation of the configuration thrown in::
208
208
209
209
$container->setParameter('acme_demo.FOO', $config['foo'])
210
210
211
- //--
211
+ // ...
212
212
}
213
213
214
214
More complex configuration requirements can be catered for in the Extension
@@ -320,7 +320,7 @@ configuration. The ``PhpDumper`` makes dumping the compiled container easy::
320
320
$container = new ProjectServiceContiner();
321
321
} else {
322
322
$container = new ContainerBuilder();
323
- //--
323
+ // ...
324
324
$container->compile();
325
325
326
326
$dumper = new PhpDumper($container);
@@ -366,7 +366,7 @@ but getting an up to date configuration whilst developing your application::
366
366
$container = new MyCachedContainer();
367
367
} else {
368
368
$container = new ContainerBuilder();
369
- //--
369
+ // ...
370
370
$container->compile();
371
371
372
372
if(!$isDebug)
@@ -397,7 +397,7 @@ and use them as metadata for the cache::
397
397
398
398
if (!$containerConfigCache->isFresh()) {
399
399
$containerBuilder = new ContainerBuilder();
400
- //--
400
+ // ...
401
401
$containerBuilder->compile();
402
402
403
403
$dumper = new PhpDumper($containerBuilder);
0 commit comments