use BD\GuzzleSiteAuthenticator\SiteConfig\SiteConfig;
use BD\GuzzleSiteAuthenticator\SiteConfig\SiteConfigBuilder;
use Graby\SiteConfig\ConfigBuilder;
-use OutOfRangeException;
use Psr\Log\LoggerInterface;
class GrabySiteConfigBuilder implements SiteConfigBuilder
}
/**
- * Builds the SiteConfig for a host.
- *
- * @param string $host The "www." prefix is ignored
- *
- * @return SiteConfig
- *
- * @throws OutOfRangeException If there is no config for $host
+ * {@inheritdoc}
*/
public function buildForHost($host)
{
$host = substr($host, 4);
}
- if (!isset($this->credentials[$host])) {
+ if (empty($this->credentials[$host])) {
$this->logger->debug('Auth: no credentials available for host.', ['host' => $host]);
return false;