You are here

public static function MobileNumberAutoload::load in Mobile Number 7

Load.

1 call to MobileNumberAutoload::load()
mobile_number.libphonenumber.inc in include/mobile_number.libphonenumber.inc
Mobile_number.libphonenumber.inc.

File

include/mobile_number.libphonenumber.inc, line 20
Mobile_number.libphonenumber.inc.

Class

MobileNumberAutoload
Mobile number autoload.

Code

public static function load() {
  module_load_include('module', 'libraries');
  $classLoader = new ClassLoader();
  $classLoader
    ->set('libphonenumber', array(
    libraries_get_path('libphonenumber') . '/src',
  ));
  $classLoader
    ->setPsr4('libphonenumber\\', array(
    libraries_get_path('libphonenumber') . '/src',
  ));
  $classLoader
    ->register(TRUE);
  return $classLoader;
}