startup

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package startup runs PHP files annotated with @startup during service startup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	platform.UnimplementedModule
	// contains filtered or unexported fields
}

Module executes annotated PHP files before the platform starts its server.

func NewModule

func NewModule(root fs.FS, rootDir string, out io.Writer, options runner.Options, flatstack bool, observers ...runner.Observer) *Module

NewModule creates a startup lifecycle module.

func (*Module) Start

func (m *Module) Start(ctx context.Context) error

Start finds and executes every PHP file containing an @startup comment.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL