clickstorm / cs_seo

[clickstorm] SEO
Other
33 stars 49 forks source link

Use alternative methods to access PageLayoutController properties in TYPO3 v10 #247

Closed schams-net closed 4 years ago

schams-net commented 5 years ago

The public properties $modTSconfig and $current_sys_language of PageLayoutController are marked deprecated and their visibility has been changed to protected in TYPO3 v10.0.

➊ Accessing $parentObject->modTSconfig[...] in file EXT:cs_seo/Classes/Hook/PageHook.php results in the following exception in the backend when opening a page:

Cannot access protected property TYPO3\CMS\Backend\Controller\PageLayoutController::$modTSconfig

➋ Accessing $parentObject->current_sys_language in file EXT:cs_seo/Classes/Hook/PageHook.php results in the following exception in the backend when opening a page:

Cannot access protected property TYPO3\CMS\Backend\Controller\PageLayoutController::$current_sys_language

See forge ticket 84375 and review 57329.