Migration¶
1.x.x to 2.x.x¶
Add new route enhancer in your site configuration.
routeEnhancers: ApplyRoutesCollection: type: Routes
Add plugin name to all your route definition ( if it’s not there ).
1 2 3 4 5
demo_photos-all: path: api/demo/photos controller: LMS\Demo\Controller\PhotoApiController::all defaults: plugin: PhotoApi
Tip
Before 2.x, plugin was discovered by extension itself. Since TYPO3 v10 this does not work anymore.
Replace $_EXTKEY by extension name itself.
1 2 3 4 5 6 7
// Now... \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'LMS.demo', '', [], [] );
1 2 3 4 5 6 7
// Before... \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin( 'LMS.' . $_EXTKEY, '', [], [] );