[TYPO3-mvc] TYPO3 requires Fluid and Extbase?
Bastian Waidelich
bastian at typo3.org
Mon Jun 8 10:56:38 CEST 2009
Benjamin Mack wrote:
Hi Benni,
> Fluid should probably not even depend on ExtBase
Currently, tx_fluid requires following Extbase-Features/-Classes:
- Autoloader
- Tx_Extbase_Reflection_Service and
Tx_Extbase_Validation_ValidatorResolver (for retrieval and validation of
view helper arguments)
- Tx_Extbase_Reflection_ObjectAccess to be able to turn {object.foo.bar}
into $object->getFoo()->getBar() (which is not quite as trivial as it
probably seems)
- Tx_Extbase_MVC_Controller_ControllerContext (holding references of the
current request, response, URIHelper and arguments)
- Tx_Extbase_MVC_View_ViewInterface, Tx_Extbase_MVC_View_AbstractView
- Tx_Extbase_Configuration_Manager (only used in the translation view
helper currently to retrieve the _LOCAL_LANG settings)
So, if we want to avoid dependency on Extbase I only see one way to do so:
1. Add another autoloader or move it to core..
2. Move the "utility classes" (Tx_Extbase_Reflection_Service,
Tx_Extbase_Reflection_ObjectAccess,
Tx_Extbase_Validation_ValidatorResolver) into the core. (I didn't really
check this possibility yet).
3. Move ControllerContext and new View base classes to tx_fluid.
4. Usage of Tx_Extbase_Configuration_Manager can be avoided by some
$GLOBAL['TSFE']->setup artistry.
Personally I think, it wouldn't hurt to mark Extbase required too for
TYPO3v4.. On the other hand: It would be great, if Fluid had less
dependencies - that would make it easier to "ship it" as own product one
time..
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list