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