MCPcopy Create free account
hub / github.com/apache/thrift / loadClass

Method loadClass

lib/php/lib/ClassLoader/ThriftClassLoader.php:103–109  ·  view source on GitHub ↗

* Loads the given class, definition or interface. * * @param string $class The name of the class */

($class)

Source from the content-addressed store, hash-verified

101 * @param string $class The name of the class
102 */
103 public function loadClass($class)
104 {
105 if ((true === $this->apcu && ($file = $this->findFileInApcu($class)))
106 || ($file = $this->findFile($class))) {
107 require_once $file;
108 }
109 }
110
111 /**
112 * Loads the given class or interface in APCu.

Callers 2

testRegisterNamespaceMethod · 0.80

Calls 2

findFileInApcuMethod · 0.95
findFileMethod · 0.95

Tested by 2

testRegisterNamespaceMethod · 0.64