Remove obsolete arguments
This commit is contained in:
@@ -27,7 +27,6 @@ namespace EP\EpProducts\Controller;
|
|||||||
* This copyright notice MUST APPEAR in all copies of the script!
|
* This copyright notice MUST APPEAR in all copies of the script!
|
||||||
***************************************************************/
|
***************************************************************/
|
||||||
|
|
||||||
use EP\EpProducts\Domain\Model\FilterSettings;
|
|
||||||
use EP\EpProducts\Domain\Model\Hotel;
|
use EP\EpProducts\Domain\Model\Hotel;
|
||||||
use EP\EpProducts\Domain\Model\Product;
|
use EP\EpProducts\Domain\Model\Product;
|
||||||
use EP\EpProducts\Domain\Repository\HotelRepository;
|
use EP\EpProducts\Domain\Repository\HotelRepository;
|
||||||
@@ -109,13 +108,13 @@ class ProductController extends ActionController
|
|||||||
/**
|
/**
|
||||||
* @param Product $product
|
* @param Product $product
|
||||||
* @param Hotel $hotel
|
* @param Hotel $hotel
|
||||||
* @param FilterSettings $filterSettings
|
|
||||||
* @param int $referringPageUid
|
* @param int $referringPageUid
|
||||||
|
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\StopActionException
|
||||||
|
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException
|
||||||
*/
|
*/
|
||||||
public function detailAction(
|
public function detailAction(
|
||||||
Product $product = null,
|
Product $product = null,
|
||||||
Hotel $hotel = null,
|
Hotel $hotel = null,
|
||||||
FilterSettings $filterSettings = null,
|
|
||||||
$referringPageUid = null
|
$referringPageUid = null
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -138,7 +137,6 @@ class ProductController extends ActionController
|
|||||||
if ($product->getHotels()->count() > 1) {
|
if ($product->getHotels()->count() > 1) {
|
||||||
$arguments = [
|
$arguments = [
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
'filterSettings' => $filterSettings,
|
|
||||||
'referringPageUid' => $referringPageUid,
|
'referringPageUid' => $referringPageUid,
|
||||||
];
|
];
|
||||||
$this->forward('hotelList', null, null, $arguments);
|
$this->forward('hotelList', null, null, $arguments);
|
||||||
@@ -153,7 +151,6 @@ class ProductController extends ActionController
|
|||||||
$noInfoConceptUids = GeneralUtility::trimExplode(',', $this->settings['noInfoConceptUids']);
|
$noInfoConceptUids = GeneralUtility::trimExplode(',', $this->settings['noInfoConceptUids']);
|
||||||
$isProductWithNoInfoConcept = ($product->getConcept() !== null) && \in_array($product->getConcept()->getUid(), $noInfoConceptUids, false);
|
$isProductWithNoInfoConcept = ($product->getConcept() !== null) && \in_array($product->getConcept()->getUid(), $noInfoConceptUids, false);
|
||||||
$this->view->assignMultiple([
|
$this->view->assignMultiple([
|
||||||
'filterSettings' => $filterSettings,
|
|
||||||
'hotel' => $hotel,
|
'hotel' => $hotel,
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
'referringPageUid' => $referringPageUid,
|
'referringPageUid' => $referringPageUid,
|
||||||
@@ -181,18 +178,15 @@ class ProductController extends ActionController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param Product $product
|
* @param Product $product
|
||||||
* @param FilterSettings $filterSettings
|
|
||||||
* @param int $referringPageUid
|
* @param int $referringPageUid
|
||||||
*/
|
*/
|
||||||
public function hotelListAction(
|
public function hotelListAction(
|
||||||
Product $product,
|
Product $product,
|
||||||
FilterSettings $filterSettings = null,
|
|
||||||
$referringPageUid = null
|
$referringPageUid = null
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
$hotels = $this->hotelDataService->getList($product);
|
$hotels = $this->hotelDataService->getList($product);
|
||||||
$this->view->assignMultiple([
|
$this->view->assignMultiple([
|
||||||
'filterSettings' => $filterSettings,
|
|
||||||
'hotels' => $hotels,
|
'hotels' => $hotels,
|
||||||
'product' => $product,
|
'product' => $product,
|
||||||
'referringPageUid' => $referringPageUid,
|
'referringPageUid' => $referringPageUid,
|
||||||
|
|||||||
Reference in New Issue
Block a user