本文整理汇总了PHP中EventManager::clearInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP EventManager::clearInstance方法的具体用法?PHP EventManager::clearInstance怎么用?PHP EventManager::clearInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EventManager
的用法示例。
在下文中一共展示了EventManager::clearInstance方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
EventManager::clearInstance();
ProjectManager::clearInstance();
UserManager::clearInstance();
parent::tearDown();
}
示例2: tearDown
public function tearDown() {
unlink($GLOBALS['alias_file']);
unset($GLOBALS['alias_file']);
//clear the cache between each tests
Backend::clearInstances();
EventManager::clearInstance();
}
示例3: tearDown
public function tearDown()
{
parent::tearDown();
EventManager::clearInstance();
unset($GLOBALS['homedir_prefix']);
$backend = Backend::instance();
$backend->recurseDeleteInDir($this->toto_home);
rmdir($this->toto_home);
$backend->recurseDeleteInDir($this->foobar_home);
rmdir($this->foobar_home);
}
示例4: tearDown
public function tearDown()
{
ForgeConfig::restore();
$this->mysqli->query('DELETE FROM groups WHERE unix_group_name = "short-name"');
unset($GLOBALS['svn_prefix']);
unset($GLOBALS['cvs_prefix']);
unset($GLOBALS['grpdir_prefix']);
unset($GLOBALS['ftp_frs_dir_prefix']);
unset($GLOBALS['ftp_anon_dir_prefix']);
unset($GLOBALS['sys_default_domain']);
unset($GLOBALS['sys_cookie_prefix']);
unset($GLOBALS['sys_force_ssl']);
$GLOBALS['sys_pluginsroot'] = $this->old_sys_pluginsroot;
$GLOBALS['sys_custompluginsroot'] = $this->old_sys_custompluginsroot;
EventManager::clearInstance();
PluginManager::instance()->invalidateCache();
PluginFactory::clearInstance();
$GLOBALS = $this->old_globals;
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
EventManager::clearInstance();
}
示例6: tearDown
public function tearDown()
{
parent::tearDown();
EventManager::clearInstance();
}
示例7: tearDown
function tearDown() {
//clear the cache between each tests
Backend::clearInstances();
EventManager::clearInstance();
}
示例8: tearDown
public function tearDown()
{
EventManager::clearInstance();
ForgeConfig::restore();
parent::tearDown();
}