本文整理汇总了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();
}
示例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);
}
示例3: tearDown
/**
* Tear down this test. Removes classloader delegates registered
* during setUp()
*
* @return void
*/
public function tearDown()
{
ClassLoader::removeLoader($this->libraryLoader);
}
示例4: tearDown
/**
* Removes all registered paths
*
*/
public function tearDown()
{
foreach ($this->registered as $l) {
ClassLoader::removeLoader($l);
}
}
示例5: tearDown
/**
* Removes class loader
*/
public function tearDown()
{
ClassLoader::removeLoader($this->cl);
}