composer

package
v1.28.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package composer holds settings shared by every code path that runs composer inside a lerd FPM container — the `lerd composer` CLI and the MCP composer tools alike — so they stay consistent.

Index

Constants

View Source
const DefaultProcessTimeout = "1800"

DefaultProcessTimeout raises composer's per-process timeout from its 300s default to 30 minutes. Composer kills any script that outruns this, and the post-autoload-dump `package:discover` boots the whole application, which on a container filesystem (cold opcache, bind-mounted vendor/) can legitimately run well past 300s — long enough that an otherwise-successful `composer require` dies mid-script. See geodro/lerd#449.

Variables

This section is empty.

Functions

func ProcessTimeoutEnv

func ProcessTimeoutEnv() string

ProcessTimeoutEnv returns the COMPOSER_PROCESS_TIMEOUT `KEY=VALUE` entry to inject into the container exec. A non-empty host value always wins, so users keep full control (including `0` to disable the timeout entirely); otherwise lerd applies its higher default in place of composer's stock 300s.

Types

This section is empty.

Jump to

Keyboard shortcuts

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