8000 minor #49783 Improve security factory signatures (yguedidi) · kbond/symfony@1cea7c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cea7c6

Browse files
committed
minor symfony#49783 Improve security factory signatures (yguedidi)
This PR was merged into the 6.3 branch. Discussion ---------- Improve security factory signatures | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - <!-- Replace this notice by a short README for your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the latest branch. - For new features, provide some code snippets to help understand usage. - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Adds key type to the config parameter of security factories Commits ------- 276c5a7 Improve security factory signatures
2 parents 26f209d + 276c5a7 commit 1cea7c6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public function addConfiguration(NodeDefinition $builder);
3838
/**
3939
* Creates the authenticator service(s) for the provided configuration.
4040
*
41+
* @param array<string, mixed> $config
42+
*
4143
* @return string|string[] The authenticator service ID(s) to be used by the firewall
4244
*/
4345
public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId): string|array;

src/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FirewallListenerFactoryInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ interface FirewallListenerFactoryInterface
2323
/**
2424
* Creates the firewall listener services for the provided configuration.
2525
*
26+
* @param array<string, mixed> $config
27+
*
2628
* @return string[] The listener service IDs to be used by the firewall
2729
*/
2830
public function createListeners(ContainerBuilder $container, string $firewallName, array $config): array;

0 commit comments

Comments
 (0)
0