ClanCats Container v1.2.1 Release Notes
Release Date: 2020-08-14 // over 4 years ago-
๐ This release introduces the ability to update service definitions after they have been defined.
โก๏ธ Service Updates
๐ It is possible to update already defined services with more construction calls and metadata.
This is quite handy to organize large amount of dependencies with a dynamic lookups.You could for example define your logger in one file.
@logger.main: Acme\Logger
And add observers using a construction call where you need them.
@logger.observers.email\_devs: Acme\EmailLogObserver('[email protected]') @logger.observers.email\_support: Acme\EmailLogObserver('[email protected]') @logger.main - addObserver(@logger.observers.email\_devs) - addObserver(@logger.observers.email\_support)
๐ The same is also true for metadata.
@controller.homepage: Controller\Homepage = on: '/homepage'// also show homepage on [email protected] = on: '/'