Skip to content

Commit a799638

Browse files
committed
feat: pass the context to the FetchsectionsContent service (useful for a publishing feature)
1 parent 4d8d188 commit a799638

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/services/maglev/app_container.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class AppContainer
3737
dependency :fetch_page, class: Maglev::FetchPage, depends_on: %i[context fetch_site]
3838
dependency :get_page_fullpath, class: Maglev::GetPageFullpath, depends_on: %i[fetch_site get_base_url]
3939
dependency :fetch_sections_content, class: Maglev::FetchSectionsContent,
40-
depends_on: %i[fetch_site fetch_theme
40+
depends_on: %i[context fetch_site fetch_theme
4141
fetch_static_pages
4242
fetch_collection_items get_page_fullpath]
4343
dependency :get_page_sections, class: Maglev::GetPageSections,

app/services/maglev/fetch_sections_content.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class FetchSectionsContent
1010
include Maglev::MirroredSectionsConcern
1111
include Maglev::SiteScopedSectionsConcern
1212

13+
dependency :context
1314
dependency :fetch_site
1415
dependency :fetch_theme
1516
dependency :fetch_collection_items

0 commit comments

Comments
 (0)