ClanCats Container v1.2.2 Release Notes

Release Date: 2020-10-15 // over 3 years ago
  • โšก๏ธ This small update allows you to finally use the resolver methods directly. The resolver methods are generated when a container is compiled. The methods have the the return type their dependency which helps your IDE to help you.

Previous changes from v1.2.1

  • ๐Ÿš€ 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.\_devs: Acme\EmailLogObserver('[email protected]')\_support: Acme\EmailLogObserver('[email protected]') @logger.main - addObserver(\_devs) - addObserver(\_support)

    ๐Ÿ“‡ The same is also true for metadata.

    @controller.homepage: Controller\Homepage = on: '/homepage'// also show homepage on [email protected] = on: '/'