Skip to content

Commit 9542954

Browse files
Changing syntax used for missing code sections
1 parent 15e8e87 commit 9542954

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

components/dependency_injection/compilation.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ A very simple extension may just load configuration files into the container::
6363
$loader->load('services.xml');
6464
}
6565

66-
//--
66+
// ...
6767
}
6868

6969
This does not gain very much compared to loading the file directly into the
@@ -77,11 +77,11 @@ relevant Extension.
7777

7878
The Extension must specify a ``getAlias`` method to implement the interface::
7979

80-
//--
80+
// ...
8181

8282
class AcmeDemoExtension implements ExtensionInterface
8383
{
84-
//--
84+
// ...
8585

8686
public function getAlias()
8787
{
@@ -93,7 +93,7 @@ For YAML configuration files specifying the alias for the Extension as a key
9393
will mean that those values are passed to the Extension's ``load`` method:
9494

9595
.. code-block:: yaml
96-
#--
96+
# ...
9797
9898
acme_demo:
9999
foo: fooValue
@@ -111,7 +111,7 @@ processed when the container is compiled at which point the Extensions are loade
111111
$loader->load('config.yml');
112112

113113
$container->registerExtension(new AcmeDemoExtension);
114-
//--
114+
// ...
115115
$container->compile();
116116

117117
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
141141
access the config value this way::
142142

143143
use Symfony\Component\Config\Definition\Processor;
144-
//--
144+
// ...
145145

146146
public function load(array $configs, ContainerBuilder $container)
147147
{
@@ -152,7 +152,7 @@ access the config value this way::
152152
$foo = $config['foo']; //fooValue
153153
$bar = $config['bar']; //barValue
154154

155-
//--
155+
// ...
156156
}
157157

158158
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::
208208

209209
$container->setParameter('acme_demo.FOO', $config['foo'])
210210

211-
//--
211+
// ...
212212
}
213213

214214
More complex configuration requirements can be catered for in the Extension
@@ -320,7 +320,7 @@ configuration. The ``PhpDumper`` makes dumping the compiled container easy::
320320
$container = new ProjectServiceContiner();
321321
} else {
322322
$container = new ContainerBuilder();
323-
//--
323+
// ...
324324
$container->compile();
325325

326326
$dumper = new PhpDumper($container);
@@ -366,7 +366,7 @@ but getting an up to date configuration whilst developing your application::
366366
$container = new MyCachedContainer();
367367
} else {
368368
$container = new ContainerBuilder();
369-
//--
369+
// ...
370370
$container->compile();
371371

372372
if(!$isDebug)
@@ -397,7 +397,7 @@ and use them as metadata for the cache::
397397

398398
if (!$containerConfigCache->isFresh()) {
399399
$containerBuilder = new ContainerBuilder();
400-
//--
400+
// ...
401401
$containerBuilder->compile();
402402

403403
$dumper = new PhpDumper($containerBuilder);

0 commit comments

Comments
 (0)