mirror of
https://github.com/wallabag/wallabag.git
synced 2024-05-20 01:58:06 +00:00
22 lines
449 B
PHP
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);
|
|
}
|
|
}
|