質問 > フロント機能 > OrderHelper.phpのカスタマイズでエラー |
フロント機能
フラット表示 | 前のトピック | 次のトピック |
投稿者 | スレッド |
---|---|
kazz_oga |
投稿日時: 2021/1/29 12:13
対応状況: 確認中
|
一人前 登録日: 2013/8/5 居住地: 東京都北区赤羽西 投稿: 144 |
OrderHelper.phpのカスタマイズでエラー ▼テンプレート
[EC-CUBE] 4.05 [レンタルサーバ] local環境 [OS] MacOS 10.15.7 [PHP] 7.4 [データベース] MySQL 5.7 [WEBサーバ] Apache 2.4 [ブラウザ] safari 14.0 [導入プラグインの有無] なし [カスタマイズの有無] あり [現象] 次の記事を参考にして、OrderHelper.phpをカスタマイズを行なっています。 https://kumahiyo.com/extend-service/ エラーが出て、解決策が分からず困っています。 ご教授をお願いしたいのですが <エラー> Type error: Argument 1 passed to Eccube\Service\OrderHelper::__construct() must implement interface Symfony\Component\DependencyInjection\ContainerInterface, string given, called in /Users/xxxxxxx/localhost/htdocs/eccube-4/var/cache/dev/ContainerYoogxyc/getOrderHelperServiceCustomizerService.php on line 12 <service.yamlに追加> Customize\Service\OrderHelperServiceCustomizer: decorates: Eccube\Service\OrderHelper arguments: - ‘@Eccube\Common\EccubeConfig’ <Customize/Service/OrderHelperServiceCustomizer.php> namespace Customize\Service; use Eccube\Service\OrderHelper; use Eccube\Entity\Shipping; class OrderHelperServiceCustomizer extends OrderHelper { /** * @param Shipping $Shipping */ protected function setDefaultDelivery(Shipping $Shipping) { カスタマイズした内容 } } <var/...../getOrderHelperServiceCustomizerService.phpの12行目> return $this->services['Customize\\Service\\OrderHelperServiceCustomizer'] = new \Customize\Service\OrderHelperServiceCustomizer('‘@Eccube\\Common\\EccubeConfig’', ${($_ = isset($this->services['doctrine.orm.default_entity_manager']) ? $this->services['doctrine.orm.default_entity_manager'] : $this->getDoctrine_Orm_DefaultEntityManagerService()) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\OrderRepository']) ? $this->services['Eccube\\Repository\\OrderRepository'] : $this->getOrderRepositoryService()) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\Master\\OrderItemTypeRepository']) ? $this->services['Eccube\\Repository\\Master\\OrderItemTypeRepository'] : $this->load('getOrderItemTypeRepositoryService.php')) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\Master\\OrderStatusRepository']) ? $this->services['Eccube\\Repository\\Master\\OrderStatusRepository'] : $this->load('getOrderStatusRepositoryService.php')) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\DeliveryRepository']) ? $this->services['Eccube\\Repository\\DeliveryRepository'] : $this->load('getDeliveryRepositoryService.php')) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\PaymentRepository']) ? $this->services['Eccube\\Repository\\PaymentRepository'] : $this->load('getPaymentRepositoryService.php')) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\Master\\DeviceTypeRepository']) ? $this->services['Eccube\\Repository\\Master\\DeviceTypeRepository'] : $this->getDeviceTypeRepositoryService()) && false ?: '_'}, ${($_ = isset($this->services['Eccube\\Repository\\Master\\PrefRepository']) ? $this->services['Eccube\\Repository\\Master\\PrefRepository'] : $this->load('getPrefRepositoryService.php')) && false ?: '_'}, ${($_ = isset($this->services['mobile_detect.mobile_detector.default']) ? $this->services['mobile_detect.mobile_detector.default'] : ($this->services['mobile_detect.mobile_detector.default'] = new \SunCat\MobileDetectBundle\DeviceDetector\MobileDetector())) && false ?: '_'}, ${($_ = isset($this->services['session']) ? $this->services['session'] : $this->getSessionService()) && false ?: '_'}); |
フラット表示 | 前のトピック | 次のトピック |
題名 | 投稿者 | 日時 |
---|---|---|
» OrderHelper.phpのカスタマイズでエラー | kazz_oga | 2021/1/29 12:13 |
Re: OrderHelper.phpのカスタマイズでエラー | kazz_oga | 2021/1/30 10:09 |