当前位置: 首页>>代码示例>>PHP>>正文


PHP ClassLoader::removeLoader方法代码示例

本文整理汇总了PHP中ClassLoader::removeLoader方法的典型用法代码示例。如果您正苦于以下问题:PHP ClassLoader::removeLoader方法的具体用法?PHP ClassLoader::removeLoader怎么用?PHP ClassLoader::removeLoader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ClassLoader的用法示例。


在下文中一共展示了ClassLoader::removeLoader方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: shutdownApplicationServer

 public static function shutdownApplicationServer()
 {
     self::$clientClassesLoader && ClassLoader::removeLoader(self::$clientClassesLoader);
     // Send shutdown message (this is not supported by live servers
     // but functionality added via EascMessageFactory::setHandler())
     try {
         $s = new Socket(self::$bindAddress[0], self::$bindAddress[1]);
         $s->connect();
         $s->write(pack('Nc4Na*', DEFAULT_PROTOCOL_MAGIC_NUMBER, 1, 0, 61, FALSE, 0, NULL));
         $s->close();
     } catch (Throwable $e) {
         // Fall through, below should terminate the process anyway
     }
     $status = self::$serverProcess->out->readLine();
     if (!strlen($status) || '+' != $status[0]) {
         while ($l = self::$serverProcess->out->readLine()) {
             $status .= $l;
         }
         while ($l = self::$serverProcess->err->readLine()) {
             $status .= $l;
         }
         self::$serverProcess->close();
         throw new IllegalStateException($status);
     }
     self::$serverProcess->close();
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:26,代码来源:IntegrationTest.class.php

示例2: tearDown

 /**
  * Tear down this test. Removes classloader delegates registered 
  * during setUp()
  */
 public function tearDown()
 {
     ClassLoader::removeLoader($this->libraryLoader);
     ClassLoader::removeLoader($this->containedLoader);
     ClassLoader::removeLoader($this->brokenLoader);
 }
开发者ID:xp-framework,项目名称:core,代码行数:10,代码来源:ClassLoaderTest.class.php

示例3: tearDown

 /**
  * Tear down this test. Removes classloader delegates registered 
  * during setUp()
  *
  * @return void
  */
 public function tearDown()
 {
     ClassLoader::removeLoader($this->libraryLoader);
 }
开发者ID:xp-framework,项目名称:core,代码行数:10,代码来源:PackageTest.class.php

示例4: tearDown

 /**
  * Removes all registered paths
  *
  */
 public function tearDown()
 {
     foreach ($this->registered as $l) {
         ClassLoader::removeLoader($l);
     }
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:10,代码来源:ClassPathTest.class.php

示例5: tearDown

 /**
  * Removes class loader
  */
 public function tearDown()
 {
     ClassLoader::removeLoader($this->cl);
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:7,代码来源:ResourcesTest.class.php


注:本文中的ClassLoader::removeLoader方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。