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

Example #1
0
 /**
  * @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