/** * Exports workspace. * * @param SessionInterface $session * @param string $path * @param resource $stream */ private function export(SessionInterface $session, $path, $stream) { $session->exportSystemView($path, $stream, true, false); }