Skip to main content

Setup Package Cheatsheet

PublishCommand — publish package resources

Symfony Console command (publish) that copies packages/*/resources directories into a target directory.

ConfigPublishCommand — publish package config files

Symfony Console command (config:publish) that discovers and publishes individual config files from packages/*/resources/config into a target directory.
Config discovery reads composer.json extra.instructor.config for namespace and paths:
Falls back to scanning resources/config/ recursively for .yaml, .yml, .php files.

ConfigValidateCommand — validate published config

Symfony Console command (config:validate) that validates published config files against PublishedConfigRules.

ConfigCacheCommand — compile config cache

Symfony Console command (config:cache) that validates and compiles published config into a PHP cache file.

Supporting Classes

PackageResourceLocator — discover publishable resources

PackageResource — resource descriptor

PackageConfigDiscovery — discover package config files

ConfigPublishPlan — planned config publish entries

ConfigPublishEntry — single config file descriptor

Filesystem — file operations with dry-run support

Path — path resolution

PublishStatus — outcome enum

PublishSummary — aggregated results