You are here

function requireDependencies in Commerce Braintree 7

1 call to requireDependencies()
Braintree.php in braintree_php/lib/Braintree.php

File

braintree_php/lib/Braintree.php, line 161

Code

function requireDependencies() {
  $requiredExtensions = array(
    'xmlwriter',
    'SimpleXML',
    'openssl',
    'dom',
    'hash',
    'curl',
  );
  foreach ($requiredExtensions as $ext) {
    if (!extension_loaded($ext)) {
      throw new Braintree_Exception('The Braintree library requires the ' . $ext . ' extension.');
    }
  }
}