Skip to content

v1.1.2

Choose a tag to compare

@ivanvoitovych ivanvoitovych released this 12 May 09:39
· 5 commits to master since this release

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