bithost-gmbh / pdfviewhelpers

TYPO3 CMS extension that provides various Fluid ViewHelpers to generate PDF documents.
GNU General Public License v3.0
44 stars 20 forks source link

Add middleware as replacement for isOutputting hook in v11 #190

Closed nhovratov closed 2 years ago

nhovratov commented 2 years ago

The hook is deprecated in v10 and removed in v11. As a replacement a middleware needs to be implemented.

maechler commented 2 years ago

@nhovratov Thanks for your contribution! I will have a look at it and also fix the build.

maechler commented 2 years ago

@nhovratov Is there a special reason to use 'after' => 'typo3/cms-frontend/page-argument-validator'? I am trying to figure out where the best place for this middleware would be.

nhovratov commented 2 years ago

@maechler no, there is no special reason. It is just one, that is not internal. As it is used in the response, it really doesn't matter much, when it is called.