1
0
Fork 0
mirror of synced 2025-04-10 04:30:58 +00:00

Compare commits

...

8 commits

Author SHA1 Message Date
fc78e5897b
Merge pull request #221 from opheugene/offer-site
Added site field to ProductOffer
2025-03-20 16:41:04 +03:00
Opheugene
0a862dd86b Added site field to ProductOffer 2025-03-19 17:51:25 +01:00
5a3547894a
Merge pull request #219 from Neur0toxine/fix-cache-action
fix github workflows (cache action)
2025-03-04 20:00:39 +03:00
1d05f3efeb fix github workflows (cache action) 2025-03-04 19:52:24 +03:00
831ed64871
Merge pull request #218 from Neur0toxine/fix-github-workflows
fix github workflows (checkout action)
2025-03-04 19:48:31 +03:00
502a0c8641 fix github workflows (checkout action) 2025-03-04 19:45:09 +03:00
4a99094294
Merge pull request #217 from curse89/master
Add calling setEventDispatcher method in ClientFactory
2025-03-04 19:42:56 +03:00
Сергей Кривич
c379815f76 Upd GH actions config && add calling setEventDispatcher method in CLientFactory 2025-03-04 19:19:35 +03:00
6 changed files with 24 additions and 9 deletions

View file

@ -17,24 +17,30 @@ jobs:
php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] php-version: ['7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
steps: steps:
- name: Check out code into the workspace - name: Check out code into the workspace
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Setup PHP ${{ matrix.php-version }} - name: Setup PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
php-version: ${{ matrix.php-version }} php-version: ${{ matrix.php-version }}
coverage: pcov coverage: pcov
- name: Composer cache - name: Composer cache
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: ${{ env.HOME }}/.composer/cache path: ${{ env.HOME }}/.composer/cache
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }} key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
- name: Install dependencies - name: Install dependencies
run: composer install -o run: composer install -o
- name: Configure matchers - name: Configure matchers
uses: mheap/phpunit-matcher-action@v1 uses: mheap/phpunit-matcher-action@v1
- name: Run tests - name: Run tests
run: composer run-script phpunit-ci run: composer run-script phpunit-ci
- name: Coverage - name: Coverage
uses: codecov/codecov-action@v2 uses: codecov/codecov-action@v4
with: with:
verbose: true verbose: true

View file

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code into the workspace - name: Check out code into the workspace
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Run PHPCS - name: Run PHPCS
uses: chekalsky/phpcs-action@v1 uses: chekalsky/phpcs-action@v1
phpmd: phpmd:
@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code into the workspace - name: Check out code into the workspace
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Run PHPMD - name: Run PHPMD
uses: GeneaLabs/action-reviewdog-phpmd@1.0.0 uses: GeneaLabs/action-reviewdog-phpmd@1.0.0
with: with:
@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out code into the workspace - name: Check out code into the workspace
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Run PHPStan - name: Run PHPStan
uses: docker://oskarstark/phpstan-ga:1.8.0 uses: docker://oskarstark/phpstan-ga:1.8.0
with: with:

View file

@ -19,7 +19,7 @@ jobs:
pages_threshold: major_outage pages_threshold: major_outage
- name: Check out code into the workspace - name: Check out code into the workspace
if: success() && ${{ github.ref != 'refs/heads/master' }} if: success() && ${{ github.ref != 'refs/heads/master' }}
uses: actions/checkout@v2 uses: actions/checkout@v4
- name: Setup PHP 8.3 - name: Setup PHP 8.3
if: ${{ github.ref != 'refs/heads/master' }} if: ${{ github.ref != 'refs/heads/master' }}
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
@ -27,7 +27,7 @@ jobs:
php-version: "8.3" php-version: "8.3"
- name: Cache phpDocumentor - name: Cache phpDocumentor
id: cache-phpdocumentor id: cache-phpdocumentor
uses: actions/cache@v2 uses: actions/cache@v4
with: with:
path: phpDocumentor.phar path: phpDocumentor.phar
key: phpdocumentor key: phpdocumentor

View file

@ -285,6 +285,7 @@ class ClientFactory implements ClientFactoryInterface, EventDispatcherAwareInter
->setStreamFactory($this->streamFactory) ->setStreamFactory($this->streamFactory)
->setRequestFactory($this->requestFactory) ->setRequestFactory($this->requestFactory)
->setUriFactory($this->uriFactory) ->setUriFactory($this->uriFactory)
->setEventDispatcher($this->eventDispatcher)
->appendRequestHandlers($this->requestHandlers) ->appendRequestHandlers($this->requestHandlers)
->appendResponseHandlers($this->responseHandlers) ->appendResponseHandlers($this->responseHandlers)
->build(); ->build();

View file

@ -170,4 +170,12 @@ class ProductOffer
* @JMS\SerializedName("barcode") * @JMS\SerializedName("barcode")
*/ */
public $barcode; public $barcode;
/**
* @var string
*
* @JMS\Type("string")
* @JMS\SerializedName("site")
*/
public $site;
} }

View file

@ -27,7 +27,7 @@ trait EventDispatcherAwareTrait
* *
* @param \Psr\EventDispatcher\EventDispatcherInterface|null $eventDispatcher * @param \Psr\EventDispatcher\EventDispatcherInterface|null $eventDispatcher
* *
* @return object * @return static
*/ */
public function setEventDispatcher(?EventDispatcherInterface $eventDispatcher): object public function setEventDispatcher(?EventDispatcherInterface $eventDispatcher): object
{ {