Skip to content

Releases: PHP-DI/Invoker

1.3.1

29 May 13:32
Compare
Choose a tag to compare
  • #9 Fix exception message for callables containing objects

1.3.0

20 Mar 17:50
Compare
Choose a tag to compare
  • #8 New parameter resolver: TypeHintResolver. Resolves parameters by matching type-hints to entries in the array of parameters provided.

1.2.0

22 Oct 19:50
Compare
Choose a tag to compare

#5 The logic that resolves callable from the container has been extracted in its own class: CallableResolver.

That will allow to separately resolve callables and invoke them.

1.1.1

17 Sep 09:59
Compare
Choose a tag to compare

Improvements to exception messages

1.1.0

12 Sep 09:16
Compare
Choose a tag to compare
  • #3: support Class::method syntax for callables (by @jdreesen)

1.0.1

02 Sep 16:11
Compare
Choose a tag to compare

Big performance improvements (up to 30% faster from my benchmarks and profiling), especially for the most common use cases.

1.0.0

24 Apr 23:25
Compare
Choose a tag to compare
Move the project to the PHP-DI organization

0.2.1

01 Apr 07:57
Compare
Choose a tag to compare

Added more specific exceptions allowing to catch them.

Also added Invoker::getContainer().

0.2.0

30 Mar 09:17
Compare
Choose a tag to compare

0.x versions do not ensure backward compatibility.

This release features mainly a new resolver ParameterNameContainerResolver. This resolver will inject container entries by searching for the name of the parameter:

$invoker->call(function ($twig) {
    // ...
});

In this example it will ->get('twig') from the container and inject it.

Breaking changes:

  • renamed AssociativeArrayParameterResolver to AssociativeArrayResolver
  • renamed DefaultValueParameterResolver to DefaultValueResolver
  • renamed NumericArrayParameterResolver to NumericArrayResolver
  • renamed ParameterResolverChain to ResolverChain
  • renamed ResolverChain::unshiftResolver() to prependResolver() and pushResolver() to appendResolver()
  • moved and renamed ContainerParameterResolver to Container\TypeHintContainerResolver

0.1.0

22 Mar 05:30
Compare
Choose a tag to compare
0.1.0 Pre-release
Pre-release
Improved documentation