Skip to content

Instantly share code, notes, and snippets.

Avatar

kurozumi kurozumi

View GitHub Profile
View InstallerCommand.php
<?php
namespace Customize\Command;
use Eccube\Command\PluginCommandTrait;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
@kurozumi
kurozumi / services.yaml
Created Jan 2, 2021
ProductValueResolverの優先度を設定
View services.yaml
services:
Customize\ArgumentResolver\ProductValueResolver:
arguments:
- '@Eccube\Repository\ProductRepository'
tags:
- { name: controller.argument_value_resolver, priority: 50 }
View ProductValueResolver.php
<?php
namespace Customize\ArgumentResolver;
use Eccube\Entity\Product;
use Eccube\Repository\ProductRepository;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface;
@kurozumi
kurozumi / services.yaml
Created Jan 2, 2021
ParamConverterを無効化
View services.yaml
sensio_framework_extra:
request:
converters: true
auto_convert: false
@kurozumi
kurozumi / plg_nonmember_form.twig
Last active Dec 14, 2020
お届け先情報入力フォームブロックプラグインのパスワード項目設置サンプル
View plg_nonmember_form.twig
{% if app.request.get('_route') == 'user_data' %}
{% if product is defined and product is not null %}
{% form_theme form 'Form/form_div_layout.twig' %}
<div class="ec-customerRole">
<div class="ec-pageHeader">
<h1>{{ 'front.shopping.nonmember'|trans }}</h1>
</div>
<div class="ec-cartRole">
<div class="ec-cartRole__progress">
View RoutingExtension.php
<?php
/**
* This file is part of Customize
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
View ProductConverter.php
<?php
/**
* This file is part of Customize
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
View ProductController.php
<?php
/**
* This file is part of Customize
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
View ProductTrait.php
<?php
/**
* This file is part of Customize
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
@kurozumi
kurozumi / CustomerTypeController.php
Last active Dec 8, 2020
CustomerTypeController
View CustomerTypeController.php
<?php
/**
* This file is part of CustomerType
*
* Copyright(c) Akira Kurozumi <info@a-zumi.net>
*
* https://a-zumi.net
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.