return;
} if (!
$hook instanceof OptionalFunctionHook
) { throw new \
RuntimeException(sprintf( 'Required function "%s" missing in script "%s", please make sure you add the required block in your script.',
$hook->
getFunctionName(),
$script->
getName() ));
} $requiredFromVersion =
$hook->
willBeRequiredInVersion();
if ($requiredFromVersion) { ScriptTraces::
addDeprecationNotice(sprintf( 'Function "%s" will be required from %s onward, but is not implemented in script "%s", please make sure you add the block in your script.',
$hook->
getFunctionName(),
$requiredFromVersion,
$script->
getName() ));
} });
$this->
callAfter($services,
$hook,
$script);
}