diff --git a/docs/config/_default/hugo.toml b/docs/config/_default/hugo.toml index eb3ea47..10ea830 100644 --- a/docs/config/_default/hugo.toml +++ b/docs/config/_default/hugo.toml @@ -1,4 +1,4 @@ -title = "Dependency Injection Container" +title = "Container" baseurl = "/" canonifyURLs = false disableAliases = true diff --git a/docs/content/_index.md b/docs/content/_index.md index 6398763..4e74932 100644 --- a/docs/content/_index.md +++ b/docs/content/_index.md @@ -6,7 +6,7 @@ date: 2024-05-26T14:07:40+02:00 lastmod: 2024-05-26T14:07:40+02:00 draft: false seo: - title: "PHP validation library" # custom title (optional) + title: "PHP dependency injection container" # custom title (optional) description: "" # custom description (recommended) canonical: "" # custom canonical URL (optional) noindex: false # false (default) or true @@ -30,7 +30,8 @@ Create and configure service objects directly within your configuration ```php return [ - 'db.connection' => obj(DbConnection::class, name: 'main')->call('setLogger', ref('logger')), + 'db.connection' => obj(DbConnection::class, name: 'main') + ->call('setLogger', ref('logger')), ]; ``` @@ -93,7 +94,9 @@ return [ #[Env('DB_NAME', default: 'main')] $name ) => "{$driver}://{$user}:{$password}@{$host}:{$port}/{$name}", - 'db.connection' => static function(#[Ref('db.url')] string $url) { + 'db.connection' => static function( + #[Ref('db.url')] string $url, + ) { return new DbConnection(url: $url); }, ];