Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Changes to use configs from constructor for multiple stores purpose. #63

@jeancx

Description

@jeancx

Hi i think that would be best for use the wrapper if had the option of using the settings from constructor and not only from environment or laravel configs, by example:

public function __construct($baseUrl = null, $token = null, $version = null, $basePath = null, $storeCode = null)
{
    $this->baseUrl = $baseUrl ?: config('magento.base_url');
    $this->token = $token ?: config('magento.token');
    $this->version = $version ?: config('magento.version') ?: 'V1';
    $this->basePath = $basePath ?: config('magento.base_path') ?: 'rest';
    $this->storeCode = $storeCode ?: config('magento.store_code') ?: 'all';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions