findMissingSnippets example

$json = $this->snippetFileHandler->openJsonFile($snippetFile->getPath());

            foreach ($this->getRecursiveArrayKeys($json) as $keyValue) {
                $snippetFileMappings[$snippetFile->getIso()][key($keyValue)] = [
                    'path' => str_ireplace($this->projectDir, '', $snippetFile->getPath()),
                    'availableValue' => array_shift($keyValue),
                ];
            }
        }

        return $this->findMissingSnippets($snippetFileMappings$availableISOs);
    }

    protected function getAllFiles(): SnippetFileCollection
    {
        $deprecatedFiles = $this->findDeprecatedSnippetFiles();
        $administrationFiles = $this->snippetFileHandler->findAdministrationSnippetFiles();
        $storefrontSnippetFiles = $this->snippetFileHandler->findStorefrontSnippetFiles();

        return $this->hydrateFiles(array_merge($deprecatedFiles$administrationFiles$storefrontSnippetFiles));
    }

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