Repository navigation
Releases: ivanvoitovych/dot-di
Releases · ivanvoitovych/dot-di
Release list
v1.1.4
v1.1.4
getAllmethod:
Example:
/** @var IMigrationsContext[] $migrationsContexts */
$migrationsContexts = $scope->serviceProvider->getAll(IMigrationsContext::class);
foreach ($migrationsContexts as $migrationsContext) {
$migrationsContext->run();
}Full Changelog: v1.1.3...v1.1.4
v1.1.3
What's Changed
- fix(IServiceProvider): use generic template to infer returned value based by @Ahmard in #1
- fix(ServiceProvider): removed manual impl of "IDisposable" because it's implemented in "IServiceProvider" already by @Ahmard in #2
New Contributors
Full Changelog: v1.1.2...v1.1.3
v1.1.2
v1.1.2
Added support for class level Inject attribute
// extending generic class
#[Inject([
'type' => 'UserEntity',
'dbMap' => 'UserEntityDbMap'
])]
class UserService extends GenericService
{
}
class GenericService
{
public function __construct(private string $type, private ?string $dbMap = null)
{
}
}Full Changelog: v1.1.1...v1.1.2
v1.1.1
Added support for default parameter values
Full Changelog: v1.1.0...v1.1.1