QueryPath\ExtensionRegistry::autoloadExtensions PHP Method

autoloadExtensions() public static method

If extension autoloading is disabled, then QueryPath will not automatically load all registred extensions when a new Query object is created using qp().
public static autoloadExtensions ( $boolean = true )
    public static function autoloadExtensions($boolean = true)
    {
        self::$useRegistry = $boolean;
    }

Usage Example

 /**
  * @expectedException \QueryPath\Exception
  */
 public function testAutoloadExtensions()
 {
     // FIXME: This isn't really much of a test.
     ExtensionRegistry::autoloadExtensions(FALSE);
     try {
         qp()->stubToe();
     } catch (Exception $e) {
         ExtensionRegistry::autoloadExtensions(TRUE);
         throw $e;
     }
 }