} /**
* @throws PluginNotFoundException
*/
private function getBundle(string
$bundleName): BundleInterface
{ try { $bundle =
$this->kernel->
getBundle($bundleName);
} catch (\InvalidArgumentException
) { $bundle =
$this->pluginLoader->
getPluginInstances()->
get($bundleName);
} if ($bundle === null
) { throw new PluginNotFoundException($bundleName);
} return $bundle;
} /**
* @return array<BundleInterface>
*/