lade...
random avatar

typo3decisions - Network

Posts Subscribe

About the Archive category

https://friendica.daniel-siepman...

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.)

Use the following paragraphs for a longer description, or to establish category guidelines or rules:

  • Why should people use this category? What is it for?
  • How exactly is this different than the other categories we already have?
  • What should topics in this category generally contain?
  • Do we need this category? Can we merge with another category, or subcategory?

1 post - 1 participant
About the Archive category

4.4.2024 14:58About the Archive category
https://friendica.daniel-siepman...

Align Extbase more with Symfony

https://friendica.daniel-siepman...

Since TYPO3 uses a lot of the components of Symfony already, it would be great if Extbase would also be similar to Symfony.

Symfony has 2 great features which are currently missing in Extbase:

  1. Allow to specify allowed methods for an action (GET, POST, PUT…)
  2. Set permissions which user is allowed to call actions

Surprisingly the backend is already feature number one where you can define allowed methods in typo3/sysext/backend/Configuration/Backend/Routes.php for example like so:
<pre><code class="lang-php">'login_request_token' => [
'path' => '/login/request-token',
'access' => 'public',
'methods' => ['POST'],
'target' => Controller\LoginController::class . '::requestTokenAction',
],
</code></pre>
Because the routing works completely different in Extbase, it is time to rethink it.

My proposal is to also use Annotations like in Symfony also in Extbase like so:
<pre><code class="lang-php">class BackendUserController extends ActionController
{
#[Route(path: '/removeFromCompareList/{uid}/{redirectToCompare}', name: 'removeFromCompareList', methods: ['POST'])]
#[IsGranted('customer')]
public function removeFromCompareListAction(int $uid, int $redirectToCompare = 0): ResponseInterface
{
$this->removeFromCompareList('compareUserList', $uid);
if ($redirectToCompare) {
return $this->redirect('compare');
}
return $this->redirect('index');
}
}
</code></pre>
What are your thoughts about it?

Would this be something that could be implemented for TYPO3 13?

2 posts - 2 participants
Align Extbase more with Symfony

18.11.2023 22:07Align Extbase more with Symfony
https://friendica.daniel-siepman...

Idea for TYPO3 13: Integrate AI to improve content

https://friendica.daniel-siepman...

Hi, I have a great idea for a major new feature for TYPO3 13! I’m following closely what is happening in the NEOS community. There is a new package called NEOSidekick which improves your content, suggests page structures and lots more.
Idea for TYPO3 13: Integrate AI to improve content

29.6.2023 08:05Idea for TYPO3 13: Integrate AI to improve content
https://friendica.daniel-siepman...

Phpstan specific phpdoc annotations in the core code base

https://friendica.daniel-siepman...

Good morning folks, I’d like to know your opinion on the following matter. A few years back a lot of people started using and embracing phpstan and its features and applied those in the core. Phpstan specific phpdoc annotations in the core code base

13.2.2023 08:27Phpstan specific phpdoc annotations in the core code base
https://friendica.daniel-siepman...
Subscribe
To add news/posts to your profile here, you must add a link to a RSS-Feed to your webfinger. One example how you can do this is to join Fediverse City.
         
Webfan Website Badge
Nutzungsbedingungen   Datenschutzerklärung  Impressum
Webfan | @Web pages | Fediverse Members