diff --git a/.github/workflows/quality-check.yml b/.github/workflows/quality-check.yml index 52e811c..e62ed53 100644 --- a/.github/workflows/quality-check.yml +++ b/.github/workflows/quality-check.yml @@ -55,8 +55,7 @@ jobs: timeout-minutes: 15 strategy: matrix: - # @TODO: "1.6.1.24" is temporarily disabled here - ps_version: ["1.7.8.10", "8.1.6"] + ps_version: ["1.7.8.10", "8.1.7"] steps: - name: Checkout uses: actions/checkout@v4 @@ -75,7 +74,7 @@ jobs: if: ${{ github.event_name == 'pull_request' }} strategy: matrix: - ps_version: ["1.7.8.10", "8.1.4", "nightly"] + ps_version: ["1.7.8.10", "8.1.7", "nightly"] steps: - name: Checkout the repository uses: actions/checkout@v4 diff --git a/Makefile b/Makefile index 014c34e..0955bbc 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,8 @@ lint: php-cs-fixer php-lint docker-lint: docker-php-cs-fixer docker-php-lint # target: lint-fix (or docker-lint-fix) - Automatically fix the linting errors -.PHONY: lint-fix docker-lint-fix +.PHONY: lint-fix docker-lint-fix fix +fix: lint-fix lint-fix: php-cs-fixer-fix docker-lint-fix: docker-php-cs-fixer-fix diff --git a/config/common.yml b/config/common.yml index a13e12a..ec2c83b 100644 --- a/config/common.yml +++ b/config/common.yml @@ -22,3 +22,7 @@ services: PrestaShop\Module\PsAccounts\Presenter\PsAccountsPresenter: class: PrestaShop\Module\PsAccounts\Presenter\PsAccountsPresenter public: true + + PrestaShop\Module\PsAccounts\Repository\UserTokenRepository: + class: PrestaShop\Module\PsAccounts\Repository\UserTokenRepository + public: true diff --git a/src/Repository/UserTokenRepository.php b/src/Repository/UserTokenRepository.php new file mode 100644 index 0000000..ec89ed5 --- /dev/null +++ b/src/Repository/UserTokenRepository.php @@ -0,0 +1,18 @@ +