DoclerLabs / hexMachina

Releases, issues, documentation, website of hexMachina, framework written in Haxe
http://hexmachina.org
MIT License
44 stars 8 forks source link

Optional inject without param #237

Closed NewKrok closed 7 years ago

NewKrok commented 7 years ago

It will be great if I could set an Injection to Optional without any params, like this:

@Optional // Instead of @Optional(true)
@Inject("someAwesomeClass")
public var someAwesomeClass:ISomeAwesomeClass
aliokan commented 7 years ago

https://github.com/DoclerLabs/hexAnnotation/commit/39e872f3cb4bb984cc43a2a5f37a72780bf6abf9