Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Extension for TYPO3 v12 Compatibility #199

Merged
merged 2 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading