Skip to content

Commit

Permalink
Merge pull request #199 from alandolsi/typo3v12
Browse files Browse the repository at this point in the history
Update Extension for TYPO3 v12 Compatibility
  • Loading branch information
MattiasNilsson authored Aug 16, 2024
2 parents c314eec + e611db7 commit f561ddc
Show file tree
Hide file tree
Showing 72 changed files with 2,032 additions and 687 deletions.
236 changes: 141 additions & 95 deletions Classes/Controller/AdministrationController.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Classes/Controller/EidController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
class EidController
{
const IDENTIFIER = 'pxa_social_feed_fb_access_token';
public const IDENTIFIER = 'pxa_social_feed_fb_access_token';

/**
* @var TokenRepository
Expand Down
9 changes: 7 additions & 2 deletions Classes/Controller/FeedsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Pixelant\PxaSocialFeed\Controller;

use Pixelant\PxaSocialFeed\Domain\Repository\FeedRepository;
use Psr\Http\Message\ResponseInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;

Expand Down Expand Up @@ -49,25 +50,29 @@ public function injectFeedRepository(FeedRepository $feedRepository): void
$this->feedRepository = $feedRepository;
}

protected function initializeView($view) {}

/**
* List action
*/
public function listAction()
public function listAction(): ResponseInterface
{
$limit = $this->settings['feedsLimit'] ? (int)($this->settings['feedsLimit']) : 10;
$configurations = GeneralUtility::intExplode(',', $this->settings['configuration'], true);

$feeds = $this->feedRepository->findByConfigurations($configurations, $limit);

$this->view->assign('feeds', $feeds);
return $this->htmlResponse();
}

/**
* List ajax action
* Prepare view for later ajax request
*/
public function listAjaxAction()
public function listAjaxAction(): ResponseInterface
{
return $this->htmlResponse();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ public function buildExpression(array $queriedTables, ExpressionBuilder $express
}
}

return $expressionBuilder->orX(...$constraints);
return $expressionBuilder->or(...$constraints);
}
}
Loading

0 comments on commit f561ddc

Please sign in to comment.