Right now component classes write their own assets, which makes the ComponentBase class quite large and complicates the constructor by requiring the app root and file system services.

We should move all the methods that involve file writing out of ComponentBase, and change ComponentInterface so that it only has a getLibrary and getAssets method.

Comments

samuel.mortenson created an issue. See original summary.

samuel.mortenson’s picture

Status: Active » Closed (won't fix)

I worked on this rewrite for a few hours and it didn't feel good. I think it's bad that ComponentBase is so complex and requires the file system service, but the rewrite just introduced new services and more complexity.