Input

Implements ServiceProviderInterface

Service provider for the the Joomla Input object.

Whilst generally speaking it's an anti-pattern for the request object to be in a DIC, in the case of Joomla whilst there, both the web application class and session class have a hard dependency on the input object, as a result it's required that this exists in the DIC for now. Strategically there should be a long term plan to remove this from the DIC.

note

It is strongly recommended that extensions get the input object from the application and DO NOT use this service container.

since

5.0.0

package

Joomla CMS

Methods

register

Registers the service provider with a DI container.

register(\Joomla\DI\Container container) : 
since

5.0.0

Arguments

container

ContainerThe DI container.

Response

void