Feature: #109114 - Autocomplete for components via XSD schema
See forge#109114
Description
The existing CLI command fluid: has been extended to also
cover Fluid components. When executed, the command creates *. files in
var/ for all available ViewHelpers and components, which can
be used by IDEs to offer autocompletion.
Usage:
vendor/bin/typo3 fluid:schema:generate
For this to work correctly, the responsible component
collection needs to implement the newly introduced
\Component.
TYPO3's Fluid components integration already
implements this, so these components are supported out-of-the-box.
Fluid Standalone provides a default implementation for custom component collections
that are based on
\Abstract,
which should cover components created before the official components integration
(such as those created with TYPO3 v13). However, if a custom folder structure is used
by overriding the default
resolve, a custom implementation for
get needs to be provided as well. In most cases, it
should be easier to switch to the TYPO3 integration and to ditch the custom class.
Impact
The CLI command fluid: now also creates XSD schema files
for Fluid components, which enables autocompletion in supporting IDEs.