Skip to content

Worked extension examples

These developer-facing recipes are kept beside the package contract. Replace the example values with the site-specific records and data objects used by the calling workflow.

<?php
declare(strict_types=1);
final class ExampleCommandPaletteProviderImplementation implements \Capell\Diagnostics\Contracts\CommandPaletteProvider
{
/**
* @return array<string, CommandPaletteCommandData>
*/
public function commandPaletteCommands(): array
{
throw new LogicException('Implement this package contract for the calling site.');
}
}
app()->bind(\Capell\Diagnostics\Contracts\CommandPaletteProvider::class, ExampleCommandPaletteProviderImplementation::class);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildCacheHealthAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildConfigDriftAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Health\BuildExtensionHealthTrendAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\DashboardReports\BuildInfrastructureStatusAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildMigrationsHealthAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildPackagesInstalledAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\DashboardReports\BuildPermissionAuditQueryAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\DashboardReports\BuildPublicOutputSafetyReportAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\DashboardReports\BuildQueueHealthQueryAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\DashboardReports\BuildQueueOperationsStatsAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildRegistryHealthAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildSetupHealthAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Dashboard\BuildTailwindBuildStatusAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\DiscoverInstalledExtensionManifestsAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\EnsureDiagnosticsPermissionsAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\InspectPackageOwnershipAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\CommandPalette\PruneCommandPaletteRunsAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Health\RecordExtensionHealthReportAction::class)->handle(...$inputs);
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\Diagnostics\Actions\Health\RunExtensionHealthChecksAction::class)->handle(...$inputs);