/** * @param array $options * @param ConvertResponse|null $converter */ public function __construct(array $options = [], ConvertResponse $converter = null) { $options = $this->ensureTimeZone($options); parent::__construct($options); $this->registerApiCredentials(); $this->registerApiBindings(); $this->converter = $this->checkConverter($converter); }
/** * @param array|null $options * @param Filesystem|null $files */ public function __construct(array $options = [], Filesystem $files = null) { parent::__construct($options); // Allow for Filesystem to be injected for testing or if null, then auto create it. $this->files = $files ?: $this->get('Illuminate\\Filesystem\\Filesystem'); }