Skip to content

Infrastructure commands

This package command generates Infrastructure Adapters. Its syntax and output patterns are generated from the manifest.

make:adapter

Create a new infrastructure adapter

Synopsis

make:adapter [--contract CONTRACT] [--domain DOMAIN] [--] <name> <area>

Arguments and options

  • name — The name of the adapter
  • area — The infrastructure capability area
  • --contract=VALUE — The Contract FQCN or capability name
  • --domain=VALUE — The domain that owns the Contract

Use

Prerequisites
Use a valid generated type name and create its required parent Service or Domain first.
Effect
Creates the selected generated application type at the manifest-defined path.
Generated paths or files
app/Pulsar/Infrastructure/{Area}/{Name}.php
Success output shape
Reports the command outcome; file generators report their generated location.
Expected failures
Invalid names, missing parents, and duplicate target files fail without replacing an existing file.
Overwrite policy
Existing generated files are not overwritten.

Checked example

pulsar make:adapter StripeGateway Payments --contract=PaymentGateway --domain=Billing

See the related reference.

Last updated: