Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using EmbeddedComposer for packages that are using admin #86

Open
moufmouf opened this issue Jan 14, 2015 · 1 comment
Open
Milestone

Comments

@moufmouf
Copy link
Member

Mouf comes with 2 sets of dependencies (and therefore 2 composer files).
One for the app
One for the admin

When adding a package to the composer.json file of the app, it would be great to be able to add at the same time a dependency dedicated to the admin.

For instance, right now, if we install a DB connection driver in the app, the DB connection driver might come with a controller for the admin side that requires evolugrid support.

The idea is:

In the composer.json file of a package loaded in the "app" context, we could put:

{
  extra: {
    mouf: {
      require-admin: {
        "mouf/evolugrid" : "~1.0"
      }
    }
  }
}

The admin side should read those "require-admin" sections and could load them, thanks to "EmbeddedComposer".

@moufmouf moufmouf added this to the 2.1 milestone Jan 14, 2015
@moufmouf
Copy link
Member Author

EmbeddedComposer has been discontinued, but the overall idea remains sound.

TODO for Mouf 3: find a way to load dependencies in admin when dependencies in application are applied.

Note: we can find those with thecodingmachine/discovery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant