wallabag/src/Wallabag/CoreBundle/SiteConfig/Authenticator/Factory.php
2024-02-02 22:36:27 +01:00

22 lines
449 B
PHP

<?php
namespace Wallabag\CoreBundle\SiteConfig\Authenticator;
use Wallabag\CoreBundle\SiteConfig\SiteConfig;
/**
* Builds an Authenticator based on a SiteConfig.
*/
class Factory
{
/**
* @return Authenticator
*
* @throw \OutOfRangeException if there are no credentials for this host
*/
public function buildFromSiteConfig(SiteConfig $siteConfig)
{
return new LoginFormAuthenticator($siteConfig);
}
}