PHP code example of alexandrebulete / ddd-activity-bundle
1. Go to this page and download the library: Download alexandrebulete/ddd-activity-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
alexandrebulete / ddd-activity-bundle example snippets
final readonly class ApproveDeployment implements CommandInterface, JournaledInterface
{
public function describeActivity(): ActivityDescription
{
return new ActivityDescription(
subjectType: 'mission',
subjectId: (string) $this->missionId,
summary: 'mission.deployment_approved', // translation key
summaryParams: ['release' => $this->release],
details: ['release' => $this->release],
);
}
}
$activityJournal->recordEffect(
'github.deployment_triggered',
new ActivityDescription(subjectType: 'mission', subjectId: $missionId),
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.