/** * @param Filesystem $files * @param ServiceInterpreterInterface $interpreter */ public function __construct(Filesystem $files = null, ServiceInterpreterInterface $interpreter = null) { if (is_null($files)) { $files = app(Filesystem::class); } $this->files = $files; parent::__construct(null, $interpreter); }
/** * @param ServiceRequestDefaultsInterface $defaults * @param ServiceInterpreterInterface $interpreter * @param array $guzzleConfig default config to pass into the guzzle client */ public function __construct(ServiceRequestDefaultsInterface $defaults = null, ServiceInterpreterInterface $interpreter = null, array $guzzleConfig = []) { $this->client = app(Client::class, [$guzzleConfig]); parent::__construct($defaults, $interpreter); }