[TYPO3-mvc] Cannot open backend module with trunk
Bastian Waidelich
bastian.waidelich at typo3.org
Thu Dec 2 19:02:06 CET 2010
Xavier Perseguers wrote:
Hi Xavier,
>> As Extbase BE modules can be configured through TS as well ("module."
>> instead of "plugin.") you need to have a TS configuration available.
> I'd say that I do not understand this requirement as I do not use the
> page tree and (see my other message), I don't know where to put the TS.
A while ago we decided, that we want to use TypoScript for the
configuration of Extbase extensions in the Backend too:
plugin.tx_myext {
settings.foo = bar
}
module.tx_myext < plugin.tx_myext
module.tx_myext {
settings.beOnlySetting = baz
}
This is like this since version 1.0 IIRC and I still think, that this is
a good decision as it provides you the same approach in FE and in BE.
The only thing that changed with Dependency Injection is, that you now
need at least one configuration for Extbase to run:
config.tx_extbase.objects.Tx_Extbase_Persistence_Storage_BackendInterface.className
= Tx_Extbase_Persistence_Storage_Typo3DbBackend
So that the DI container knows, that it should instanciate the
Typo3DbBackend if you refer to BackendInterface.
For all other interfaces in the core that is not required, as the DI
container just strips of the "Interface" part of the class name if
nothing els is configured.
We first had a second way of registering implementations via PHP.. But
we decided, that it's better to have that in one place and in TS so you
can always check the current configuration with the ObjectBrowser.
To cut a long story short: do you have a better idea? ;)
Best,
Bastian
More information about the TYPO3-project-typo3v4mvc
mailing list