TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
▼
TYPO3 CMS
TYPO3 CMS
Test List
Todo List
Deprecated List
►
Namespace Members
►
Classes
▼
Files
►
File List
►
File Members
►
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
RequestHandler.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\Mvc\Cli
;
3
21
class
RequestHandler
implements
\TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface
{
22
27
protected
$objectManager
;
28
33
protected
$dispatcher
;
34
39
protected
$requestBuilder
;
40
45
protected
$environmentService
;
46
52
public
function
handleRequest
() {
53
$commandLine = isset($_SERVER[
'argv'
]) ? $_SERVER[
'argv'
] : array();
54
$callingScript = array_shift($commandLine);
55
if
($callingScript !== $_SERVER[
'_'
]) {
56
$callingScript = $_SERVER[
'_'
] .
' '
. $callingScript;
57
}
58
$request = $this->requestBuilder->build($commandLine, $callingScript .
' extbase'
);
60
$response = $this->objectManager->get(
'TYPO3\\CMS\\Extbase\\Mvc\\Cli\\Response'
);
61
$this->dispatcher->dispatch($request, $response);
62
$response->send();
63
return
$response;
64
}
65
71
public
function
canHandleRequest
() {
72
return
$this->environmentService->isEnvironmentInCliMode();
73
}
74
81
public
function
getPriority
() {
82
return
100;
83
}
84
}
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler\$objectManager
$objectManager
Definition:
RequestHandler.php:27
TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface\handleRequest
handleRequest()
TYPO3\CMS\Extbase\Mvc\Cli
Definition:
Command.php:2
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler\canHandleRequest
canHandleRequest()
Definition:
RequestHandler.php:71
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler\getPriority
getPriority()
Definition:
RequestHandler.php:81
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler\$requestBuilder
$requestBuilder
Definition:
RequestHandler.php:39
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler\$dispatcher
$dispatcher
Definition:
RequestHandler.php:33
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler
Definition:
RequestHandler.php:21
TYPO3\CMS\Extbase\Mvc\RequestHandlerInterface
Definition:
RequestHandlerInterface.php:21
TYPO3\CMS\Extbase\Mvc\Cli\RequestHandler\$environmentService
$environmentService
Definition:
RequestHandler.php:45
typo3
sysext
extbase
Classes
Mvc
Cli
RequestHandler.php
Generated on Wed Aug 7 2019 09:52:24 for TYPO3 CMS by
1.8.13