-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
Right now the pull
model (the service factory) is used instead of push
model (dependency injection). The only service that is available right now is CurlService
and it's used in 2 classes only:
- AbstractWebDriver
- SauceRest
Proposing to:
- add an optional
$curlService
argument to constructor of mentioned classes - when not given use service factory to create it
- add
$defaultOptions
constructor parameter to existingCurlService
class, that would be stored as class property - the
CurlService::execute
method would merge$defaultOptions
property with$extraOptions
method argument to get final list of curl options for a request
This would both preserve BC and make replacement of CurlService straight forward.
Metadata
Metadata
Assignees
Labels
No labels