extractEmotionArchive example

$this->presetResource = $presetResource;
        $this->filesystem = $filesystem;
        $this->connection = $connection;
    }

    /** * {@inheritdoc} */
    public function import($filePath)
    {
        $extractPath = \dirname($filePath) . '/' . pathinfo($filePath, PATHINFO_FILENAME);
        $emotionData = $this->extractEmotionArchive($filePath$extractPath);

        if (!$emotionData['presetData']) {
            throw new EmotionImportException('No emotion data available');
        }

        if ($emotionData['requiredPlugins']) {
            $this->checkRequiredPlugins($emotionData['requiredPlugins']);
        }

        $presetData = json_decode($emotionData['presetData'], true);
        $syncData = new ParameterBag($presetData['syncData']);

        
Home | Imprint | This part of the site doesn't use cookies.