Registry::clear PHP Method

clear() static public method

Delete object from catalog
static public clear ( $key ) : null
$key string
return null
    static function clear($key)
    {
        self::$table[$key] = NULL;
        unset(self::$table[$key]);
    }

Usage Example

コード例 #1
0
ファイル: RegistryTest.php プロジェクト: qasem2rubik/laravel
 /**
  * @covers Monolog\Registry::clear
  */
 public function testClearClears()
 {
     Registry::addLogger(new Logger('test1'), 'log');
     Registry::clear();
     $this->setExpectedException('\\InvalidArgumentException');
     Registry::getInstance('log');
 }
All Usage Examples Of Registry::clear