mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-07 15:53:13 +08:00
17 lines
438 B
PHP
17 lines
438 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Shlinkio\Shlink\Rest\Authentication;
|
|
|
|
use Psr\Container\ContainerInterface;
|
|
|
|
class AuthenticationPluginManagerFactory
|
|
{
|
|
public function __invoke(ContainerInterface $container): AuthenticationPluginManager
|
|
{
|
|
$config = $container->has('config') ? $container->get('config') : [];
|
|
return new AuthenticationPluginManager($container, $config['auth']['plugins'] ?? []);
|
|
}
|
|
}
|