Migration

1.x.x to 2.x.x

  1. Add new route enhancer in your site configuration.

    routeEnhancers:
      ApplyRoutesCollection:
        type: Routes
    
  2. 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.

  3. 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,
         '',
         [],
         []
     );