Skip to content

Namespacing Composer extra configs #1387

Closed
@nevvermind

Description

@nevvermind

As Composer packages get used more and more, if not careful, some of their extra configuration may clash at some point in the future.

Not only that, but having an en-gross extra object, it won't be easy to figure out which config belongs to what package.

It would be great if Magento 2 would spearhead good practice (in my opinion at least) and use namespaced configs. We already have the best candidate for this: the package vendor + name combo - magento/magento2ce:

"extra": {
    "magento": {
        "magento2ce": {
            "component_paths": {
                "package-specific": "stuff"
            }    
        }
    }
}

If not good practice, at least M2 will shield itself from possible conflicts with other package configs.

This seems like a small change anyway. But with lots of benefits from where I'm standing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions