Skip to content
docsv0.17.1

GraphOperations

The door every surface reaches a declared graph through. These are ordinary declared operations, so `graph:start` is a `coa` command, an MCP tool and an HTTP route from one declaration — and the Desktop reads `graph:pending` through the same door a terminal does. That is the point of putting them here rather than building a bespoke API: a run parked in a log is answerable from wherever the human happens to be. List it in an app's `config/operations.php`. It needs a {@see GraphRuns} in the container, which is where the app says WHICH graphs it declares.

GraphOperations::__construct()

public function __construct(Milpa\Interfaces\Di\DIContainerInterface $container):

Parameters

Parameters of __construct()
NameTypeDescription
$containerMilpa\Interfaces\Di\DIContainerInterface

GraphOperations::operations()

public function operations(): array

The six graph operations, each projected to every surface this app exposes.