Skip to content

Commit 38d4354

Browse files
committed
minor symfony#17131 [DependencyInjection] Change the ExtensionInterface load method definition (mmarchois)
This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes symfony#17131). Discussion ---------- [DependencyInjection] Change the ExtensionInterface load method definition | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | symfony/symfony-docs#5988 This PR change the `Symfony\Component\DependencyInjection\Extension\ExtensionInterface` load method definition to be identical to the documentation : `public function load(array $configs, ContainerBuilder $container);` Commits ------- 85c271b Change the ExtensionInterface load method definition to bo identical to the documentation.
2 parents e6d5de5 + 85c271b commit 38d4354

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/FirewallEntryPointBundle/DependencyInjection/FirewallEntryPointExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class FirewallEntryPointExtension extends Extension
2020
{
21-
public function load(array $config, ContainerBuilder $container)
21+
public function load(array $configs, ContainerBuilder $container)
2222
{
2323
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
2424
$loader->load('services.xml');

src/Symfony/Component/DependencyInjection/Extension/ExtensionInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ interface ExtensionInterface
2323
/**
2424
* Loads a specific configuration.
2525
*
26-
* @param array $config An array of configuration values
26+
* @param array $configs An array of configuration values
2727
* @param ContainerBuilder $container A ContainerBuilder instance
2828
*
2929
* @throws \InvalidArgumentException When provided tag is not defined in this extension
3030
*/
31-
public function load(array $config, ContainerBuilder $container);
31+
public function load(array $configs, ContainerBuilder $container);
3232

3333
/**
3434
* Returns the namespace to be used for this extension (XML namespace).

0 commit comments

Comments
 (0)