-
Notifications
You must be signed in to change notification settings - Fork 9
Add TYPO3 version 9 Compatibility #168
base: develop
Are you sure you want to change the base?
Conversation
Release/0.0.7
…to feature/update-9 # Conflicts: # Classes/Configuration/ConfigurationContainer.php
Add missing return statement
65fb7fd to
b09697f
Compare
Do not introduce unnecessary changes into pull request for TYPO3 CMS 9 update. * Trim trailing whitespace. * Do not introduce blank line before namespace definition with this pull request. * Add posix new line at end of file.
b09697f to
c940ac4
Compare
Keep old code and behaviour. Adjust only a single place to keep old expected behaviour. If TYPO3 throws an exception, catch this, and replace it by old behaviour which is already handled throughout the code.
Instead return expected object type.
Main goal is to allow Travis to run builds again. Beside that, we do no longer support TYPO3 CMS 7, but 8.7 and 9.5.
* Add some more checks to remove PHP warnings / notices. * Adjust code to match CMS 9 API / interfaces. * Do no longer use "query" but only searchTerm, as query is internal API.
This was done by TYPO3 itself before Version 9. Since version 9, we have to take care ourselves.
Keep changed for pull request to a necessary minimum.
There is no need to require anything, as only a single TYPO3 version is supported.
Conflicts:
Documentation/source/changelog.rst
Makefile
c32f6c1 to
32a04fb
Compare
* Remove no longer necessary code. * Improve changelog for cms 9.
| { | ||
| $filter = \TYPO3\CMS\Core\Utility\ArrayUtility::removeArrayEntryByValue($filter, ''); | ||
| $this->filter = \TYPO3\CMS\Extbase\Utility\ArrayUtility::removeEmptyElementsRecursively($filter); | ||
| $this->filter = \TYPO3\CMS\Core\Utility\ArrayUtility::filterRecursive($filter, function ($value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use use statements here. Check everywhere?
| Therefore also PHP class ``\Codappix\SearchCore\Domain\Model\SearchRequest`` has | ||
| been adjusted. | ||
|
|
||
| * Recycler are respected. Pages from type recycler are ignored during indexing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change Recycler are respected to Recycler is respected?
| { | ||
| $filter = \TYPO3\CMS\Core\Utility\ArrayUtility::removeArrayEntryByValue($filter, ''); | ||
| $this->filter = \TYPO3\CMS\Extbase\Utility\ArrayUtility::removeEmptyElementsRecursively($filter); | ||
| $this->filter = \TYPO3\CMS\Core\Utility\ArrayUtility::filterRecursive($filter, function ($value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use use statements here. Check everywhere where necessary?
| ], | ||
| 'field2' => [ | ||
| 'config' => '{request.query}', | ||
| 'config' => '{request.searchTerm}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change still valid? Check if you want to use {request.query} or {request.searchTerm}.
By accepting this pull request
search_corewill be compatible with both TYPO3 version 8 and the new 9 LTS.The Compatibility to version 7.6 was dropped!