Go to file
2018-10-08 08:42:53 +02:00
Classes/Controller INITAL Version Camp Munich 2018 2018-09-16 16:41:44 +02:00
Tests/Unit TASK: Add tests 2018-10-08 08:42:53 +02:00
.gitignore TASK: Add tests 2018-10-08 08:42:53 +02:00
composer.json INITAL Version Camp Munich 2018 2018-09-16 16:41:44 +02:00
readme.rst INITAL Version Camp Munich 2018 2018-09-16 16:41:44 +02:00

Extbase the good parts

Most of the times Extbase is not the best choice.


Because nowadays we have:

  • Form Framework
  • FLUIDTEMPLATE / Standalone Fluid
  • DataProcessors

But if you need Extbase, it offers some good parts, which will be explained below with working unit tests.



Execute the following:

git clone https://github.com/DanielSiepmann/extbase-the-good-parts.git
cd extbase-the-good-parts

Clean everything:

rm -rf composer.lock vendor web Results

Installation development dependencies using composer:

composer install


Dependency Injection

  • Method injection
  • Annotation
  • Constructor


Property Mapping

See web/typo3/sysext/extbase/ext_localconf.php, https://docs.typo3.org/typo3cms/ExtbaseFluidBook/10-Outlook/4-Property-mapping.html


Command Controllers

TypoScript Configuration

See https://docs.typo3.org/typo3cms/ExtbaseFluidBook/b-ExtbaseReference/Index.html#typoscript-configuration

Settings array

ObjectAccess from Fluid


  • web/typo3/sysext/fluid/Classes/Core/Variables/CmsVariableProvider.php
  • web/typo3/sysext/extbase/Classes/Reflection/ObjectAccess.php

Configuration Mapping DB

See https://docs.typo3.org/typo3cms/ExtbaseFluidBook/b-ExtbaseReference/Index.html#persistence