$template =
$this->repository->
findOneBy([ 'template' =>
$theme->
getTemplate(),
]);
// No parent configured? cancel injection.
if (!
$template instanceof Template || !
$template->
getParent() instanceof Template
) { return;
} // get Theme.php instance of the parent template
$parent =
$this->util->
getThemeByTemplate( $template->
getParent() );
$this->
injectConfig($parent,
$container);
$parent->
createConfig($container);
} /**
* Helper function which checks if the configuration set is
* already existing in the passed collection.
*
* @param Collection<int, Set> $collection
*/