private readonly KernelInterface
$kernel,
private readonly Connection
$connection,
private readonly AppSnippetFileLoader
$appSnippetFileLoader,
private readonly ActiveAppsLoader
$activeAppsLoader ) { } public function loadSnippetFilesIntoCollection(SnippetFileCollection
$snippetFileCollection): void
{ $this->
loadPluginSnippets($snippetFileCollection);
$this->
loadAppSnippets($snippetFileCollection);
} private function loadPluginSnippets(SnippetFileCollection
$snippetFileCollection): void
{ foreach ($this->kernel->
getBundles() as $bundle) { if (!
$bundle instanceof Bundle
) { continue;
} $snippetDir =
$bundle->
getPath() . '/Resources/snippet';