Skip to content

Commit 1da7bf4

Browse files
yguedidiondrejmirtes
authored andcommitted
Add stubs for security factories
1 parent db81b18 commit 1da7bf4

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

extension.neon

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ parameters:
2323
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
2424
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
2525
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
26+
- stubs/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.stub
27+
- stubs/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FirewallListenerFactoryInterface.stub
2628
- stubs/Symfony/Component/Console/Command.stub
2729
- stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub
2830
- stubs/Symfony/Component/Console/Exception/InvalidArgumentException.stub
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
namespace Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory;
4+
5+
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
6+
use Symfony\Component\DependencyInjection\ContainerBuilder;
7+
8+
interface AuthenticatorFactoryInterface
9+
{
10+
/**
11+
* @param array<string, mixed> $config
12+
*
13+
* @return string|string[]
14+
*/
15+
public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId);
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
3+
namespace Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory;
4+
5+
use Symfony\Component\DependencyInjection\ContainerBuilder;
6+
7+
interface FirewallListenerFactoryInterface
8+
{
9+
/**
10+
* @param array<string, mixed> $config
11+
*
12+
* @return string[]
13+
*/
14+
public function createListeners(ContainerBuilder $container, string $firewallName, array $config): array;
15+
}

0 commit comments

Comments
 (0)