mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-18 11:48:06 +00:00
Add support for audit event dumping and improve subject rendering flexibility
- Added `AuditEventDumper` class to generate and store CSV exports of audit events based on search criteria. - Updated `SubjectDisplayerInterface` and related classes to support multiple output formats (`html` or `string`) for subject rendering.
This commit is contained in:
@@ -43,11 +43,11 @@ final readonly class SubjectConverterManager implements SubjectConverterManagerI
|
||||
throw new ConvertSubjectException($subject);
|
||||
}
|
||||
|
||||
public function display(Subject $subject, array $options = []): string
|
||||
public function display(Subject $subject, string $format = 'html', array $options = []): string
|
||||
{
|
||||
foreach ($this->displayers as $displayer) {
|
||||
if ($displayer->supportsDisplay($subject, $options = [])) {
|
||||
return $displayer->display($subject, $options = []);
|
||||
if ($displayer->supportsDisplay($subject)) {
|
||||
return $displayer->display($subject, $format, $options);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user