FOF30\Factory\BasicFactory::transparentAuthentication PHP Méthode

transparentAuthentication() public méthode

Creates a new TransparentAuthentication handler
public transparentAuthentication ( array $config = [] ) : TransparentAuthentication
$config array The configuration values for the TransparentAuthentication object
Résultat FOF30\TransparentAuthentication\TransparentAuthentication
    public function transparentAuthentication(array $config = array())
    {
        $authClass = $this->container->getNamespacePrefix($this->getSection()) . 'TransparentAuthentication\\TransparentAuthentication';
        try {
            return $this->createTransparentAuthentication($authClass, $config);
        } catch (TransparentAuthenticationNotFound $e) {
            // Not found. Return the default TA
            return new TransparentAuthentication($this->container, $config);
        }
    }