feat: boot TYPO3 13 with site configs and the theme build
- Site configs for the seven live sites from EP/website, Development base variants on *-ep13.ddev.site (DDEV additional_hostnames) - Webpack Encore build moved to the root, output in packages/ep_theme/Resources/Public, public path /_assets/<hash> - Search UI removed from the kept layouts and partials, as the static export already does - Daytrip room selection and the contingent chain removed (contingent import is not ported; no daytrip product has current contingents) - f:uri.action is final in v13: Uri\AjaxViewHelper invokes it - Remaining QueryBuilder::execute() and array logicalAnd() calls, addRootLineFields, TSFE getData, legacy typo3conf/ext template path - Rector skips the plugin-to-CType rules; plugins stay list_type Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
41b9302d9b
commit
a598339f67
56 files changed
+10844
-1348
No files matched your search
@@ -34,13 +34,11 @@ use EP\EpProducts\Domain\Model\Hotel;
|
||||
use EP\EpProducts\Domain\Model\Product;
|
||||
use EP\EpProducts\Domain\Repository\InfoboxRepository;
|
||||
use EP\EpProducts\Domain\Repository\ProductRepository;
|
||||
use EP\EpProducts\Service\ContingentDataService;
|
||||
use EP\EpProducts\Service\DateService;
|
||||
use EP\EpProducts\Service\FilterService;
|
||||
use EP\EpProducts\Service\MyEpUrlResolverService;
|
||||
use EP\EpProducts\Service\ResellerDataService;
|
||||
use EP\EpProducts\Traits\RequestArgumentTypeConversionTrait;
|
||||
use League\Period\Period;
|
||||
use TYPO3\CMS\Core\Utility\GeneralUtility;
|
||||
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
|
||||
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
|
||||
@@ -75,11 +73,6 @@ class AjaxTableController extends ActionController
|
||||
*/
|
||||
protected $resellerDataService;
|
||||
|
||||
/**
|
||||
* @var ContingentDataService
|
||||
*/
|
||||
protected $contingentDataService;
|
||||
|
||||
/**
|
||||
* @var MyEpUrlResolverService
|
||||
*/
|
||||
@@ -91,7 +84,6 @@ class AjaxTableController extends ActionController
|
||||
* @param DateService $dateService
|
||||
* @param FilterService $filterService
|
||||
* @param ResellerDataService $resellerDataService
|
||||
* @param ContingentDataService $contingentDataService
|
||||
* @param MyEpUrlResolverService $myEpUrlResolverService
|
||||
*/
|
||||
public function __construct(
|
||||
@@ -100,7 +92,6 @@ class AjaxTableController extends ActionController
|
||||
DateService $dateService,
|
||||
FilterService $filterService,
|
||||
ResellerDataService $resellerDataService,
|
||||
ContingentDataService $contingentDataService,
|
||||
MyEpUrlResolverService $myEpUrlResolverService
|
||||
) {
|
||||
$this->productRepository = $productRepository;
|
||||
@@ -108,7 +99,6 @@ class AjaxTableController extends ActionController
|
||||
$this->dateService = $dateService;
|
||||
$this->filterService = $filterService;
|
||||
$this->resellerDataService = $resellerDataService;
|
||||
$this->contingentDataService = $contingentDataService;
|
||||
$this->myEpUrlResolverService = $myEpUrlResolverService;
|
||||
}
|
||||
|
||||
@@ -133,8 +123,8 @@ class AjaxTableController extends ActionController
|
||||
public function datestableAction(
|
||||
Product $product,
|
||||
Hotel $hotel,
|
||||
string $dateFrom = null,
|
||||
string $dateTo = null
|
||||
?string $dateFrom = null,
|
||||
?string $dateTo = null
|
||||
): ResponseInterface {
|
||||
$forcedConceptUids = GeneralUtility::trimExplode(',', $this->settings['forcedConceptUids'], true);
|
||||
$filterSettings = $this->filterService->getNormalizedFilterSettings([], $forcedConceptUids);
|
||||
@@ -343,36 +333,6 @@ class AjaxTableController extends ActionController
|
||||
return $this->htmlResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Hotel $hotel
|
||||
* @param Product $product
|
||||
* @param string $dateFrom
|
||||
* @param string $dateTo
|
||||
*/
|
||||
public function daytripRoomsAction(
|
||||
Hotel $hotel,
|
||||
Product $product,
|
||||
string $dateFrom,
|
||||
string $dateTo
|
||||
): ResponseInterface {
|
||||
$period = new Period($dateFrom, $dateTo);
|
||||
$nights = (int) $period->dateInterval()->format('%a') + 1;
|
||||
$myEpUrl = $this->myEpUrlResolverService->resolve();
|
||||
|
||||
if (2 > $nights) {
|
||||
$rooms = [];
|
||||
} else {
|
||||
$rooms = $this
|
||||
->contingentDataService
|
||||
->getAvailableRooms($dateFrom, $dateTo, $hotel, $product, $myEpUrl);
|
||||
}
|
||||
|
||||
$this->view->assign('nights', $nights);
|
||||
$this->view->assign('rooms', $rooms);
|
||||
$this->view->assign('myEpUrl', $myEpUrl);
|
||||
return $this->htmlResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Product $product
|
||||
* @return Infobox
|
||||
|
||||
@@ -33,7 +33,6 @@ use EP\EpProducts\Domain\Model\Product;
|
||||
use EP\EpProducts\Domain\Repository\HotelRepository;
|
||||
use EP\EpProducts\Domain\Repository\InfoboxRepository;
|
||||
use EP\EpProducts\Domain\Repository\ProductRepository;
|
||||
use EP\EpProducts\Service\ContingentDataService;
|
||||
use EP\EpProducts\Service\DateService;
|
||||
use EP\EpProducts\Service\FilterService;
|
||||
use EP\EpProducts\Service\HotelDataService;
|
||||
@@ -74,10 +73,6 @@ class ProductController extends ActionController
|
||||
* @var HotelDataService
|
||||
*/
|
||||
protected $hotelDataService;
|
||||
/**
|
||||
* @var ContingentDataService
|
||||
*/
|
||||
private $contingentDataService;
|
||||
|
||||
/**
|
||||
* @var InfoboxRepository
|
||||
@@ -94,7 +89,6 @@ class ProductController extends ActionController
|
||||
* @param ProductDataService $productDataService
|
||||
* @param HotelRepository $hotelRepository
|
||||
* @param HotelDataService $hotelDataService
|
||||
* @param ContingentDataService $contingentDataService
|
||||
* @param DateService $dateService
|
||||
* @param FilterService $filterService
|
||||
* @param InfoboxRepository $infoboxRepository
|
||||
@@ -105,7 +99,6 @@ class ProductController extends ActionController
|
||||
ProductDataService $productDataService,
|
||||
HotelRepository $hotelRepository,
|
||||
HotelDataService $hotelDataService,
|
||||
ContingentDataService $contingentDataService,
|
||||
DateService $dateService,
|
||||
FilterService $filterService,
|
||||
InfoboxRepository $infoboxRepository,
|
||||
@@ -115,7 +108,6 @@ class ProductController extends ActionController
|
||||
$this->productDataService = $productDataService;
|
||||
$this->hotelRepository = $hotelRepository;
|
||||
$this->hotelDataService = $hotelDataService;
|
||||
$this->contingentDataService = $contingentDataService;
|
||||
$this->dateService = $dateService;
|
||||
$this->filterService = $filterService;
|
||||
$this->infoboxRepository = $infoboxRepository;
|
||||
@@ -131,8 +123,8 @@ class ProductController extends ActionController
|
||||
* @throws \TYPO3\CMS\Extbase\Mvc\Exception\UnsupportedRequestTypeException
|
||||
*/
|
||||
public function detailAction(
|
||||
Product $product = null,
|
||||
Hotel $hotel = null,
|
||||
?Product $product = null,
|
||||
?Hotel $hotel = null,
|
||||
$dateFrom = null,
|
||||
$dateTo = null
|
||||
) {
|
||||
@@ -172,14 +164,6 @@ class ProductController extends ActionController
|
||||
}
|
||||
}
|
||||
|
||||
if ($product->isDaytrip()) {
|
||||
$availableContingents = $this
|
||||
->contingentDataService
|
||||
->getAvailableContingents($hotel, $product)
|
||||
;
|
||||
$enabledDates = array_keys($availableContingents);
|
||||
}
|
||||
|
||||
$concept = $product->getConcept();
|
||||
$excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids'], true);
|
||||
$isProductWithExcludedConcept = ($concept !== null) && \in_array($concept->getUid(), $excludedConceptUids);
|
||||
@@ -196,7 +180,8 @@ class ProductController extends ActionController
|
||||
$this->view->assignMultiple([
|
||||
'hotel' => $hotel,
|
||||
'product' => $product,
|
||||
'enabledDates' => $enabledDates ?? [],
|
||||
// Daytrip availability came from the contingent import, which is not ported
|
||||
'enabledDates' => [],
|
||||
'isProductWithExcludedConcept' => $isProductWithExcludedConcept,
|
||||
'isProductWithNoInfoConcept' => $isProductWithNoInfoConcept,
|
||||
'isProductWithGroupInquiryForm' => $isProductWithGroupInquiryForm,
|
||||
|
||||
@@ -1,353 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace EP\EpProducts\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2016 Björn Fromme <[email protected]>, dreipunktnull
|
||||
*
|
||||
* All rights reserved
|
||||
*
|
||||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||||
* free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* The GNU General Public License can be found at
|
||||
* http://www.gnu.org/copyleft/gpl.html.
|
||||
*
|
||||
* This script is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* This copyright notice MUST APPEAR in all copies of the script!
|
||||
***************************************************************/
|
||||
|
||||
use CalendR\Event\EventInterface;
|
||||
use CalendR\Period\PeriodInterface;
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
||||
|
||||
class Contingent extends AbstractEntity implements EventInterface
|
||||
{
|
||||
const STATUS_OK = 0;
|
||||
const STATUS_BLOCKED = 1;
|
||||
const STATUS_ONREQUEST = 2;
|
||||
|
||||
/**
|
||||
* @var \DateTime
|
||||
*/
|
||||
protected $date;
|
||||
|
||||
/**
|
||||
* @var Hotel
|
||||
*/
|
||||
protected $hotel;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $roomCode;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $roomLabel;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $pax;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $available;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $status;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $minPrice;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $minNights;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $additionalNightMinPrice;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $additionalNightMinNights;
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
* @return Contingent
|
||||
*/
|
||||
public static function fromArray(array $data)
|
||||
{
|
||||
$event = new self;
|
||||
|
||||
$event->setPax($data['pax']);
|
||||
$event->setAvailable($data['available']);
|
||||
$event->setDate(new \DateTime($data['date']));
|
||||
$event->setStatus($data['status']);
|
||||
|
||||
if ($data['hotel'] instanceof Hotel) {
|
||||
$event->setHotel($data['hotel']);
|
||||
}
|
||||
|
||||
return $event;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getDate()
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime $date
|
||||
*/
|
||||
public function setDate(\DateTime $date)
|
||||
{
|
||||
$this->date = $date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Hotel
|
||||
*/
|
||||
public function getHotel()
|
||||
{
|
||||
return $this->hotel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Hotel $hotel
|
||||
*/
|
||||
public function setHotel($hotel)
|
||||
{
|
||||
$this->hotel = $hotel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRoomCode()
|
||||
{
|
||||
return $this->roomCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $roomCode
|
||||
*/
|
||||
public function setRoomCode($roomCode)
|
||||
{
|
||||
$this->roomCode = $roomCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getRoomLabel()
|
||||
{
|
||||
return $this->roomLabel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $roomLabel
|
||||
*/
|
||||
public function setRoomLabel($roomLabel)
|
||||
{
|
||||
$this->roomLabel = $roomLabel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPax()
|
||||
{
|
||||
return $this->pax;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $pax
|
||||
*/
|
||||
public function setPax($pax)
|
||||
{
|
||||
$this->pax = $pax;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getAvailable()
|
||||
{
|
||||
return $this->available;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $available
|
||||
*/
|
||||
public function setAvailable($available)
|
||||
{
|
||||
$this->available = $available;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPercentageAvailable()
|
||||
{
|
||||
if ($this->pax === 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return round($this->available / $this->pax * 100, 2);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $status
|
||||
*/
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMinPrice()
|
||||
{
|
||||
return $this->minPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $minPrice
|
||||
*/
|
||||
public function setMinPrice($minPrice)
|
||||
{
|
||||
$this->minPrice = $minPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getMinNights()
|
||||
{
|
||||
return $this->minNights;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $minNights
|
||||
*/
|
||||
public function setMinNights($minNights)
|
||||
{
|
||||
$this->minNights = $minNights;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getAdditionalNightMinPrice()
|
||||
{
|
||||
return $this->additionalNightMinPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $additionalNightMinPrice
|
||||
*/
|
||||
public function setAdditionalNightMinPrice($additionalNightMinPrice)
|
||||
{
|
||||
$this->additionalNightMinPrice = $additionalNightMinPrice;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getAdditionalNightMinNights()
|
||||
{
|
||||
return $this->additionalNightMinNights;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $additionalNightMinNights
|
||||
*/
|
||||
public function setAdditionalNightMinNights($additionalNightMinNights)
|
||||
{
|
||||
$this->additionalNightMinNights = $additionalNightMinNights;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getBegin()
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \DateTime
|
||||
*/
|
||||
public function getEnd()
|
||||
{
|
||||
return $this->date;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DateTime $datetime
|
||||
* @return bool
|
||||
*/
|
||||
public function contains(\DateTime $datetime)
|
||||
{
|
||||
return $datetime >= $this->getBegin() && $datetime < $this->getEnd();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PeriodInterface $period
|
||||
* @return bool
|
||||
*/
|
||||
public function containsPeriod(PeriodInterface $period)
|
||||
{
|
||||
return $this->contains($period->getBegin()) && $this->contains($period->getEnd());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param PeriodInterface $period
|
||||
* @return bool
|
||||
*/
|
||||
public function isDuring(PeriodInterface $period)
|
||||
{
|
||||
return $this->getBegin() >= $period->getBegin() && $this->getEnd() < $period->getEnd();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getOccupancy()
|
||||
{
|
||||
return $this->getPax() - $this->getAvailable();
|
||||
}
|
||||
}
|
||||
@@ -154,7 +154,7 @@ abstract class AbstractRepository extends Repository
|
||||
$orX = $qb->expr()->or();
|
||||
foreach ($filterSettings['priceRanges'] as $priceRange) {
|
||||
[ $priceMin, $priceMax ] = FilterOptions::$priceRangeOptions[$priceRange];
|
||||
$orX->add($qb->expr()->and($qb->expr()->gte(
|
||||
$orX = $orX->with($qb->expr()->and($qb->expr()->gte(
|
||||
'date.min_price',
|
||||
$qb->createNamedParameter($priceMin, Connection::PARAM_INT)
|
||||
), $qb->expr()->lt(
|
||||
|
||||
@@ -51,7 +51,7 @@ class CityRepository extends AbstractRepository
|
||||
}
|
||||
|
||||
return $query
|
||||
->matching($query->logicalAnd($constraints))
|
||||
->matching($query->logicalAnd(...$constraints))
|
||||
->execute()
|
||||
;
|
||||
}
|
||||
|
||||
@@ -1,172 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace EP\EpProducts\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2016 Björn Fromme <[email protected]>, dreipunktnull
|
||||
*
|
||||
* All rights reserved
|
||||
*
|
||||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||||
* free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* The GNU General Public License can be found at
|
||||
* http://www.gnu.org/copyleft/gpl.html.
|
||||
*
|
||||
* This script is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* This copyright notice MUST APPEAR in all copies of the script!
|
||||
***************************************************************/
|
||||
|
||||
use CalendR\Event\EventInterface;
|
||||
use CalendR\Event\Provider\ProviderInterface;
|
||||
use Doctrine\DBAL\DBALException;
|
||||
use EP\EpProducts\Domain\Model\Contingent;
|
||||
use EP\EpProducts\Domain\Model\Hotel;
|
||||
use EP\EpProducts\Domain\Model\Product;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class ContingentRepository extends AbstractRepository implements ProviderInterface
|
||||
{
|
||||
/**
|
||||
* @return EventInterface[]
|
||||
*
|
||||
* @throws DBALException
|
||||
*/
|
||||
public function getEvents(\DateTime $begin, ?\DateTime $end = null, array $options = []): array
|
||||
{
|
||||
$optionsResolver = new OptionsResolver();
|
||||
$optionsResolver->setRequired(['hotel']);
|
||||
$optionsResolver->setAllowedTypes('hotel', Hotel::class);
|
||||
$resolvedOptions = $optionsResolver->resolve($options);
|
||||
|
||||
/** @var Hotel $hotel */
|
||||
$hotel = $resolvedOptions['hotel'];
|
||||
|
||||
$qb = $this->getDbConnection()->createQueryBuilder();
|
||||
|
||||
$qb
|
||||
->select('c.status as status', 'c.date as date', 'c.min_price as minPrice', 'c.pax', 'c.available', 'c.room_code')
|
||||
->from('tx_epproducts_domain_model_contingent', 'c')
|
||||
->where('c.hotel = :hotelUid')
|
||||
->andWhere('c.date >= :dateFrom')
|
||||
->setParameter('hotelUid', $hotel->getUid())
|
||||
->setParameter('dateFrom', $begin->format('Y-m-d'))
|
||||
->orderBy('c.date')
|
||||
;
|
||||
|
||||
if (null !== $end) {
|
||||
$qb
|
||||
->andWhere('date <= :dateTo')
|
||||
->setParameter('dateTo', $end->format('Y-m-d'))
|
||||
;
|
||||
}
|
||||
|
||||
$result = $qb->execute()->fetchAllAssociative();
|
||||
|
||||
$dates = [];
|
||||
|
||||
foreach ($result as $row) {
|
||||
if (!\array_key_exists($row['date'], $dates)) {
|
||||
$dates[$row['date']] = [
|
||||
'status' => Contingent::STATUS_OK,
|
||||
'date' => $row['date'],
|
||||
'pax' => 0,
|
||||
'available' => 0,
|
||||
];
|
||||
}
|
||||
if (Contingent::STATUS_OK !== $row['status']) {
|
||||
$dates[$row['date']]['status'] = $row['status'];
|
||||
}
|
||||
if ('BelKal' !== $row['room_code']) {
|
||||
$dates[$row['date']]['pax'] += $row['pax'];
|
||||
$dates[$row['date']]['available'] += $row['available'];
|
||||
}
|
||||
}
|
||||
|
||||
$events = [];
|
||||
|
||||
foreach ($dates as $row) {
|
||||
$row['hotel'] = $hotel;
|
||||
$events[] = Contingent::fromArray($row);
|
||||
}
|
||||
|
||||
return $events;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*
|
||||
* @throws DBALException
|
||||
*/
|
||||
public function getAvailableContingents(Hotel $hotel, Product $product)
|
||||
{
|
||||
$qb = $this->getDbConnection()->createQueryBuilder();
|
||||
|
||||
$qb
|
||||
->select('c.date as date', 'c.min_nights as minNights')
|
||||
->addSelectLiteral('SUM(c.available) as total')
|
||||
->addSelectLiteral('SUM(c.pax) as capacity')
|
||||
->from('tx_epproducts_domain_model_contingent', 'c')
|
||||
->innerJoin('c', 'tx_epproducts_domain_model_date', 'd', 'c.date = d.date_start AND c.hotel_code = d.hotel_code')
|
||||
->where('c.hotel = :hotelUid')
|
||||
->andWhere('d.product = :productUid')
|
||||
->andWhere('c.available > 0')
|
||||
->andWhere('c.min_price > 0')
|
||||
->setParameters([
|
||||
'hotelUid' => $hotel->getUid(),
|
||||
'productUid' => $product->getUid(),
|
||||
])
|
||||
->groupBy('c.date')
|
||||
->orderBy('c.date')
|
||||
;
|
||||
|
||||
return $qb->execute()->fetchAllAssociative();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*
|
||||
* @throws DBALException
|
||||
*/
|
||||
public function getAvailableRooms(string $dateFrom, string $dateTo, Hotel $hotel, Product $product)
|
||||
{
|
||||
$qb = $this->getDbConnection()->createQueryBuilder();
|
||||
|
||||
$qb
|
||||
->select('c.date as date', 'c.room_code as code', 'c.room_label as label', 'c.available as available',
|
||||
'c.min_price as price', 'c.hotel_bus_pro_id as hotelBusProId', 'c.min_nights as minNights',
|
||||
'c.additional_night_min_price as additionalNightPrice',
|
||||
'c.additional_night_min_nights as additionalNightMinNights', 'd.bus_pro_id as busProId',
|
||||
'd.services_included as servicesIncluded', 'd.services_general as servicesOptional',
|
||||
'd.skipass_included as skiPassIncluded', 'd.season as season')
|
||||
->from('tx_epproducts_domain_model_contingent', 'c')
|
||||
->innerJoin('c', 'tx_epproducts_domain_model_date', 'd', 'c.date = d.date_start AND c.hotel_code = d.hotel_code')
|
||||
->where('c.hotel = :hotelUid')
|
||||
->andWhere('d.product = :productUid')
|
||||
->andWhere('c.date >= :dateFrom')
|
||||
->andWhere('c.date <= :dateTo')
|
||||
->andWhere('c.min_price > 0')
|
||||
->setParameters([
|
||||
'hotelUid' => $hotel->getUid(),
|
||||
'productUid' => $product->getUid(),
|
||||
'dateFrom' => $dateFrom,
|
||||
'dateTo' => $dateTo,
|
||||
])
|
||||
->groupBy('c.room_code')
|
||||
->orderBy('c.pax')
|
||||
->addOrderBy('c.min_price')
|
||||
;
|
||||
|
||||
return $qb->execute()->fetchAllAssociative();
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,10 @@ class DateRepository extends AbstractRepository
|
||||
$query = $this->createQuery();
|
||||
|
||||
return $query
|
||||
->matching($query->logicalAnd([
|
||||
->matching($query->logicalAnd(
|
||||
$query->equals('product', $product),
|
||||
$query->equals('dateStart', $date),
|
||||
]))
|
||||
))
|
||||
->execute()
|
||||
;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ class HotelRepository extends AbstractRepository
|
||||
->setMaxResults(1)
|
||||
;
|
||||
|
||||
return $qb->execute()->fetchAssociative();
|
||||
return $qb->executeQuery()->fetchAssociative();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,7 +78,7 @@ class HotelRepository extends AbstractRepository
|
||||
->setParameter('hotelUid', $hotelUid)
|
||||
;
|
||||
|
||||
return $qb->execute()->fetchAssociative();
|
||||
return $qb->executeQuery()->fetchAssociative();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -49,7 +49,7 @@ class ProductRepository extends AbstractRepository
|
||||
;
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
@@ -115,7 +115,7 @@ class ProductRepository extends AbstractRepository
|
||||
$this->addFiltersettingsConditions($qb, $filterSettings);
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
@@ -192,12 +192,12 @@ class ProductRepository extends AbstractRepository
|
||||
}
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
|
||||
public function getPricetable(Product $product, Hotel $hotel, array $filterSettings, Date $date = null): array
|
||||
public function getPricetable(Product $product, Hotel $hotel, array $filterSettings, ?Date $date = null): array
|
||||
{
|
||||
$qb = $this->getDbConnection()->createQueryBuilder();
|
||||
|
||||
@@ -254,7 +254,7 @@ class ProductRepository extends AbstractRepository
|
||||
$this->addFiltersettingsConditions($qb, $filterSettings);
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
@@ -305,7 +305,7 @@ class ProductRepository extends AbstractRepository
|
||||
$this->addFiltersettingsConditions($qb, $filterSettings, true);
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
@@ -363,7 +363,7 @@ class ProductRepository extends AbstractRepository
|
||||
;
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
@@ -400,7 +400,7 @@ class ProductRepository extends AbstractRepository
|
||||
;
|
||||
|
||||
return $qb
|
||||
->execute()
|
||||
->executeQuery()
|
||||
->fetchAllAssociative()
|
||||
;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ class RegionRepository extends AbstractRepository
|
||||
}
|
||||
|
||||
return $query
|
||||
->matching($query->logicalAnd($constraints))
|
||||
->matching($query->logicalAnd(...$constraints))
|
||||
->execute()
|
||||
;
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ class Product
|
||||
public static function fromEntity
|
||||
(
|
||||
\EP\EpProducts\Domain\Model\Product $entity,
|
||||
array $imageProcessingInstructions = null,
|
||||
?array $imageProcessingInstructions = null,
|
||||
array $queryData = []
|
||||
)
|
||||
{
|
||||
|
||||
@@ -52,6 +52,11 @@ abstract class AbstractImageService implements SingletonInterface
|
||||
*/
|
||||
protected $cache;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $table;
|
||||
|
||||
public function __construct(FileRepository $fileRepository, ImageService $imageService, FrontendInterface $cache)
|
||||
{
|
||||
$this->fileRepository = $fileRepository;
|
||||
|
||||
@@ -1,113 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace EP\EpProducts\Service;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2018 Björn Fromme <[email protected]>, dreipunktnull
|
||||
*
|
||||
* All rights reserved
|
||||
*
|
||||
* This script is part of the TYPO3 project. The TYPO3 project is
|
||||
* free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* The GNU General Public License can be found at
|
||||
* http://www.gnu.org/copyleft/gpl.html.
|
||||
*
|
||||
* This script is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* This copyright notice MUST APPEAR in all copies of the script!
|
||||
***************************************************************/
|
||||
|
||||
use EP\EpProducts\Domain\Model\Hotel;
|
||||
use EP\EpProducts\Domain\Model\Product;
|
||||
use EP\EpProducts\Domain\Repository\ContingentRepository;
|
||||
use EP\EpProducts\Utility\BookingUrlUtility;
|
||||
use League\Period\Period;
|
||||
|
||||
class ContingentDataService
|
||||
{
|
||||
/**
|
||||
* @var ContingentRepository
|
||||
*/
|
||||
protected $contingentRepository;
|
||||
|
||||
/**
|
||||
* @param ContingentRepository $contingentRepository
|
||||
*/
|
||||
public function __construct(ContingentRepository $contingentRepository)
|
||||
{
|
||||
$this->contingentRepository = $contingentRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Hotel $hotel
|
||||
* @param Product $product
|
||||
* @return array
|
||||
* @throws \Doctrine\DBAL\DBALException
|
||||
*/
|
||||
public function getAvailableContingents(Hotel $hotel, Product $product)
|
||||
{
|
||||
$data = $this->contingentRepository->getAvailableContingents($hotel, $product);
|
||||
$contingents = [];
|
||||
foreach ($data as $row) {
|
||||
$contingents[$row['date']] = [
|
||||
'date' => $row['date'],
|
||||
'minNights' => $row['minNights'],
|
||||
'total' => $row['total'],
|
||||
'capacity' => $row['capacity'],
|
||||
];
|
||||
}
|
||||
|
||||
return $contingents;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $dateFrom
|
||||
* @param string $dateTo
|
||||
* @param Hotel $hotel
|
||||
* @param Product $product
|
||||
* @param string $myEpUrl
|
||||
* @return array
|
||||
* @throws \Doctrine\DBAL\DBALException
|
||||
*/
|
||||
public function getAvailableRooms(
|
||||
string $dateFrom,
|
||||
string $dateTo,
|
||||
Hotel $hotel,
|
||||
Product $product,
|
||||
string $myEpUrl
|
||||
) {
|
||||
$data = $this->contingentRepository->getAvailableRooms($dateFrom, $dateTo, $hotel, $product);
|
||||
$period = new Period($dateFrom, $dateTo);
|
||||
$nights = $period->dateInterval()->format('%a');
|
||||
|
||||
$rooms = [];
|
||||
foreach ($data as $row) {
|
||||
$row['bookingUrl'] = BookingUrlUtility::generateUrl([
|
||||
'dateId' => $row['busProId'],
|
||||
'hotelId' => $row['hotelBusProId'],
|
||||
'myEpUrl' => $myEpUrl,
|
||||
]);
|
||||
|
||||
$row['summer'] = $row['season'] === 's';
|
||||
|
||||
$row['servicesIncluded'] = unserialize($row['servicesIncluded'], ['allowed_classes' => false]);
|
||||
$row['servicesOptional'] = unserialize($row['servicesOptional'], ['allowed_classes' => false]);
|
||||
|
||||
$row['priceForSelection'] = $row['price'] + ($nights - $row['minNights']) * $row['additionalNightPrice'];
|
||||
|
||||
$rooms[] = $row;
|
||||
}
|
||||
|
||||
return $rooms;
|
||||
}
|
||||
}
|
||||
@@ -65,7 +65,7 @@ class ResellerDataService implements SingletonInterface
|
||||
* @return array
|
||||
* @throws \Doctrine\DBAL\DBALException
|
||||
*/
|
||||
public function preprocessAll(Reseller $reseller, string $myEpUrl, array $imageProcessingInstructions = null, $type = 'facebook')
|
||||
public function preprocessAll(Reseller $reseller, string $myEpUrl, ?array $imageProcessingInstructions = null, $type = 'facebook')
|
||||
{
|
||||
$data = [];
|
||||
$products = $reseller->getProducts();
|
||||
@@ -97,7 +97,7 @@ class ResellerDataService implements SingletonInterface
|
||||
Product $product,
|
||||
Reseller $reseller,
|
||||
string $myEpUrl,
|
||||
array $imageProcessingInstructions = null,
|
||||
?array $imageProcessingInstructions = null,
|
||||
$type = 'facebook'
|
||||
) {
|
||||
$queryData = 'google' !== $type ? [] : [
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace EP\EpProducts\Updates;
|
||||
|
||||
use TYPO3\CMS\Install\Attribute\UpgradeWizard;
|
||||
use TYPO3\CMS\Install\Updates\AbstractListTypeToCTypeUpdate;
|
||||
|
||||
#[UpgradeWizard('epEpProductsCTypeMigration')]
|
||||
final class EPEpProductsCTypeMigration extends AbstractListTypeToCTypeUpdate
|
||||
{
|
||||
public function getTitle(): string
|
||||
{
|
||||
return 'Migrate "EP EpProducts" plugins to content elements.';
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return 'The "EP EpProducts" plugins are now registered as content element. Update migrates existing records and backend user permissions.';
|
||||
}
|
||||
|
||||
/**
|
||||
* This must return an array containing the "list_type" to "CType" mapping
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* [
|
||||
* 'pi_plugin1' => 'pi_plugin1',
|
||||
* 'pi_plugin2' => 'new_content_element',
|
||||
* ]
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function getListTypeToCTypeMapping(): array
|
||||
{
|
||||
return [
|
||||
// TODO: Add this mapping yourself!
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,7 @@ class SerializationUtility
|
||||
* @param array $processingInstructions
|
||||
* @return array
|
||||
*/
|
||||
public static function preprocessImages(ObjectStorage $images, array $processingInstructions = null)
|
||||
public static function preprocessImages(ObjectStorage $images, ?array $processingInstructions = null)
|
||||
{
|
||||
$data = [];
|
||||
foreach ($images as $file)
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider;
|
||||
|
||||
return [
|
||||
'ep-logo' => [
|
||||
'provider' => \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
|
||||
'provider' => SvgIconProvider::class,
|
||||
'source' => 'EXT:ep_products/Resources/Public/Icons/logo.svg',
|
||||
],
|
||||
];
|
||||
@@ -1,224 +0,0 @@
|
||||
<?php
|
||||
|
||||
use EP\EpProducts\Service\LabelService;
|
||||
use EP\EpProducts\Domain\Model\Contingent;
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ep_products/Resources/Private/Language/locallang.xlf:tx_epproducts_domain_model_contingent',
|
||||
'label' => 'date',
|
||||
'label_userFunc' => LabelService::class . '->getContingentLabel',
|
||||
'default_sortby' => 'ORDER BY date',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'dividers2tabs' => true,
|
||||
'versioningWS' => false,
|
||||
'hideTable' => true,
|
||||
'languageField' => 'sys_language_uid',
|
||||
'transOrigPointerField' => 'l10n_parent',
|
||||
'transOrigDiffSourceField' => 'l10n_diffsource',
|
||||
'delete' => 'deleted',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
'starttime' => 'starttime',
|
||||
'endtime' => 'endtime',
|
||||
],
|
||||
'searchFields' => 'room_code,room_label',
|
||||
'iconfile' => 'EXT:ep_theme/Resources/Public/images/icon_ce.svg',
|
||||
],
|
||||
'types' => [
|
||||
'1' => ['showitem' => 'date, pax, available, status, min_price, hotel, room_code, room_label, groupsch_id'],
|
||||
],
|
||||
'palettes' => [],
|
||||
'columns' => [
|
||||
|
||||
'sys_language_uid' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language',
|
||||
'config' => ['type' => 'language'],
|
||||
],
|
||||
'l10n_parent' => [
|
||||
'displayCond' => 'FIELD:sys_language_uid:>:0',
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'default' => 0,
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
['label' => '', 'value' => 0],
|
||||
],
|
||||
'foreign_table' => 'tx_epproducts_domain_model_contingent',
|
||||
'foreign_table_where' => 'AND tx_epproducts_domain_model_contingent.pid=###CURRENT_PID### AND tx_epproducts_domain_model_contingent.sys_language_uid IN (-1,0)',
|
||||
],
|
||||
],
|
||||
'l10n_diffsource' => [
|
||||
'config' => [
|
||||
'type' => 'passthrough',
|
||||
],
|
||||
],
|
||||
|
||||
't3ver_label' => [
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.versionLabel',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
|
||||
'hidden' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
],
|
||||
],
|
||||
'starttime' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
|
||||
'config' => [
|
||||
'type' => 'datetime',
|
||||
'size' => 13,
|
||||
'checkbox' => 0,
|
||||
'default' => 0,
|
||||
'behaviour' => [
|
||||
'allowLanguageSynchronization' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
'endtime' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
|
||||
'config' => [
|
||||
'type' => 'datetime',
|
||||
'size' => 13,
|
||||
'checkbox' => 0,
|
||||
'default' => 0,
|
||||
'behaviour' => [
|
||||
'allowLanguageSynchronization' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'pax' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Pax',
|
||||
'config' => [
|
||||
'type' => 'number',
|
||||
'size' => 3,
|
||||
'required' => true
|
||||
],
|
||||
],
|
||||
'available' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'verfügbar',
|
||||
'config' => [
|
||||
'type' => 'number',
|
||||
'size' => 3,
|
||||
'required' => true
|
||||
],
|
||||
],
|
||||
'date' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Datum',
|
||||
'config' => [
|
||||
'dbType' => 'date',
|
||||
'type' => 'datetime',
|
||||
'size' => 7,
|
||||
'checkbox' => 0,
|
||||
'format' => 'date',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
'hotel' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Unterkunft',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'default' => 0,
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'tx_epproducts_domain_model_hotel',
|
||||
'minitems' => 1,
|
||||
'maxitems' => 1,
|
||||
],
|
||||
],
|
||||
'status' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Status',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'minitems' => 1,
|
||||
'maxitems' => 1,
|
||||
'items' => [
|
||||
[ 'label' => 'Ok', 'value' => Contingent::STATUS_OK ],
|
||||
[ 'label' => 'Buchungsstop', 'value' => Contingent::STATUS_BLOCKED ],
|
||||
[ 'label' => 'auf Anfrage', 'value' => Contingent::STATUS_ONREQUEST ],
|
||||
]
|
||||
],
|
||||
],
|
||||
'min_price' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'ab Preis',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'min_nights' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'ab Preis Nächte',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'additional_night_min_price' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'ab Preis Verlängerungsnacht',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'additional_night_min_nights' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Verlängerungsnacht min. Nächte',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'eval' => 'trim',
|
||||
],
|
||||
],
|
||||
'groupsch_id' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'groups.ch ID',
|
||||
'config' => [
|
||||
'type' => 'number',
|
||||
'size' => 8,
|
||||
'eval' => 'trim'
|
||||
],
|
||||
],
|
||||
'room_code' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Zimmercode',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 8,
|
||||
'eval' => 'trim'
|
||||
],
|
||||
],
|
||||
'room_label' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'Zimmerbezeichnung',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'eval' => 'trim'
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
@@ -10,7 +10,7 @@ use EP\EpProducts\Log\Writer;
|
||||
defined('TYPO3') or die('Access denied.');
|
||||
|
||||
$boot = function () {
|
||||
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['ep_products_cache'])) {
|
||||
if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['ep_products_cache'] ?? null)) {
|
||||
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['ep_products_cache'] = [];
|
||||
}
|
||||
|
||||
@@ -51,11 +51,11 @@ $boot = function () {
|
||||
'EpProducts',
|
||||
'ajax',
|
||||
[
|
||||
AjaxTableController::class => 'datestable,pricetable,pricetableHtml,eventPricetable,daytripRooms',
|
||||
AjaxTableController::class => 'datestable,pricetable,pricetableHtml,eventPricetable',
|
||||
AjaxTeaserPopupController::class => 'concept',
|
||||
],
|
||||
[
|
||||
AjaxTableController::class => 'datestable,pricetable,pricetableHtml,eventPricetable,daytripRooms',
|
||||
AjaxTableController::class => 'datestable,pricetable,pricetableHtml,eventPricetable',
|
||||
AjaxTeaserPopupController::class => 'concept',
|
||||
]
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user