Skip to content

Commit e7aa288

Browse files
authored
Update prepend_extension.rst
Ensure the argument names are consistent and reflect the names of the interface's arguments.
1 parent 50f1f4d commit e7aa288

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bundles/prepend_extension.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,15 @@ method::
165165

166166
class FooBundle extends AbstractBundle
167167
{
168-
public function prependExtension(ContainerConfigurator $containerConfigurator, ContainerBuilder $containerBuilder): void
168+
public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void
169169
{
170170
// prepend
171-
$containerBuilder->prependExtensionConfig('framework', [
171+
$builder->prependExtensionConfig('framework', [
172172
'cache' => ['prefix_seed' => 'foo/bar'],
173173
]);
174174

175175
// prepend config from a file
176-
$containerConfigurator->import('../config/packages/cache.php');
176+
$container->import('../config/packages/cache.php');
177177
}
178178
}
179179

@@ -197,11 +197,11 @@ method::
197197

198198
class FooBundle extends AbstractBundle
199199
{
200-
public function prependExtension(ContainerConfigurator $containerConfigurator, ContainerBuilder $containerBuilder): void
200+
public function prependExtension(ContainerConfigurator $container, ContainerBuilder $builder): void
201201
{
202202
// ...
203203

204-
$containerConfigurator->extension('framework', [
204+
$container->extension('framework', [
205205
'cache' => ['prefix_seed' => 'foo/bar'],
206206
], prepend: true);
207207

0 commit comments

Comments
 (0)