Skip to content

@mario-deluna mario-deluna released this Oct 15, 2020

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.

Assets 2
  • v1.2.1
  • 1b23681
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.2.1
  • 1b23681
  • Compare
    Choose a tag to compare
    Search for a tag

@mario-deluna mario-deluna released this Aug 14, 2020 · 2 commits to master since this release

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('dev@example.com')
@logger.observers.email_support: Acme\EmailLogObserver('support@example.com')

@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 root
@controller.homepage
  = on: '/'
Assets 2
  • v1.2.0
  • f705560
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.2.0
  • f705560
  • Compare
    Choose a tag to compare
    Search for a tag

@mario-deluna mario-deluna released this May 7, 2020 · 10 commits to master since this release

Syntax highlighting temp solution
Assets 2

@mario-deluna mario-deluna released this Apr 23, 2019 · 46 commits to master since this release

  • Minor fixes
  • PHPUnit 9 compatibility
  • added allParameters method.
Assets 2
  • v1.1.1
  • 832bdc4
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.1.1
  • 832bdc4
  • Compare
    Choose a tag to compare
    Search for a tag

@mario-deluna mario-deluna released this Jan 29, 2019 · 54 commits to master since this release

Fixes

  • PHP 7.3 preg_match fix
Assets 2

@mario-deluna mario-deluna released this Apr 11, 2018 · 57 commits to master since this release

Features

This release brings container meta data support. In plain PHP and for the container language.

You are now able to assign meta data to a service as follows:

@my.event_listener: App\EventListener\Thing
    = on: 'something', call: 'handleTheThing' 

Fixes

Methods stacking has been fixed. You can now stack multiple calls to the same method together.

@my.registry: App\Registry
    - add('james')
    - add('John')
Assets 2
  • v1.0.0
  • 32c8801
  • Compare
    Choose a tag to compare
    Search for a tag
  • v1.0.0
  • 32c8801
  • Compare
    Choose a tag to compare
    Search for a tag

@mario-deluna mario-deluna released this Jan 23, 2018 · 72 commits to master since this release

v1.0.0

typo
Assets 2