Skip to content

HookContentRenderer

github-actions edited this page Apr 30, 2026 · 1 revision

Renders packaged Git hooks with runtime-specific DevTools hook configuration paths.


  • Full name: \FastForward\DevTools\GitHooks\HookContentRenderer
  • This class is marked as final and can't be subclassed
  • This class is a Final class

Constants

Constant Visibility Type Value
MANAGED_GRUMPHP_CONFIG_PLACEHOLDER public 'DEV_TOOLS_GRUMPHP_CONFIG'

Methods

render

Renders the hook contents for the active DevTools runtime.

public render(string $contents, string $projectPath = ''): string

Parameters:

Parameter Type Description
$contents string the packaged hook contents
$projectPath string the consumer project root that will own the synchronized hook

Return Value:

the rendered hook contents


Clone this wiki locally