lucite/container

A simple psr-11 container with a few extras bolted on and minimal magic

Installs: 12

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/lucite/container

0.0.2 2024-09-12 14:34 UTC

This package is auto-updated.

Last update: 2025-10-12 17:00:32 UTC


README

Adding new keys

There are 3 methods for adding new keys:

  • function add(string $key, mixed $value)
  • function addConstructor(string $key, callable $constructor)
  • function addSingleton(string $key, callable $constructor)