Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit 1655ad4

Browse files
Merge pull request #15 from ptthao-yrglmvn/migration-4.3
Migration 4.3
2 parents e5ca004 + 892eb29 commit 1655ad4

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@ on:
1717
jobs:
1818
run-on-linux:
1919
name: Run on Linux
20-
runs-on: ${{ matrix.operating-system }}
20+
runs-on: ubuntu-22.04
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
operating-system: [ ubuntu-18.04 ]
25-
php: [ '7.4', '8.0', '8.1' ]
24+
eccube_version: [ '4.2', '4.3' ]
25+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3']
2626
db: [ 'mysql', 'mysql8', 'pgsql' ]
27-
eccube_version: [ '4.2' ]
2827
plugin_code: [ 'SiteKit42' ]
2928
include:
3029
- db: mysql
@@ -39,6 +38,15 @@ jobs:
3938
database_url: postgres://postgres:password@127.0.0.1:5432/eccube_db
4039
database_server_version: 14
4140
database_charset: utf8
41+
exclude:
42+
- eccube_version: 4.2
43+
php: 8.2
44+
- eccube_version: 4.2
45+
php: 8.3
46+
- eccube_version: 4.3
47+
php: 7.4
48+
- eccube_version: 4.3
49+
php: 8.0
4250
services:
4351
mysql:
4452
image: mysql:5.7
@@ -72,7 +80,6 @@ jobs:
7280
- 1080:1080
7381
- 1025:1025
7482
steps:
75-
- run: sudo apt-get purge -y hhvm
7683
- name: Checkout
7784
uses: actions/checkout@v2
7885

@@ -144,7 +151,7 @@ jobs:
144151
working-directory: 'ec-cube'
145152
run: |
146153
bin/console cache:clear --no-warmup
147-
bin/phpunit -c app/Plugin/${PLUGIN_CODE}/phpunit.xml.dist app/Plugin/${PLUGIN_CODE}/Tests
154+
./vendor/bin/phpunit -c app/Plugin/${PLUGIN_CODE}/phpunit.xml.dist app/Plugin/${PLUGIN_CODE}/Tests
148155
149156
- name: Disable Plugin
150157
working-directory: 'ec-cube'

PluginManager.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515

1616

1717
use Eccube\Plugin\AbstractPluginManager;
18-
use Symfony\Component\DependencyInjection\ContainerInterface;
18+
use Psr\Container\ContainerInterface;
1919
use Symfony\Component\Filesystem\Filesystem;
2020
use Symfony\Component\Yaml\Yaml;
21+
use Eccube\Common\EccubeConfig;
2122

2223
class PluginManager extends AbstractPluginManager
2324
{
2425
public function install(array $meta, ContainerInterface $container)
2526
{
2627
$fs = new Filesystem();
27-
$routeYaml = $container->getParameter('plugin_data_realdir').'/SiteKit42/routes.yaml';
28+
$routeYaml = $container->get(EccubeConfig::class)->get('plugin_data_realdir').'/SiteKit42/routes.yaml';
2829
if (!$fs->exists($routeYaml)) {
2930
$fs->dumpFile($routeYaml, '');
3031
}
@@ -33,7 +34,7 @@ public function install(array $meta, ContainerInterface $container)
3334
public function update(array $meta, ContainerInterface $container)
3435
{
3536
$fs = new Filesystem();
36-
$routeYaml = $container->getParameter('plugin_data_realdir').'/SiteKit42/routes.yaml';
37+
$routeYaml = $container->get(EccubeConfig::class)->get('plugin_data_realdir').'/SiteKit42/routes.yaml';
3738
if (!$fs->exists($routeYaml)) {
3839
$fs->dumpFile($routeYaml, '');
3940
}

Service/Google_Site_Kit_Client.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ public function authorize(ClientInterface $http = null)
136136
* Fetches an OAuth 2.0 access token by using a temporary code.
137137
*
138138
* @param string $code Temporary authorization code, or undelegated token code.
139+
*
140+
* @param string $codeVerifier the code verifier used for PKCE (if applicable)
139141
*
140142
* @return array Access token.
141143
*
@@ -144,7 +146,7 @@ public function authorize(ClientInterface $http = null)
144146
*
145147
* @since 1.0.0
146148
*/
147-
public function fetchAccessTokenWithAuthCode($code)
149+
public function fetchAccessTokenWithAuthCode($code, $codeVerifier = null)
148150
{
149151
if (strlen($code) === 0) {
150152
throw new InvalidArgumentException('Invalid code');

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ec-cube/sitekit42",
3-
"version": "4.2.2",
3+
"version": "4.3.0",
44
"description": "Site Kit プラグイン",
55
"type": "eccube-plugin",
66
"require": {

0 commit comments

Comments
 (0)