[{"data":1,"prerenderedAt":1161},["ShallowReactive",2],{"$fs85H7klPA5mokBvH9F_eYTJIVv8DKOMy-j1rcvYQKA4":3},{"slug":4,"title":5,"description":6,"source":7,"document":8,"toc":1145,"editUrl":1155,"prev":1156,"next":1159},"fundamentals\u002Fdependency-injection","Dependency injection","A deep dive into compile-time dependency injection, the container, scopes and graph composition.","---\ntitle: Dependency injection\ndescription: A deep dive into compile-time dependency injection, the container, scopes and graph composition.\n---\n\n# Dependency injection\n\nDependency injection is what holds Ferrite together. Every provider contributes graph metadata at **compile time**, and bootstrap assembles the graph into a runtime `Container`. The two halves — compile-time description, runtime resolution — are deliberately split.\n\n## The contract\n\n```rust\npub trait Injectable {\n    fn __provider_entry() -> ProviderEntry;\n}\n```\n\n`ProviderEntry` describes everything the container needs to build the provider:\n\n```rust\nimpl ProviderEntry {\n    pub fn new_static::\u003CT>(\n        name: &'static str,\n        scope: Scope,\n        deps: fn() -> Vec\u003CTypeId>,\n        factory: fn(&Container) -> AnyArc,\n    ) -> ProviderEntry;\n}\n```\n\n- `deps` is the explicit, ordered list of dependencies.\n- `factory` receives the container and returns the fully-constructed provider as `Arc\u003Cdyn Any + Send + Sync>`.\n\n`#[injectable]` + `#[inject]` generate both functions for you:\n\n```rust\n#[injectable]\npub struct MailService {\n    config: ConfigService,\n}\n\nimpl MailService {\n    #[inject]\n    pub fn new(config: ConfigService) -> Self {\n        Self { config }\n    }\n}\n```\n\n`__ferrite_deps()` returns `[TypeId::of::\u003CConfigService>()]`, and `__ferrite_inject` resolves it, calls `MailService::new(arc)`, and wraps the result in an `Arc`.\n\n## Scopes\n\n```rust\npub enum Scope {\n    Singleton,\n    Request,\n    Transient,\n}\n```\n\n| Scope | Lifetime | Annotation |\n| --- | --- | --- |\n| Singleton | One instance for the whole app | `#[injectable]` \u002F `scope = \"singleton\"` |\n| Request | One per request | `scope = \"request\"` |\n| Transient | A new instance per resolution | `scope = \"transient\"` |\n\n## The container\n\n```rust\npub struct Container { \u002F* ... *\u002F }\n\nimpl Container {\n    pub fn get\u003CT>(&self) -> Arc\u003CT>;              \u002F\u002F panics on failure\n    pub fn try_get\u003CT>(&self) -> Option\u003CArc\u003CT>>;\n    pub fn get_any(&self, id: TypeId) -> AnyArc;\n    pub fn try_get_any(&self, id: TypeId) -> Option\u003CAnyArc>;\n    pub fn seed_singleton\u003CT>(&self, value: Arc\u003CT>);\n}\n```\n\n`Container` is cheap to clone, so subsystems can hold a handle and resolve providers lazily.\n\n## Discovery utilities\n\n```rust\nuse ferrite_framework::{\n    all_modules, all_providers, find_module, lookup_module,\n    lookup_provider, sort_providers, sort_providers_with,\n};\n\nall_modules();                    \u002F\u002F Vec\u003C&'static ModuleDescriptor>\nfind_module(\"AppModule\");         \u002F\u002F Option\u003C&'static ModuleDescriptor>\nall_providers();                  \u002F\u002F Vec\u003C&'static ProviderEntry>\nlookup_provider::\u003CMailService>(); \u002F\u002F type-directed lookup\n```\n\n`sort_providers`\u002F`sort_providers_with` order providers deterministically so the graph compiles the same way on every build.\n\n## Compile-time guarantees\n\nBecause metadata is static, Ferrite can type-check the graph *while it compiles*:\n\n1. `#[module]` verifies imports implement `Module` and providers implement `Injectable`.\n2. `#[inject]` verifies every parameter has a matching registered provider (or a global one).\n3. Cycles surface as compiler errors rather than stack overflows.\n\nThe macro surface is covered by an LTS constant, `FERRITE_LTS_MACRO_SURFACE_VERSION`, so the generated code can be validated against a known contract.\n\n## Overriding providers\n\nFor tests and A\u002FB behavior, seed the container before the graph compiles:\n\n```rust\nuse std::sync::Arc;\nuse ferrite_framework::Ferrite;\n\nlet app = Ferrite::create_with_seed::\u003CAppModule, _>(|container| {\n    container.seed_singleton(Arc::new(FakeMailer));\n}).await;\n```\n\n`ferrite-testing` wraps this pattern for you — see [Testing](\u002Fdocs\u002Ffundamentals\u002Ftesting).\n\n## Verbose example\n\nOne provider depending on several others, resolved by type only:\n\n```rust\n#[injectable]\npub struct OrderController {\n    orders: OrdersService,\n    mail: MailService,\n    cache: CacheService,\n}\n\nimpl OrderController {\n    #[inject]\n    pub fn new(orders: OrdersService, mail: MailService, cache: CacheService) -> Self {\n        Self { orders, mail, cache }\n    }\n}\n```\n\n## Next steps\n\n- [Modules](\u002Fdocs\u002Foverview\u002Fmodules).\n- [Lifecycle events](\u002Fdocs\u002Ffundamentals\u002Flifecycle-events).",{"frontmatter":9,"meta":10,"nodes":40},{"title":5,"description":6},{"toc":11},{"title":12,"searchDepth":13,"depth":14,"links":15},"On This Page",2,3,[16,19,22,25,28,31,34,37],{"id":17,"depth":13,"text":18},"the-contract","The contract",{"id":20,"depth":13,"text":21},"scopes","Scopes",{"id":23,"depth":13,"text":24},"the-container","The container",{"id":26,"depth":13,"text":27},"discovery-utilities","Discovery utilities",{"id":29,"depth":13,"text":30},"compile-time-guarantees","Compile-time guarantees",{"id":32,"depth":13,"text":33},"overriding-providers","Overriding providers",{"id":35,"depth":13,"text":36},"verbose-example","Verbose example",{"id":38,"depth":13,"text":39},"next-steps","Next steps",[41,45,59,62,116,122,259,279,289,383,404,406,446,511,513,723,728,730,821,831,833,840,864,871,873,876,989,1000,1002,1005,1129,1131],[42,43,5],"h1",{"id":44},"dependency-injection",[46,47,48,49,53,54,58],"p",{},"Dependency injection is what holds Ferrite together. Every provider contributes graph metadata at ",[50,51,52],"strong",{},"compile time",", and bootstrap assembles the graph into a runtime ",[55,56,57],"code",{},"Container",". The two halves — compile-time description, runtime resolution — are deliberately split.",[60,61,18],"h2",{"id":17},[63,64,67],"pre",{"language":65,"class":66},"rust","shiki shiki-themes github-light github-dark dark:github-dark",[55,68,70,90,91,90,111],{"class":69},"language-rust",[71,72,75,79,82,86],"span",{"class":73,"style":74},"line","display: inline",[71,76,78],{"style":77},"color:#D73A49;--shiki-dark:#F97583","pub",[71,80,81],{"style":77}," trait",[71,83,85],{"style":84},"color:#6F42C1;--shiki-dark:#B392F0"," Injectable",[71,87,89],{"style":88},"color:#24292E;--shiki-dark:#E1E4E8"," {","\n",[71,92,93,96,99,102,105,108],{"class":73,"style":74},[71,94,95],{"style":77},"    fn",[71,97,98],{"style":84}," __provider_entry",[71,100,101],{"style":88},"() ",[71,103,104],{"style":77},"->",[71,106,107],{"style":84}," ProviderEntry",[71,109,110],{"style":88},";",[71,112,113],{"class":73,"style":74},[71,114,115],{"style":88},"}",[46,117,118,121],{},[55,119,120],{},"ProviderEntry"," describes everything the container needs to build the provider:",[63,123,124],{"language":65,"class":66},[55,125,126,90,135,90,158,90,181,90,193,90,217,90,244,90,255],{"class":69},[71,127,128,131,133],{"class":73,"style":74},[71,129,130],{"style":77},"impl",[71,132,107],{"style":84},[71,134,89],{"style":88},[71,136,137,140,143,146,149,152,155],{"class":73,"style":74},[71,138,139],{"style":77},"    pub",[71,141,142],{"style":77}," fn",[71,144,145],{"style":84}," new_static",[71,147,148],{"style":77},"::",[71,150,151],{"style":88},"\u003C",[71,153,154],{"style":84},"T",[71,156,157],{"style":88},">(",[71,159,160,163,166,169,172,175,178],{"class":73,"style":74},[71,161,162],{"style":88},"        name",[71,164,165],{"style":77},":",[71,167,168],{"style":77}," &",[71,170,171],{"style":88},"'",[71,173,174],{"style":84},"static",[71,176,177],{"style":84}," str",[71,179,180],{"style":88},",",[71,182,183,186,188,191],{"class":73,"style":74},[71,184,185],{"style":88},"        scope",[71,187,165],{"style":77},[71,189,190],{"style":84}," Scope",[71,192,180],{"style":88},[71,194,195,198,200,202,204,206,209,211,214],{"class":73,"style":74},[71,196,197],{"style":88},"        deps",[71,199,165],{"style":77},[71,201,142],{"style":77},[71,203,101],{"style":88},[71,205,104],{"style":77},[71,207,208],{"style":84}," Vec",[71,210,151],{"style":88},[71,212,213],{"style":84},"TypeId",[71,215,216],{"style":88},">,",[71,218,219,222,224,226,229,232,234,237,239,242],{"class":73,"style":74},[71,220,221],{"style":88},"        factory",[71,223,165],{"style":77},[71,225,142],{"style":84},[71,227,228],{"style":88},"(",[71,230,231],{"style":77},"&",[71,233,57],{"style":84},[71,235,236],{"style":88},") ",[71,238,104],{"style":77},[71,240,241],{"style":84}," AnyArc",[71,243,180],{"style":88},[71,245,246,249,251,253],{"class":73,"style":74},[71,247,248],{"style":88},"    ) ",[71,250,104],{"style":77},[71,252,107],{"style":84},[71,254,110],{"style":88},[71,256,257],{"class":73,"style":74},[71,258,115],{"style":88},[260,261,262,269],"ul",{},[263,264,265,268],"li",{},[55,266,267],{},"deps"," is the explicit, ordered list of dependencies.",[263,270,271,274,275,278],{},[55,272,273],{},"factory"," receives the container and returns the fully-constructed provider as ",[55,276,277],{},"Arc\u003Cdyn Any + Send + Sync>",".",[46,280,281,284,285,288],{},[55,282,283],{},"#[injectable]"," + ",[55,286,287],{},"#[inject]"," generate both functions for you:",[63,290,291],{"language":65,"class":66},[55,292,293,90,297,90,309,90,321,90,325,90,327,90,335,90,340,90,366,90,374,90,379],{"class":69},[71,294,295],{"class":73,"style":74},[71,296,283],{"style":88},[71,298,299,301,304,307],{"class":73,"style":74},[71,300,78],{"style":77},[71,302,303],{"style":77}," struct",[71,305,306],{"style":84}," MailService",[71,308,89],{"style":88},[71,310,311,314,316,319],{"class":73,"style":74},[71,312,313],{"style":88},"    config",[71,315,165],{"style":77},[71,317,318],{"style":84}," ConfigService",[71,320,180],{"style":88},[71,322,323],{"class":73,"style":74},[71,324,115],{"style":88},[71,326],{"class":73,"style":74},[71,328,329,331,333],{"class":73,"style":74},[71,330,130],{"style":77},[71,332,306],{"style":84},[71,334,89],{"style":88},[71,336,337],{"class":73,"style":74},[71,338,339],{"style":88},"    #[inject]",[71,341,342,344,346,349,352,354,356,358,360,364],{"class":73,"style":74},[71,343,139],{"style":77},[71,345,142],{"style":77},[71,347,348],{"style":84}," new",[71,350,351],{"style":88},"(config",[71,353,165],{"style":77},[71,355,318],{"style":84},[71,357,236],{"style":88},[71,359,104],{"style":77},[71,361,363],{"style":362},"color:#005CC5;--shiki-dark:#79B8FF"," Self",[71,365,89],{"style":88},[71,367,368,371],{"class":73,"style":74},[71,369,370],{"style":362},"        Self",[71,372,373],{"style":88}," { config }",[71,375,376],{"class":73,"style":74},[71,377,378],{"style":88},"    }",[71,380,381],{"class":73,"style":74},[71,382,115],{"style":88},[46,384,385,388,389,392,393,396,397,400,401,278],{},[55,386,387],{},"__ferrite_deps()"," returns ",[55,390,391],{},"[TypeId::of::\u003CConfigService>()]",", and ",[55,394,395],{},"__ferrite_inject"," resolves it, calls ",[55,398,399],{},"MailService::new(arc)",", and wraps the result in an ",[55,402,403],{},"Arc",[60,405,21],{"id":20},[63,407,408],{"language":65,"class":66},[55,409,410,90,421,90,428,90,435,90,442],{"class":69},[71,411,412,414,417,419],{"class":73,"style":74},[71,413,78],{"style":77},[71,415,416],{"style":77}," enum",[71,418,190],{"style":84},[71,420,89],{"style":88},[71,422,423,426],{"class":73,"style":74},[71,424,425],{"style":84},"    Singleton",[71,427,180],{"style":88},[71,429,430,433],{"class":73,"style":74},[71,431,432],{"style":84},"    Request",[71,434,180],{"style":88},[71,436,437,440],{"class":73,"style":74},[71,438,439],{"style":84},"    Transient",[71,441,180],{"style":88},[71,443,444],{"class":73,"style":74},[71,445,115],{"style":88},[447,448,449,465],"table",{},[450,451,452],"thead",{},[453,454,455,459,462],"tr",{},[456,457,458],"th",{},"Scope",[456,460,461],{},"Lifetime",[456,463,464],{},"Annotation",[466,467,468,485,498],"tbody",{},[453,469,470,474,477],{},[471,472,473],"td",{},"Singleton",[471,475,476],{},"One instance for the whole app",[471,478,479,481,482],{},[55,480,283],{}," \u002F ",[55,483,484],{},"scope = \"singleton\"",[453,486,487,490,493],{},[471,488,489],{},"Request",[471,491,492],{},"One per request",[471,494,495],{},[55,496,497],{},"scope = \"request\"",[453,499,500,503,506],{},[471,501,502],{},"Transient",[471,504,505],{},"A new instance per resolution",[471,507,508],{},[55,509,510],{},"scope = \"transient\"",[60,512,24],{"id":23},[63,514,515],{"language":65,"class":66},[55,516,517,90,536,90,538,90,546,90,583,90,620,90,651,90,686,90,719],{"class":69},[71,518,519,521,523,526,529,533],{"class":73,"style":74},[71,520,78],{"style":77},[71,522,303],{"style":77},[71,524,525],{"style":84}," Container",[71,527,528],{"style":88}," { ",[71,530,532],{"style":531},"color:#6A737D;--shiki-dark:#6A737D","\u002F* ... *\u002F",[71,534,535],{"style":88}," }",[71,537],{"class":73,"style":74},[71,539,540,542,544],{"class":73,"style":74},[71,541,130],{"style":77},[71,543,525],{"style":84},[71,545,89],{"style":88},[71,547,548,550,552,555,557,559,561,563,566,568,570,573,575,577,580],{"class":73,"style":74},[71,549,139],{"style":77},[71,551,142],{"style":77},[71,553,554],{"style":84}," get",[71,556,151],{"style":88},[71,558,154],{"style":84},[71,560,157],{"style":88},[71,562,231],{"style":77},[71,564,565],{"style":362},"self",[71,567,236],{"style":88},[71,569,104],{"style":77},[71,571,572],{"style":84}," Arc",[71,574,151],{"style":88},[71,576,154],{"style":84},[71,578,579],{"style":88},">;              ",[71,581,582],{"style":531},"\u002F\u002F panics on failure",[71,584,585,587,589,592,594,596,598,600,602,604,606,609,611,613,615,617],{"class":73,"style":74},[71,586,139],{"style":77},[71,588,142],{"style":77},[71,590,591],{"style":84}," try_get",[71,593,151],{"style":88},[71,595,154],{"style":84},[71,597,157],{"style":88},[71,599,231],{"style":77},[71,601,565],{"style":362},[71,603,236],{"style":88},[71,605,104],{"style":77},[71,607,608],{"style":84}," Option",[71,610,151],{"style":88},[71,612,403],{"style":84},[71,614,151],{"style":88},[71,616,154],{"style":84},[71,618,619],{"style":88},">>;",[71,621,622,624,626,629,631,633,635,638,640,643,645,647,649],{"class":73,"style":74},[71,623,139],{"style":77},[71,625,142],{"style":77},[71,627,628],{"style":84}," get_any",[71,630,228],{"style":88},[71,632,231],{"style":77},[71,634,565],{"style":362},[71,636,637],{"style":88},", id",[71,639,165],{"style":77},[71,641,642],{"style":84}," TypeId",[71,644,236],{"style":88},[71,646,104],{"style":77},[71,648,241],{"style":84},[71,650,110],{"style":88},[71,652,653,655,657,660,662,664,666,668,670,672,674,676,678,680,683],{"class":73,"style":74},[71,654,139],{"style":77},[71,656,142],{"style":77},[71,658,659],{"style":84}," try_get_any",[71,661,228],{"style":88},[71,663,231],{"style":77},[71,665,565],{"style":362},[71,667,637],{"style":88},[71,669,165],{"style":77},[71,671,642],{"style":84},[71,673,236],{"style":88},[71,675,104],{"style":77},[71,677,608],{"style":84},[71,679,151],{"style":88},[71,681,682],{"style":84},"AnyArc",[71,684,685],{"style":88},">;",[71,687,688,690,692,695,697,699,701,703,705,708,710,712,714,716],{"class":73,"style":74},[71,689,139],{"style":77},[71,691,142],{"style":77},[71,693,694],{"style":84}," seed_singleton",[71,696,151],{"style":88},[71,698,154],{"style":84},[71,700,157],{"style":88},[71,702,231],{"style":77},[71,704,565],{"style":362},[71,706,707],{"style":88},", value",[71,709,165],{"style":77},[71,711,572],{"style":84},[71,713,151],{"style":88},[71,715,154],{"style":84},[71,717,718],{"style":88},">);",[71,720,721],{"class":73,"style":74},[71,722,115],{"style":88},[46,724,725,727],{},[55,726,57],{}," is cheap to clone, so subsystems can hold a handle and resolve providers lazily.",[60,729,27],{"id":26},[63,731,732],{"language":65,"class":66},[55,733,734,90,747,90,752,90,757,90,762,90,764,90,775,90,792,90,803],{"class":69},[71,735,736,739,742,744],{"class":73,"style":74},[71,737,738],{"style":77},"use",[71,740,741],{"style":84}," ferrite_framework",[71,743,148],{"style":77},[71,745,746],{"style":88},"{",[71,748,749],{"class":73,"style":74},[71,750,751],{"style":88},"    all_modules, all_providers, find_module, lookup_module,",[71,753,754],{"class":73,"style":74},[71,755,756],{"style":88},"    lookup_provider, sort_providers, sort_providers_with,",[71,758,759],{"class":73,"style":74},[71,760,761],{"style":88},"};",[71,763],{"class":73,"style":74},[71,765,766,769,772],{"class":73,"style":74},[71,767,768],{"style":84},"all_modules",[71,770,771],{"style":88},"();                    ",[71,773,774],{"style":531},"\u002F\u002F Vec\u003C&'static ModuleDescriptor>",[71,776,777,780,782,786,789],{"class":73,"style":74},[71,778,779],{"style":84},"find_module",[71,781,228],{"style":88},[71,783,785],{"style":784},"color:#032F62;--shiki-dark:#9ECBFF","\"AppModule\"",[71,787,788],{"style":88},");         ",[71,790,791],{"style":531},"\u002F\u002F Option\u003C&'static ModuleDescriptor>",[71,793,794,797,800],{"class":73,"style":74},[71,795,796],{"style":84},"all_providers",[71,798,799],{"style":88},"();                  ",[71,801,802],{"style":531},"\u002F\u002F Vec\u003C&'static ProviderEntry>",[71,804,805,808,810,812,815,818],{"class":73,"style":74},[71,806,807],{"style":84},"lookup_provider",[71,809,148],{"style":77},[71,811,151],{"style":88},[71,813,814],{"style":84},"MailService",[71,816,817],{"style":88},">(); ",[71,819,820],{"style":531},"\u002F\u002F type-directed lookup",[46,822,823,826,827,830],{},[55,824,825],{},"sort_providers","\u002F",[55,828,829],{},"sort_providers_with"," order providers deterministically so the graph compiles the same way on every build.",[60,832,30],{"id":29},[46,834,835,836,165],{},"Because metadata is static, Ferrite can type-check the graph ",[837,838,839],"em",{},"while it compiles",[841,842,843,856,861],"ol",{},[263,844,845,848,849,852,853,278],{},[55,846,847],{},"#[module]"," verifies imports implement ",[55,850,851],{},"Module"," and providers implement ",[55,854,855],{},"Injectable",[263,857,858,860],{},[55,859,287],{}," verifies every parameter has a matching registered provider (or a global one).",[263,862,863],{},"Cycles surface as compiler errors rather than stack overflows.",[46,865,866,867,870],{},"The macro surface is covered by an LTS constant, ",[55,868,869],{},"FERRITE_LTS_MACRO_SURFACE_VERSION",", so the generated code can be validated against a known contract.",[60,872,33],{"id":32},[46,874,875],{},"For tests and A\u002FB behavior, seed the container before the graph compiles:",[63,877,878],{"language":65,"class":66},[55,879,880,90,898,90,911,90,913,90,952,90,979],{"class":69},[71,881,882,884,887,889,892,894,896],{"class":73,"style":74},[71,883,738],{"style":77},[71,885,886],{"style":84}," std",[71,888,148],{"style":77},[71,890,891],{"style":84},"sync",[71,893,148],{"style":77},[71,895,403],{"style":84},[71,897,110],{"style":88},[71,899,900,902,904,906,909],{"class":73,"style":74},[71,901,738],{"style":77},[71,903,741],{"style":84},[71,905,148],{"style":77},[71,907,908],{"style":84},"Ferrite",[71,910,110],{"style":88},[71,912],{"class":73,"style":74},[71,914,915,918,921,924,927,929,932,934,936,939,942,945,948,950],{"class":73,"style":74},[71,916,917],{"style":77},"let",[71,919,920],{"style":88}," app ",[71,922,923],{"style":77},"=",[71,925,926],{"style":84}," Ferrite",[71,928,148],{"style":77},[71,930,931],{"style":84},"create_with_seed",[71,933,148],{"style":77},[71,935,151],{"style":88},[71,937,938],{"style":84},"AppModule",[71,940,941],{"style":88},", _>(",[71,943,944],{"style":77},"|",[71,946,947],{"style":88},"container",[71,949,944],{"style":77},[71,951,89],{"style":88},[71,953,954,957,959,962,964,966,968,971,973,976],{"class":73,"style":74},[71,955,956],{"style":88},"    container",[71,958,278],{"style":77},[71,960,961],{"style":84},"seed_singleton",[71,963,228],{"style":88},[71,965,403],{"style":84},[71,967,148],{"style":77},[71,969,970],{"style":84},"new",[71,972,228],{"style":88},[71,974,975],{"style":84},"FakeMailer",[71,977,978],{"style":88},"));",[71,980,981,984,987],{"class":73,"style":74},[71,982,983],{"style":88},"})",[71,985,986],{"style":77},".await",[71,988,110],{"style":88},[46,990,991,994,995,278],{},[55,992,993],{},"ferrite-testing"," wraps this pattern for you — see ",[996,997,999],"a",{"href":998},"\u002Fdocs\u002Ffundamentals\u002Ftesting","Testing",[60,1001,36],{"id":35},[46,1003,1004],{},"One provider depending on several others, resolved by type only:",[63,1006,1007],{"language":65,"class":66},[55,1008,1009,90,1013,90,1024,90,1036,90,1047,90,1059,90,1063,90,1065,90,1073,90,1077,90,1114,90,1121,90,1125],{"class":69},[71,1010,1011],{"class":73,"style":74},[71,1012,283],{"style":88},[71,1014,1015,1017,1019,1022],{"class":73,"style":74},[71,1016,78],{"style":77},[71,1018,303],{"style":77},[71,1020,1021],{"style":84}," OrderController",[71,1023,89],{"style":88},[71,1025,1026,1029,1031,1034],{"class":73,"style":74},[71,1027,1028],{"style":88},"    orders",[71,1030,165],{"style":77},[71,1032,1033],{"style":84}," OrdersService",[71,1035,180],{"style":88},[71,1037,1038,1041,1043,1045],{"class":73,"style":74},[71,1039,1040],{"style":88},"    mail",[71,1042,165],{"style":77},[71,1044,306],{"style":84},[71,1046,180],{"style":88},[71,1048,1049,1052,1054,1057],{"class":73,"style":74},[71,1050,1051],{"style":88},"    cache",[71,1053,165],{"style":77},[71,1055,1056],{"style":84}," CacheService",[71,1058,180],{"style":88},[71,1060,1061],{"class":73,"style":74},[71,1062,115],{"style":88},[71,1064],{"class":73,"style":74},[71,1066,1067,1069,1071],{"class":73,"style":74},[71,1068,130],{"style":77},[71,1070,1021],{"style":84},[71,1072,89],{"style":88},[71,1074,1075],{"class":73,"style":74},[71,1076,339],{"style":88},[71,1078,1079,1081,1083,1085,1088,1090,1092,1095,1097,1099,1102,1104,1106,1108,1110,1112],{"class":73,"style":74},[71,1080,139],{"style":77},[71,1082,142],{"style":77},[71,1084,348],{"style":84},[71,1086,1087],{"style":88},"(orders",[71,1089,165],{"style":77},[71,1091,1033],{"style":84},[71,1093,1094],{"style":88},", mail",[71,1096,165],{"style":77},[71,1098,306],{"style":84},[71,1100,1101],{"style":88},", cache",[71,1103,165],{"style":77},[71,1105,1056],{"style":84},[71,1107,236],{"style":88},[71,1109,104],{"style":77},[71,1111,363],{"style":362},[71,1113,89],{"style":88},[71,1115,1116,1118],{"class":73,"style":74},[71,1117,370],{"style":362},[71,1119,1120],{"style":88}," { orders, mail, cache }",[71,1122,1123],{"class":73,"style":74},[71,1124,378],{"style":88},[71,1126,1127],{"class":73,"style":74},[71,1128,115],{"style":88},[60,1130,39],{"id":38},[260,1132,1133,1139],{},[263,1134,1135,278],{},[996,1136,1138],{"href":1137},"\u002Fdocs\u002Foverview\u002Fmodules","Modules",[263,1140,1141,278],{},[996,1142,1144],{"href":1143},"\u002Fdocs\u002Ffundamentals\u002Flifecycle-events","Lifecycle events",{"title":12,"searchDepth":13,"depth":14,"links":1146},[1147,1148,1149,1150,1151,1152,1153,1154],{"id":17,"depth":13,"text":18},{"id":20,"depth":13,"text":21},{"id":23,"depth":13,"text":24},{"id":26,"depth":13,"text":27},{"id":29,"depth":13,"text":30},{"id":32,"depth":13,"text":33},{"id":35,"depth":13,"text":36},{"id":38,"depth":13,"text":39},"https:\u002F\u002Fgithub.com\u002Fj4flmao\u002Fferrite_rs\u002Fedit\u002Fmain\u002Fdocs\u002Fcontent\u002Ffundamentals\u002Fdependency-injection.md",{"title":1157,"slug":1158},"CLI usage","overview\u002Fcli-usage",{"title":1144,"slug":1160},"fundamentals\u002Flifecycle-events",1789565439198]