PhpSandbox\PHPSandbox::isWhitelistedInterface PHP Méthode

isWhitelistedInterface() public méthode

Check if PHPSandbox instance has whitelisted interface name set
public isWhitelistedInterface ( string $name ) : boolean
$name string String of interface $name to query
Résultat boolean Returns true if PHPSandbox instance has whitelisted interface $name, false otherwise
    public function isWhitelistedInterface($name)
    {
        $name = $this->normalizeInterface($name);
        return isset($this->whitelist['interfaces'][$name]);
    }
PHPSandbox