DoclerLabs / hexMachina

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

DSL API change : "singleton-access" attribute renamed to "static-call" #186

Closed aliokan closed 7 years ago

aliokan commented 7 years ago

singleton-access attribute is an historic heritage from pixlib (2004).

singleton-access attribute name does not reflect the reality anymore and should be renamed to static-call.

<root name="applicationContext">
    <gateway id="gateway" value="http://localhost/amfphp/gateway.php"/>

    <service id="service" type="hex.ioc.parser.xml.mock.MockServiceProvider" static-call="getInstance">
        <method-call name="setGateway">
            <argument ref="gateway" />
        </method-call>
    </service>
</root>