ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ILIAS\HTTP\Services Class Reference

Class Services. More...

+ Inheritance diagram for ILIAS\HTTP\Services:
+ Collaboration diagram for ILIAS\HTTP\Services:

Public Member Functions

 __construct (Container $dic)
 Services constructor. More...
 
 durations ()
 
 wrapper ()
 
 raw ()
 
 request ()
 
 response ()
 
 cookieJar ()
 
 saveRequest (ServerRequestInterface $request)
 
 saveResponse (ResponseInterface $response)
 
 sendResponse ()
 
 close ()
 
 agent ()
 

Protected Attributes

GlobalHttpState $raw
 
WrapperFactory $wrapper
 
AgentDetermination $agent
 

Detailed Description

Class Services.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch This class only implements Services for backport compatibility. This will be removed in a future release of the Service class

Definition at line 38 of file Services.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\HTTP\Services::__construct ( Container  $dic)

Services constructor.

Definition at line 47 of file Services.php.

References ILIAS\HTTP\Services\agent(), ILIAS\HTTP\Services\raw(), and ILIAS\HTTP\Services\wrapper().

48  {
49  $this->raw = new RawHTTPServices(
50  $dic['http.response_sender_strategy'],
51  $dic['http.cookie_jar_factory'],
52  $dic['http.request_factory'],
53  $dic['http.response_factory'],
54  $dic['http.duration_factory']
55  );
56  $this->wrapper = new WrapperFactory($this->raw->request());
57  $this->agent = new AgentDetermination();
58  }
$dic
Definition: ltiresult.php:33
+ Here is the call graph for this function:

Member Function Documentation

◆ agent()

ILIAS\HTTP\Services::agent ( )

Definition at line 138 of file Services.php.

References ILIAS\HTTP\Services\$agent.

Referenced by ILIAS\HTTP\Services\__construct().

138  : AgentDetermination
139  {
140  return $this->agent;
141  }
AgentDetermination $agent
Definition: Services.php:42
+ Here is the caller graph for this function:

◆ close()

ILIAS\HTTP\Services::close ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 133 of file Services.php.

References ILIAS\HTTP\Services\raw().

133  : void
134  {
135  $this->raw()->close();
136  }
+ Here is the call graph for this function:

◆ cookieJar()

ILIAS\HTTP\Services::cookieJar ( )
Deprecated:
Please use $this->wrapper() in most cases.
See also
Services::wrapper();

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 104 of file Services.php.

References ILIAS\HTTP\Services\raw().

104  : CookieJar
105  {
106  return $this->raw()->cookieJar();
107  }
+ Here is the call graph for this function:

◆ durations()

ILIAS\HTTP\Services::durations ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 60 of file Services.php.

References ILIAS\HTTP\Services\raw().

60  : DurationFactory
61  {
62  return $this->raw->durations();
63  }
+ Here is the call graph for this function:

◆ raw()

◆ request()

ILIAS\HTTP\Services::request ( )
Deprecated:
Please use $this->wrapper() in most cases.
See also
Services::wrapper();

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 84 of file Services.php.

References ILIAS\HTTP\Services\raw().

Referenced by ilWebDAVMountInstructionsGUI\__construct().

85  {
86  return $this->raw()->request();
87  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ response()

ILIAS\HTTP\Services::response ( )
Deprecated:
Please use $this->wrapper() in most cases.
See also
Services::wrapper();

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 94 of file Services.php.

References ILIAS\HTTP\Services\raw().

94  : ResponseInterface
95  {
96  return $this->raw()->response();
97  }
+ Here is the call graph for this function:

◆ saveRequest()

ILIAS\HTTP\Services::saveRequest ( ServerRequestInterface  $request)

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 112 of file Services.php.

References ILIAS\HTTP\Services\raw().

112  : void
113  {
114  $this->raw()->saveRequest($request);
115  }
+ Here is the call graph for this function:

◆ saveResponse()

ILIAS\HTTP\Services::saveResponse ( ResponseInterface  $response)

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 120 of file Services.php.

References ILIAS\HTTP\Services\raw().

120  : void
121  {
122  $this->raw()->saveResponse($response);
123  }
$response
Definition: xapitoken.php:90
+ Here is the call graph for this function:

◆ sendResponse()

ILIAS\HTTP\Services::sendResponse ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 128 of file Services.php.

References ILIAS\HTTP\Services\raw().

128  : void
129  {
130  $this->raw()->sendResponse();
131  }
+ Here is the call graph for this function:

◆ wrapper()

ILIAS\HTTP\Services::wrapper ( )

Implements ILIAS\HTTP\GlobalHttpState.

Definition at line 65 of file Services.php.

References ILIAS\HTTP\Services\$wrapper.

Referenced by ILIAS\HTTP\Services\__construct().

65  : WrapperFactory
66  {
67  return $this->wrapper;
68  }
WrapperFactory $wrapper
Definition: Services.php:41
+ Here is the caller graph for this function:

Field Documentation

◆ $agent

AgentDetermination ILIAS\HTTP\Services::$agent
protected

Definition at line 42 of file Services.php.

Referenced by ILIAS\HTTP\Services\agent().

◆ $raw

GlobalHttpState ILIAS\HTTP\Services::$raw
protected

Definition at line 40 of file Services.php.

Referenced by ILIAS\HTTP\Services\raw().

◆ $wrapper

WrapperFactory ILIAS\HTTP\Services::$wrapper
protected

Definition at line 41 of file Services.php.

Referenced by ILIAS\HTTP\Services\wrapper().


The documentation for this class was generated from the following file: