For developers
Events
In the namespace Pdir\PactumBundle\Event:
| Event | When |
|---|---|
InvitationCreatedEvent | an invitation was created |
OptInConfirmedEvent | the customer confirmed the e-mail address |
AgreementCompletedEvent | the agreement was concluded |
VersionPublishedEvent | a version was published |
Custom placeholders
A class implementing Pdir\PactumBundle\Rendering\PlaceholderProviderInterface is registered automatically and
provides additional placeholders for the contract text.
Notifications
For a different delivery channel, e.g. the Notification Center, replace the alias of
Pdir\PactumBundle\Notification\NotificationDispatcherInterface. A ready-made Notification Center integration is
planned for version 1.1.
Templates
All front-end, mail and PDF templates are Twig templates in the @Contao namespace (pactum/…) and can be
overridden in your project, e.g.:
templates/pactum/mail/invitation.html.twigtemplates/pactum/mail/text/invitation.txt.twig
Console commands
| Command | Purpose |
|---|---|
pactum:sample:import <template-id> | import the sample text (DE/EN) as a draft |
pactum:verify <agreement-id> | verify checksums and evidence of an agreement |
pactum:cleanup | run the clean-up manually |