Skip to content

Commit

Permalink
Merge pull request #3 from nanasess/improve/4.1
Browse files Browse the repository at this point in the history
4.1 support
  • Loading branch information
Kiyotaka Oku authored Aug 13, 2021
2 parents 64da4f8 + e91eeb3 commit 9ff62d5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
6 changes: 3 additions & 3 deletions GraphQL/WebHookMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

namespace Plugin\GMC\GraphQL;

use Doctrine\ORM\EntityManager;
use Doctrine\ORM\EntityManagerInterface;
use Eccube\Common\EccubeConfig;
use GraphQL\Type\Definition\Type;
use Plugin\Api\Entity\WebHook;
Expand All @@ -28,7 +28,7 @@ class WebHookMutation implements Mutation
private $webHookRepository;

/**
* @var EntityManager
* @var EntityManagerInterface
*/
private $entityManager;

Expand All @@ -40,7 +40,7 @@ class WebHookMutation implements Mutation
/**
* WebHookMutation constructor.
*/
public function __construct(WebHookRepository $webHookRepository, EntityManager $entityManager, EccubeConfig $eccubeConfig)
public function __construct(WebHookRepository $webHookRepository, EntityManagerInterface $entityManager, EccubeConfig $eccubeConfig)
{
$this->webHookRepository = $webHookRepository;
$this->entityManager = $entityManager;
Expand Down
9 changes: 8 additions & 1 deletion Resource/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
parameters:
gmc_proxy_url: 'https://gmc-proxy.ec-cube.net'
gmc_proxy_url: 'https://gmc-proxy.ec-cube.net'
services:
Trikoder\Bundle\OAuth2Bundle\Manager\Doctrine\ClientManager:
arguments:
- '@doctrine.orm.entity_manager'
Trikoder\Bundle\OAuth2Bundle\Manager\ClientManagerInterface:
alias: 'Trikoder\Bundle\OAuth2Bundle\Manager\Doctrine\ClientManager'
public: true
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ec-cube/GMC",
"version": "1.0.3",
"name": "ec-cube/gmc",
"version": "1.1.0",
"description": "Google Merchant Center",
"type": "eccube-plugin",
"require": {
"ec-cube/plugin-installer": "~0.0.7",
"ec-cube/Api": "~1.0"
"ec-cube/plugin-installer": "~0.0.7 || ^2.0",
"ec-cube/api": "^2.1"
},
"extra": {
"code": "GMC"
Expand Down

0 comments on commit 9ff62d5

Please sign in to comment.