AOEpeople / TYPO3_Restler

restler (PHP REST-Framework) for TYPO3
GNU General Public License v3.0
30 stars 17 forks source link

Too few arguments to function Aoe\Restler\System\RestlerBuilderAware::__construct(), 0 passed #71

Closed infabo closed 2 years ago

infabo commented 2 years ago

Starting with version 10.2.0 the following error occurs:

image

Basically it is just this config:

routeEnhancers:
    RestlerEnhancer:
        type: Restler
        default: '.json'
infabo commented 2 years ago

It is a DI error. Did not investigate much, but I think it is because constructor injection does not work when creating instances with GeneralUtility - unless it is a public container.

soda-2005 commented 2 years ago

Hi, yes, it's a DI-error. You MUST delete the "DI-cache" of TYPO3 - be doing this:

  1. Login into the TYPO3-backend
  2. Go to the BE-module "Maintenance"
  3. Klick the button "flush cache" inside the "Flush TYPO3 and PHP Cache"-bucket

...then TYPO3 will rebuild the DI-cache and the problem should be gone.

infabo commented 2 years ago

Hi, forgot to mention:

No help either.

soda-2005 commented 2 years ago

I have fixed the bug with version 10.2.3 of the restler-Extension.

Currently, github can not execute the tests - so the new version is currently NOT available in the TER for download - just for information.