-
-
Notifications
You must be signed in to change notification settings - Fork 817
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
Deprecated ResourceManager Completely #6439
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…abstraction for listTemplates twig function.
…odebase aren't coupled to it.
…ning twig files for translations. Yes I just said this shouldn't be done. It will be removed with translation refactor in 3.4.
…ead of with ResourceManager setup. I still hate this check, the config file is supposed to be optional.
…pending on them. This allows us to call "filesystem" whenever we want without fear of infinite loop. Merged other filesystem DI keys back into main filesystem key. The theme path is also added to Twig loader at boot now as well to match and reset its internal error cache if some dummy tries to render a theme template before boot.
…d of ResourceManager. Yes, this adds side effects...will be scrapped with Config refactor soon.
…reated while cache is still valid.
…ocal adapter / mocks. Also asserting package names.
…urrentTimestamp, and getWhichEnd
…. "view" was before "bolt_assets" which meant "view" value was ignored.
Before merging this, I would like to extend a very public "thank you" to @rossriley who originally authored
Bolt has grown as a platform considerably since then, and for quite a while now RM has needed to be replaced for a bunch of reasons that do not matter past "we want to make Bolt better, more powerful, and more flexible." The functionality introduced in this PR marks the end of an era in a way, so 🍻 for all |
This removes the remaining usages of
ResourceManager
and adds a ton of deprecation notices.I know this is late to be in 3.3. This would be best grouped in this release, because
PathResolver
has been added andResourceManager
has had most of its usage removed and deprecated.The only other notable change in this PR is 1b19486. The
theme
filesystem is added tofilesystem
service at boot, instead of when the object is created. This allows thefilesystem
service to be accessed whenever, without fear of an infinite loop. The Twig loader was also changed to add the theme path at boot since it now doesn't exist before that point.