Skip to content

audit-trail workflow configuration in xml not working #43194

@temp

Description

@temp

Symfony version(s) affected: 5.3.7

Description
Using the xml-example from https://symfony.com/doc/current/workflow.html#creating-a-workflow throws errors.

 Unable to parse file "/app/config/packages/workflow.xml": [ERROR 1871] Element '{http://symfony.com/schema/dic/symfony}audit-trail': This element is not expected. Expected is one of ( {http://symfony.com/schema/dic/symfony}initial-marking, {http:
  //symfony.com/schema/dic/symfony}marking-store, {http://symfony.com/schema/dic/symfony}support, {http://symfony.com/schema/dic/symfony}event-to-dispatch, {http://symfony.com/schema/dic/symfony}place, {http://symfony.com/schema/dic/symfony}transit
  ion, {http://symfony.com/schema/dic/symfony}metadata ). (in /app/ - line 11, column 0) in /app/config/packages/workflow.xml (which is being imported from "/app/src/Kernel.php").

How to reproduce
Use the xml-example workflow.xml from https://symfony.com/doc/current/workflow.html#creating-a-workflow

Possible Solution

Additional context
Maybe the audit-trail config is simply missing from the xsd?

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugGood first issueIdeal for your first contribution! (some Symfony experience may be required)Help wantedIssues and PRs which are looking for volunteers to complete them.Status: Needs ReviewWorkflow

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions