You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Likely legacy, for allowing acting on a global through the web browser. Packages like Browserify and webpack can fix that pattern for us. Would be good to switch to ES6 modules across all the files.
RobLoach
changed the title
Why does this package center around a "god object"?
Switch to Module Pattern (replace Twig global)
May 8, 2019
There were mentions of a 2.0.0 release in other topics and PRs. The 2.0.0 release should breakup the global object into modules as part of the changes, would you agree?
@RobLoach
Each of the files simply serve to build up the
Twig
god object.What was the rationale behind this design? God objects are considered to be an anti-pattern.
The text was updated successfully, but these errors were encountered: