return;
} if ($hook instanceof InterfaceHook
) { throw new \
RuntimeException(sprintf( 'Tried to execute InterfaceHook "%s", butInterfaceHooks should not be executed, execute the functions of the hook instead',
$hook::
class D
);
} $scripts =
$this->loader->
get($hook->
getName());
$this->traces->
initHook($hook);
foreach ($scripts as $script) { $scriptAppInfo =
$script->
getScriptAppInformation();
if ($scriptAppInfo &&
$hook instanceof AppSpecificHook &&
$hook->
getAppId() !==
$scriptAppInfo->
getAppId()) { // only execute scripts from the app the hook specifies
continue;
} if (!
$hook instanceof AppLifecycleHook && !
$script->
isActive()) { continue;
}