Imbo\Auth\AccessControl\Adapter\Mongo::deletePublicKey PHP Метод

deletePublicKey() публичный Метод

public deletePublicKey ( $publicKey )
    public function deletePublicKey($publicKey)
    {
        try {
            $result = $this->getAclCollection()->deleteOne(['publicKey' => $publicKey]);
            unset($this->publicKeys[$publicKey]);
            return (bool) $result->getDeletedCount();
        } catch (MongoException $e) {
            throw new DatabaseException('Could not delete key from database', 500, $e);
        }
    }