mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-27 09:30:38 +00:00
22 lines
427 B
PHP
22 lines
427 B
PHP
<?php
|
|
|
|
namespace Wallabag\SiteConfig\Authenticator;
|
|
|
|
use Wallabag\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);
|
|
}
|
|
}
|