ServicesΒΆ
The Services class can be seen as a facade that you can inject to your controller (or by extending the AbstractController).
Once initialized, there is a collection of usefull functions you can use:
Services::getLang: get the current languageServices::getExtension: get the current extension (the one you are currently developing)Services::getParameters: get the system wide parameters (see here)Services::addFlexforms: convenient function to add flexforms to a plugin- ...
For a full list see the API documentation.