Skip to content

Commit

Permalink
Merge pull request #30 from Setono/php8
Browse files Browse the repository at this point in the history
Fix some deps
  • Loading branch information
loevgaard authored Jan 24, 2022
2 parents e9e269b + cc9ed09 commit 4f66a88
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
29 changes: 18 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "setono/sylius-trustpilot-plugin",
"type": "sylius-plugin",
"description": "Trustpilot plugin for Sylius.",
"license": "MIT",
"type": "sylius-plugin",
"keywords": [
"sylius",
"sylius-plugin",
"trustpilot"
],
"license": "MIT",
"require": {
"php": ">=7.4",
"sylius/resource-bundle": "^1.8",
"sylius/sylius": "^1.3",
"symfony/config": "^4.4 || ^5.0",
"thecodingmachine/safe": "^1.1"
Expand All @@ -24,14 +25,7 @@
"symfony/intl": "^4.4 || ^5.0",
"symfony/web-profiler-bundle": "^4.4 || ^5.0"
},
"config": {
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "1.2-dev"
}
},
"prefer-stable": true,
"autoload": {
"psr-4": {
"Setono\\SyliusTrustpilotPlugin\\": "src/"
Expand All @@ -43,7 +37,20 @@
"Tests\\Setono\\SyliusTrustpilotPlugin\\": "tests/"
}
},
"prefer-stable": true,
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": false,
"ergebnis/composer-normalize": true,
"phpstan/extension-installer": true,
"symfony/thanks": true
},
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "1.2-dev"
}
},
"scripts": {
"all": [
"composer checks",
Expand Down
7 changes: 3 additions & 4 deletions src/Controller/TrustpilotCustomerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@
use Setono\SyliusTrustpilotPlugin\Model\OrderTrustpilotAwareInterface;
use Sylius\Bundle\CoreBundle\Doctrine\ORM\OrderRepository;
use Sylius\Component\Resource\ResourceActions;
use Symfony\Bundle\FrameworkBundle\Controller\ControllerTrait;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Webmozart\Assert\Assert;

/**
* @mixin CustomerController
*/
trait TrustpilotCustomerTrait
{
use ControllerTrait;
use ContainerAwareTrait;

abstract protected function getParameter(string $name);

public function trustpilotBlockAction(Request $request): Response
{
/** @var OrderRepository $orderRepository */
Expand Down

0 comments on commit 4f66a88

Please sign in to comment.