1.0.x-dev
1.0.9999999.9999999-devThis package contains a set of tools to work with container-interop's service-providers.
MIT
The Requires
The Development Requires
This package contains a set of tools to work with container-interop's service-providers.
This package contains a set of tools to work with container-interop's service-providers., (*2)
You can install this package through Composer:, (*3)
{ "require": { "thecodingmachine/service-provider-utils": "~1.0" } }
The packages adheres to the SemVer specification, and there will be full backward compatibility between minor versions., (*4)
This package contains a single utility method that analyses a factory (i.e. a callable) and returns if the second argument (the $previous
argument) is used or not., (*5)
// $previous is not used in this callable $callable = function(ContainerInterface $container, $previous) { return new MyService(); }); $factoryAnalyser = new FactoryAnalyzer(); $isPreviousUsed = $factoryAnalyser->isPreviousArgumentUsed($callable); // $isPreviousUsed === false
Note: this function can sometimes return false positives, in particular if your body contains calls to func_get_args
or refences by variable name ($$foo
). It should however never return false negatives., (*6)
This package contains a set of tools to work with container-interop's service-providers.
MIT