-
-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
BugConfirmed bugs or bugfixes.Confirmed bugs or bugfixes.
Description
latest
The config reference suggests to overwrite a resource's form rendering as such
sylius_resource:
resources:
app.book:
driver: doctrine/orm
classes:
options:
object_manager: default
templates:
form: Book/_form.html.twig
However Configuration.php suggests the only acceptable value is a scalar
private function addResourcesSection(ArrayNodeDefinition $node): void
{
$node
->children()
->arrayNode('resources')
->useAttributeAsKey('name')
->arrayPrototype()
->children()
->scalarNode('driver')->defaultValue(SyliusResourceBundle::DRIVER_DOCTRINE_ORM)->end()
->variableNode('options')->end()
->scalarNode('templates')->cannotBeEmpty()->end()
So when I configure:
sylius_resource:
resources:
etc etc etc
templates:
form: Admin/Ruleset/_form.html.twig
I get:
Invalid type for path "sylius_resource.resources.skyboundtech.wholesale_ruleset.templates". Expected "scalar", but got "array".
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugConfirmed bugs or bugfixes.Confirmed bugs or bugfixes.