| 1 | <?php |
||
| 19 | class DriversFactory |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * the namespace of the drivers. |
||
| 23 | */ |
||
| 24 | const DRIVERS_NAMESPACE = 'Vinelab\\UrlShortener\\Drivers\\'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * initialize the driver instance and return it. |
||
| 28 | * |
||
| 29 | * @param $name driver name to be initialized |
||
| 30 | * @param $parameters parameters to be passed to the driver constructor |
||
| 31 | * @param $httpClient |
||
| 32 | * |
||
| 33 | * @return \Vinelab\UrlShortener\Drivers\Vinelab\UrlShortener\Contracts\DriverInterface |
||
| 34 | */ |
||
| 35 | public static function make($name, $parameters, $httpClient = null) |
||
| 53 | } |
||
| 54 |