[TYPO3-mvc] Include Plugin with TypoScript since TYPO3 6

Natalia Postnikova npostnik at yahoo.de
Fri Feb 22 10:06:13 CET 2013


I found a solution myself. You have to create a ClassAliasMap.php file, 
which maps the old style class name (no namespace) to the new namespaced 
class name.

Create this folder structure in your extension:
myextension/Migrations/Code/ClassAliasMap.php and insert a php array 
inside this file:
<?php
return array(
     'MyExtension_Controller_TestController' => 
'Vendor\\MyExtension\\Controller\\TestController'
);
?>


Am 21.02.2013 17:47, schrieb Tobias Liebig:
> Maybe this is what you're looking for:
>
> 	temp.topViewedSites = USER
> 	temp.topViewedSites {
> 		userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
> 		vendorName = Myvendor
> 		extensionName = MyExtension
> 		pluginName = Rate
> 		// ...
> 	}
>
>
> Am 21.02.2013 um 16:59 schrieb Natalia Postnikova <npostnik at yahoo.de>:
>
>> Hi list members,
>>
>> before TYPO3 6.0 it was possible to include a plugin written in Extbase like this:
>> temp.topViewedSites = USER
>> temp.topViewedSites {
>>     userFunc = tx_extbase_core_bootstrap->run
>>     pluginName = Rate
>>     extensionName = MyExtension
>>     controller = Page
>>     action = topViewedSites
>>
>>     settings =< plugin.tx_myextension.settings
>>     persistence =< plugin.tx_myextension.persistence
>>     view =< plugin.tx_myextension.view
>> }
>>
>> Now this does not work, because I'm using namespaces in my extension and the dispatcher tries to create a class object with this name: Tx_MyExtension_Controller_PageController, which of course does not exists. Instead my class is called Vendor\MyExtension\Controller\PageController.
>>
>> Is there another way to include a plugin with typoscript?
>> How can I tell the dispatcher to search for the namespaced class instead?
>>
>> Thanks for any replies, best regards
>> Natalia
>> _______________________________________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list