Skip to content

Stripping down framework-bundle #15748

Closed
Closed
@johnknl

Description

@johnknl

There are quite a number of dependencies in symfony/framework-bundle that should be optional.

  1. symfony/asset

Don't need it when building an app without GUI.

  1. symfony/security-core

Don't need when I don't want to include any sort of access control

  1. symfony/security-csrf

Don't need it unless I have forms. Which is an optional requirement in the form (pardon the pun) of symfony/form. Even if you keep security-core, this should go unless you have symfony-form.

  1. doctrine/annotations

I may not want to use annotations.

  1. symfony/translation

I might not care about translations

  1. symfony/stopwatch

Why is this not in require-dev?

  1. symfony/templating

Again, without a GUI I don't really need this.

Anyone sharing this opinion or should I create my own symfony-minimal-framework-bundle if I want something less 'standard distribution'-like?

Possible solution would be extracting the other deps into something like symfony/core-framework-bundle and have symfony/framework-bundle depend on that. Then packages depending on framework-bundle would not suddenly have to deal with missing deps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions