Skip to documentation

HookContentRenderer

Class
Final: Yes

Renders packaged Git hooks with project-owned configuration paths.

Table of Contents

Constants

MANAGED_GRUMPHP_CONFIG_PLACEHOLDER

Placeholder replaced with the durable project-local GrumPHP config path.

 = '__DEV_TOOLS_GRUMPHP_CONFIG__'

Methods

render()

Renders the hook contents for the active DevTools runtime.

 : string
Constants

Constants

MANAGED_GRUMPHP_CONFIG_PLACEHOLDER

Public

Placeholder replaced with the durable project-local GrumPHP config path.

public string MANAGED_GRUMPHP_CONFIG_PLACEHOLDER = '__DEV_TOOLS_GRUMPHP_CONFIG__'
Methods

render()

Public

Renders the hook contents for the active DevTools runtime.

public render( string  $contents) : string
Parameters
$contents : string

Description

the packaged hook contents

Return values
string

Description

the rendered hook contents

Search results