Back to HttpBridgePostRequestMethod class

Method __construct

public
__construct
(\Joomla\Http\Http $http = null)
Class constructor.
Parameters
  • \Joomla\Http\Http|null $http The HTTP adapter
Since
  • 3.9.0

Method __construct - Source code

/**
 * Class constructor.
 *
 * @param   Http|null  $http  The HTTP adapter
 *
 * @since   3.9.0
 */
public function __construct(Http $http = null)
{
    $this->http = $http ?: HttpFactory::getHttp();
}