Yalesov\Cron\Service\Registry::destroy PHP Method

destroy() public static method

clear the singleton
public static destroy ( ) : void
return void
    public static function destroy()
    {
        self::$instance = null;
    }

Usage Example

Example #1
0
 public function testDestroy()
 {
     $instance1 = Registry::getInstance();
     Registry::destroy();
     $instance2 = Registry::getInstance();
     $this->assertNotSame($instance1, $instance2);
 }
All Usage Examples Of Yalesov\Cron\Service\Registry::destroy