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

App Configuration Best Practice #8824

Closed
solverat opened this issue Apr 18, 2021 · 2 comments
Closed

App Configuration Best Practice #8824

solverat opened this issue Apr 18, 2021 · 2 comments

Comments

@solverat
Copy link
Contributor

Since Version 4, symfony recommends to not create any bundle to organize application logic.

So in a modern structure, AppBundle.php should be avoided.

Issue

WIthout it, I'm not able to register my additional backend assets with these helper methods (available thrue AbstractPimcoreBundle):

  • getJsPaths
  • getCssPaths
  • getEditmodeJsPaths
  • getEditmodeCssPaths

Creating a AppBundle file just to use these methods is not a good way to go IMO.

Possible Solutions

  • Add these methods to Kernel.php?
  • Via configuration (pimcore.static.js_paths, pimcore.static.css for example, placed in config.yaml)?

What do you think?

@solverat
Copy link
Contributor Author

I completely missed that. Thanks!

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

No branches or pull requests

2 participants