8000 [3.3] Glob loader breaks loading inline YAML resources · Issue #23412 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[3.3] Glob loader breaks loading inline YAML resources #23412
Closed
@pamil

Description

@pamil
Q A
Bug report? yes
Feature request? no
BC Break report? yes (kind of)
RFC? no
Symfony version 3.3.*

Background for this issue is provided in #22938.

Glob loader breaks Sylius' usage of passing autogenerated routing configuration as resource contents:

# Not work
sylius_admin_api_carts:
    resource: |
        alias: sylius.order
        path: '/'
        only: [index]
        grid: sylius_admin_api_cart
        section: admin_api
        serialization_version: $version
    type: sylius.resource_api


# Work
sylius_admin_api_carts:
    resource: |
        alias: sylius.order
        #path: '/'
        only: [index]
        grid: sylius_admin_api_cart
        section: admin_api
        serialization_version: $version
    type: sylius.resource_api

Given the first config, it tries to use alias: sylius.order\npath: ' as prefix path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugHelp wantedIssues and PRs which are looking for volunteers to complete them.Routing

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0