From fd073dbba990cbf1aca5b1b9f9f119087eb728ef Mon Sep 17 00:00:00 2001 From: php-cuong Date: Wed, 22 Nov 2017 03:07:19 +0700 Subject: [PATCH] fix the bugs while di:compile the codes --- Model/ResourceModel/Faq/Grid/Collection.php | 4 ++-- Model/ResourceModel/Faqcat.php | 7 +++---- Model/ResourceModel/Faqcat/Grid/Collection.php | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Model/ResourceModel/Faq/Grid/Collection.php b/Model/ResourceModel/Faq/Grid/Collection.php index c938ac1..d1384ab 100644 --- a/Model/ResourceModel/Faq/Grid/Collection.php +++ b/Model/ResourceModel/Faq/Grid/Collection.php @@ -5,7 +5,7 @@ * @Author Ngo Quang Cuong * @Date 2016-12-16 02:06:33 * @Last modified by: nquangcuong - * @Last Modified time: 2017-01-05 09:00:41 + * @Last Modified time: 2017-11-22 02:59:22 */ namespace PHPCuong\Faq\Model\ResourceModel\Faq\Grid; @@ -44,7 +44,7 @@ public function __construct( $eventObject, $resourceModel, $model = 'Magento\Framework\View\Element\UiComponent\DataProvider\Document', - $connection = null, + \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null ) { parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource); diff --git a/Model/ResourceModel/Faqcat.php b/Model/ResourceModel/Faqcat.php index f9bd88d..2ef874e 100644 --- a/Model/ResourceModel/Faqcat.php +++ b/Model/ResourceModel/Faqcat.php @@ -5,7 +5,7 @@ * @Author Ngo Quang Cuong * @Date 2016-12-19 22:03:35 * @Last modified by: nquangcuong - * @Last Modified time: 2017-11-11 14:15:21 + * @Last Modified time: 2017-11-22 02:52:40 */ namespace PHPCuong\Faq\Model\ResourceModel; @@ -59,13 +59,12 @@ public function __construct( Context $context, StoreManagerInterface $storeManager, Urlkey $urlKey, - DirectoryList $directoryList, - $connectionName = null + DirectoryList $directoryList ) { $this->_urlKey = $urlKey; $this->_storeManager = $storeManager; $this->_directoryList = $directoryList; - parent::__construct($context, $connectionName); + parent::__construct($context); } /** diff --git a/Model/ResourceModel/Faqcat/Grid/Collection.php b/Model/ResourceModel/Faqcat/Grid/Collection.php index 1a2b7d2..2d91624 100644 --- a/Model/ResourceModel/Faqcat/Grid/Collection.php +++ b/Model/ResourceModel/Faqcat/Grid/Collection.php @@ -5,7 +5,7 @@ * @Author Ngo Quang Cuong * @Date 2016-12-19 22:07:42 * @Last modified by: nquangcuong - * @Last Modified time: 2017-01-05 08:51:42 + * @Last Modified time: 2017-11-22 02:59:06 */ namespace PHPCuong\Faq\Model\ResourceModel\Faqcat\Grid; @@ -44,7 +44,7 @@ public function __construct( $eventObject, $resourceModel, $model = 'Magento\Framework\View\Element\UiComponent\DataProvider\Document', - $connection = null, + \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null ) { parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);