Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 492 Bytes

api_factory.md

File metadata and controls

18 lines (11 loc) · 492 Bytes

The ApiFactory

This class instantiate "Api classes" when you use it like that thanks to the magic method call:

<?php

$apiFactory->getMyAwesomeApi();

So the first thing you have to do when building your API is to extend it and implement the only needed method by extending the Nekland\BaseApi\ApiFactory class.

You can also:

  • Redefine the getTransformer method to change the default one.

Now, build your API classes.