It is the only chance to force loading of some TS, without fiddling with DB stuff.
Plain wrong. Just above, I gave you all the example on how to do this. There is also a hook for it which I neglected to mention: $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources'].
This makes it very convenient for deployment issue if used wisely.
Same thing with an inclusion statement in PHP or a hook subscriber. It can also point to a file. It can be included automatically. And that approach has the added benefit of not being deprecated for eight years. Why am I even arguing about this, seriously? You should know these things!
BTW: Where exactly is this deprecated in the core? This should be rolled back.
No, it should not be rolled back. Instead, you guys should keep track of deprecated stuff an avoid using it - regardless of how convenient it makes your deployment. It was deprecated for a reason and that reason is that TS is completely uncontrollable after it has been included this way. Do not roll back. Instead use your API as it should be used!
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/belog/Classes/Controller/AbstractController.php#l98 (written by you yourself, Christian, nonetheless!)
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/beuser/Classes/Controller/BackendUserController.php#l92 (by Felix Kopp, same verdict - "nasty", needs alternative, etc.)
And here's the nasty condition it takes to control whether ALL ext_typoscript_setup.txt files get loaded before or after the current template - but that's all the control you get; if set incorrectly you get NO control whatsoever:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/core/Classes/TypoScript/TemplateService.php#l753
You yourself call this feature "nasty", Christian, and you call for an alternative, of which I've just now given you TWO. Yet you want the deprecated and "nasty" feature reintroduced and its use encouraged.
I could not find the actual deprecation notice - only a mention of it around when it happened and yet another suggestion for an alternative approach: http://typo3.toaster-schwerin.de/typo3_english/2005_07/msg00249.html.
As Christian wrote before - this is a main feature to give extension authors the possibility to add needed TypoScript from the beginning.
No, plain wrong. Don't you read what I write and the issues linked? You're really frustrating me right now. Two people not understanding the issue at hand, yet voting it down and arguing against it.
Using Static Template (this will lead to a fatal error, if FE of your extension is opened without static template)
This is why you ask the integrator to include the template instead of forcing your huge chunk of TS on him. To do so, use the already explained alternatives which allow the exact same degree of version control an deployment friendliness - without being deprecated. Don't just throw it all in there - try to think about what REALLY makes sense to enforce and stick to just that; make the rest optional!
Inject with PHP (why the hell for some lines of TypoScript?)
Why the hell create another file for some lines of TypoScript?
I don't get you guys, I just don't.