From c2ac6a3129929dfd76296d10765f69fd0e67aaa6 Mon Sep 17 00:00:00 2001 From: alin Date: Mon, 6 May 2024 14:57:48 +0200 Subject: [PATCH] Highlight Env component --- docs/archive/current/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/archive/current/README.md b/docs/archive/current/README.md index dc353931..b36b28eb 100644 --- a/docs/archive/current/README.md +++ b/docs/archive/current/README.md @@ -29,6 +29,25 @@ _TBD: "To be decided"._ ## `v0.x` Highlights +### Env + +The `Env` component offers a way to retrieve environment variables for your application's runtime. + +```js +import { Env } from "@aedart/support/env"; + +// During your application's bootstrapping... +Env.define({ + APP_ENV: 'production' +}); + +// Later in your application +const environment = Env.get('APP_ENV'); +console.log(environment); // production +``` + +See the [documentation](./packages/support/env/README.md) for additional details. + ### Service Container An adaptation of Laravel's Service Container that offers a way to with powerful tool to manage dependencies and perform