Skip to content

Releases: ivanvoitovych/dot-di

v1.1.4

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 15 Jan 12:43

v1.1.4

  • getAll method:

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

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 21 Apr 13:43
f57924b

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

  • @Ahmard made their first contribution in #1

Full Changelog: v1.1.2...v1.1.3

v1.1.2

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 12 May 09:39

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

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 28 Mar 14:11

Added support for default parameter values

Full Changelog: v1.1.0...v1.1.1

v1.1.0

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 28 Aug 15:07

v1.1.0

  • Added factory support

Full Changelog: v1.0.0...v1.1.0

v1.0.0

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 22 May 12:38

v1.0.0