continue;
} if (!
$hook instanceof AppLifecycleHook && !
$script->
isActive()) { continue;
} try { static::
$isInScriptExecutionContext = true;
$this->
render($hook,
$script);
} catch (\Throwable
$e) { $scriptException =
new ScriptExecutionFailedException($hook->
getName(),
$script->
getName(),
$e);
$this->logger->
error($scriptException->
getMessage(),
['exception' =>
$e]);
throw $scriptException;
} finally { static::
$isInScriptExecutionContext = false;
} if ($hook instanceof StoppableHook &&
$hook->
isPropagationStopped()) { break;
} } }