Skip to content

Commit

Permalink
Add stubs for security factories
Browse files Browse the repository at this point in the history
  • Loading branch information
yguedidi authored and ondrejmirtes committed Apr 5, 2023
1 parent db81b18 commit 1da7bf4
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extension.neon
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ parameters:
- stubs/Symfony/Bundle/FrameworkBundle/KernelBrowser.stub
- stubs/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.stub
- stubs/Symfony/Bundle/FrameworkBundle/Test/TestContainer.stub
- stubs/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/AuthenticatorFactoryInterface.stub
- stubs/Symfony/Bundle/SecurityBundle/DependencyInjection/Security/Factory/FirewallListenerFactoryInterface.stub
- stubs/Symfony/Component/Console/Command.stub
- stubs/Symfony/Component/Console/Exception/ExceptionInterface.stub
- stubs/Symfony/Component/Console/Exception/InvalidArgumentException.stub
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory;

use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;

interface AuthenticatorFactoryInterface
{
/**
* @param array<string, mixed> $config
*
* @return string|string[]
*/
public function createAuthenticator(ContainerBuilder $container, string $firewallName, array $config, string $userProviderId);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace Symfony\Bundle\SecurityBundle\DependencyInjection\Security\Factory;

use Symfony\Component\DependencyInjection\ContainerBuilder;

interface FirewallListenerFactoryInterface
{
/**
* @param array<string, mixed> $config
*
* @return string[]
*/
public function createListeners(ContainerBuilder $container, string $firewallName, array $config): array;
}

0 comments on commit 1da7bf4

Please sign in to comment.