public function dispose() { $this->assertState(static::STATE_READY); try { $this->platform->removeTempDirectory($this->config->dataroot); } catch (PlatformException $e) { if ($e->getCode() !== PlatformException::CODE_UNKNOWN_TEMP_DIRECTORY) { throw $e; } } $this->state = static::STATE_DISPOSED; }