* @return \Cake\Http\Client\Response | |
*/ | |
protected function _sendRequest(Request $request, $options) | |
{ | |
$responses = $this->_adapter->send($request, $options); | |
$url = $request->getUri(); | |
foreach ($responses as $response) { | |
$this->_cookies = $this->_cookies->addFromResponse($response, $request); | |
} |
object(Cake\Http\Client\Request) { [protected] _cookies => [] [protected] _body => null [protected] headers => [ 'Connection' => [ (int) 0 => 'close' ], 'User-Agent' => [ (int) 0 => 'CakePHP' ], 'Authorization' => [ (int) 0 => 'Basic YXV0aHVzZXI6U2FuZ2l0QDg5' ], 'Host' => [ (int) 0 => 'apis.truyenchu.vn' ] ] [protected] headerNames => [ 'connection' => 'Connection', 'user-agent' => 'User-Agent', 'authorization' => 'Authorization', 'host' => 'Host' ] [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'apis.truyenchu.vn' [private] port => null [private] path => '/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh' [private] query => 'client=reviewtruyenchu_com' [private] fragment => '' [private] uriString => 'https://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh?client=reviewtruyenchu_com' } [private] protocol => '1.1' [private] stream => null } [ (int) 10002 => 'https://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh?client=reviewtruyenchu_com', (int) 84 => (int) 2, (int) 19913 => true, (int) 42 => true, (int) 10023 => [ (int) 0 => 'Connection: close', (int) 1 => 'User-Agent: CakePHP', (int) 2 => 'Authorization: Basic YXV0aHVzZXI6U2FuZ2l0QDg5', (int) 3 => 'Host: apis.truyenchu.vn' ], (int) 80 => true, (int) 13 => (int) 30, (int) 64 => true, (int) 81 => (int) 2, (int) 10065 => '/var/www/reviewtruyenchu.com/public_html/vendor/cakephp/cakephp/config/cacert.pem' ]
unset($options['redirect']); | |
} | |
| |
do { | |
$response = $this->_sendRequest($request, $options); | |
| |
$handleRedirect = $response->isRedirect() && $redirects-- > 0; | |
if ($handleRedirect) { | |
$url = $request->getUri(); |
object(Cake\Http\Client\Request) { [protected] _cookies => [] [protected] _body => null [protected] headers => [ 'Connection' => [ (int) 0 => 'close' ], 'User-Agent' => [ (int) 0 => 'CakePHP' ], 'Authorization' => [ (int) 0 => 'Basic YXV0aHVzZXI6U2FuZ2l0QDg5' ], 'Host' => [ (int) 0 => 'apis.truyenchu.vn' ] ] [protected] headerNames => [ 'connection' => 'Connection', 'user-agent' => 'User-Agent', 'authorization' => 'Authorization', 'host' => 'Host' ] [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'apis.truyenchu.vn' [private] port => null [private] path => '/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh' [private] query => 'client=reviewtruyenchu_com' [private] fragment => '' [private] uriString => 'https://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh?client=reviewtruyenchu_com' } [private] protocol => '1.1' [private] stream => null } [ 'adapter' => null, 'host' => null, 'port' => null, 'scheme' => 'http', 'timeout' => (int) 30, 'ssl_verify_peer' => true, 'ssl_verify_peer_name' => true, 'ssl_verify_depth' => (int) 5, 'ssl_verify_host' => true, 'auth' => [ 'username' => 'authuser', 'password' => 'Sangit@89' ] ]
$data, | |
$options | |
); | |
| |
return $this->send($request, $options); | |
} | |
| |
/** | |
* Does a recursive merge of the parameter with the scope config. |
object(Cake\Http\Client\Request) { [protected] _cookies => [] [protected] _body => null [protected] headers => [ 'Connection' => [ (int) 0 => 'close' ], 'User-Agent' => [ (int) 0 => 'CakePHP' ], 'Authorization' => [ (int) 0 => 'Basic YXV0aHVzZXI6U2FuZ2l0QDg5' ], 'Host' => [ (int) 0 => 'apis.truyenchu.vn' ] ] [protected] headerNames => [ 'connection' => 'Connection', 'user-agent' => 'User-Agent', 'authorization' => 'Authorization', 'host' => 'Host' ] [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'apis.truyenchu.vn' [private] port => null [private] path => '/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh' [private] query => 'client=reviewtruyenchu_com' [private] fragment => '' [private] uriString => 'https://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh?client=reviewtruyenchu_com' } [private] protocol => '1.1' [private] stream => null } [ 'adapter' => null, 'host' => null, 'port' => null, 'scheme' => 'http', 'timeout' => (int) 30, 'ssl_verify_peer' => true, 'ssl_verify_peer_name' => true, 'ssl_verify_depth' => (int) 5, 'ssl_verify_host' => true, 'auth' => [ 'username' => 'authuser', 'password' => 'Sangit@89' ] ]
} | |
$url = $this->buildUrl($url, $data, $options); | |
| |
return $this->_doRequest( | |
Request::METHOD_GET, | |
$url, | |
$body, | |
$options | |
); |
'GET' 'http://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh?client=reviewtruyenchu_com' null [ 'adapter' => null, 'host' => null, 'port' => null, 'scheme' => 'http', 'timeout' => (int) 30, 'ssl_verify_peer' => true, 'ssl_verify_peer_name' => true, 'ssl_verify_depth' => (int) 5, 'ssl_verify_host' => true, 'redirect' => (int) 3, 'auth' => [ 'username' => 'authuser', 'password' => 'Sangit@89' ] ]
| |
function callApiService($url, $params = []) { | |
$client = new Client(); | |
$response = $client->get($url, array_merge($params, ['client' => 'reviewtruyenchu_com']), [ | |
'redirect' => 3, | |
'timeout' => 30, | |
'auth' => [ | |
'username' => 'authuser', | |
'password' => 'Sangit@89' |
'http://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh?client=reviewtruyenchu_com' [ 'client' => 'reviewtruyenchu_com' ] [ 'adapter' => null, 'host' => null, 'port' => null, 'scheme' => 'http', 'timeout' => (int) 30, 'ssl_verify_peer' => true, 'ssl_verify_peer_name' => true, 'ssl_verify_depth' => (int) 5, 'ssl_verify_host' => true, 'redirect' => (int) 3, 'auth' => [ 'username' => 'authuser', 'password' => 'Sangit@89' ] ]
| |
$cache_story = 'story_' . $slug; | |
if (($story = Cache::read($cache_story, '1month')) === false) { | |
| |
$story = callApiService(GET_STORIES_BY_SLUG . '/' . $slug); | |
| |
if (empty($story)) { | |
return $this->redirect('/', 301); | |
} |
'http://apis.truyenchu.vn/stories/get-by-slug/review-truyen-thieu-nien-ca-hanh'
} | |
/* @var callable $callable */ | |
$callable = [$this, $request->getParam('action')]; | |
| |
$result = $callable(...array_values($request->getParam('pass'))); | |
if ($result instanceof Response) { | |
$this->response = $result; | |
} | |
|
'review-truyen-thieu-nien-ca-hanh' 'chuong-49-naraku-ngu-gioi'
if ($result instanceof Response) { | |
return $result; | |
} | |
| |
$response = $controller->invokeAction(); | |
if ($response !== null && !($response instanceof Response)) { | |
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); | |
} | |
|
No arguments
} else { | |
$controller = $this->factory->create($request, $response); | |
} | |
| |
$response = $this->_invoke($controller); | |
if ($request->getParam('return')) { | |
return $response; | |
} | |
|
object(App\Controller\StoriesController) { helpers => [] request => object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ [maximum depth reached] ] [protected] data => [[maximum depth reached]] [protected] query => [[maximum depth reached]] [protected] cookies => [[maximum depth reached]] [protected] _environment => [ [maximum depth reached] ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [[maximum depth reached]] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Http\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ [maximum depth reached] ] } response => object(Cake\Http\Response) { 'status' => (int) 301, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } paginate => [] components => [] View => null passedArgs => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ] modelClass => 'Stories' viewClass => null viewVars => [ 'current_action' => 'chapter', 'current_controller' => 'Stories', 'story_viewed' => [], 'seo_content_sitebar' => '<h4 style="text-align: justify;"><strong>THÔNG TIN TRUYỆN ĐAM MỸ</strong></h4> <ul> <li style="text-align: justify;">Đọc <a href="https://truyenchu.vn/the-loai/dam-my" target="_blank">Truyện Đam Mỹ</a> Online Miễn Phí</li> <li style="text-align: justify;"><a href="https://truyenchu.vn/truyen-dam-my-la-gi" target="_blank">Truyện đam mỹ là gì</a></li> <li style="text-align: justify;"><a href="https://truyenchu.vn/truyen-dam-my-thai-lan" target="_blank">Truyện đam mỹ Thái Lan</a> : Giới thiệu những tác phẩm nổi bật</li> <li style="text-align: justify;"><a href="https://truyenchu.vn/truyen-dam-my-nguoc-thu" target="_blank">Truyện đam mỹ ngược thụ</a>: Điểm qua và đánh giá</li> <li style="text-align: justify;"><a href="https://truyenchu.vn/truyen-dam-my-mang-thai" target="_blank">Truyện đam mỹ mang thai</a>: Những câu chuyện tình yêu đáng đọc</li> </ul> ', 'footer_info_pages' => [ (int) 0 => object(App\Model\Entity\Page) {}, (int) 1 => object(App\Model\Entity\Page) {}, (int) 2 => object(App\Model\Entity\Page) {}, (int) 3 => object(App\Model\Entity\Page) {} ], 'hot_in_day' => null, 'post_categories' => [ (int) 0 => object(App\Model\Entity\PostCategory) {}, (int) 1 => object(App\Model\Entity\PostCategory) {} ], 'types' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ], (int) 2 => [ [maximum depth reached] ], (int) 3 => [ [maximum depth reached] ], (int) 4 => [ [maximum depth reached] ], (int) 5 => [ [maximum depth reached] ], (int) 6 => [ [maximum depth reached] ], (int) 7 => [ [maximum depth reached] ], (int) 8 => [ [maximum depth reached] ], (int) 9 => [ [maximum depth reached] ], (int) 10 => [ [maximum depth reached] ], (int) 11 => [ [maximum depth reached] ], (int) 12 => [ [maximum depth reached] ], (int) 13 => [ [maximum depth reached] ], (int) 14 => [ [maximum depth reached] ], (int) 15 => [ [maximum depth reached] ], (int) 16 => [ [maximum depth reached] ], (int) 17 => [ [maximum depth reached] ], (int) 18 => [ [maximum depth reached] ], (int) 19 => [ [maximum depth reached] ], (int) 20 => [ [maximum depth reached] ], (int) 21 => [ [maximum depth reached] ], (int) 22 => [ [maximum depth reached] ], (int) 23 => [ [maximum depth reached] ], (int) 24 => [ [maximum depth reached] ], (int) 25 => [ [maximum depth reached] ], (int) 26 => [ [maximum depth reached] ], (int) 27 => [ [maximum depth reached] ], (int) 28 => [ [maximum depth reached] ], (int) 29 => [ [maximum depth reached] ], (int) 30 => [ [maximum depth reached] ], (int) 31 => [ [maximum depth reached] ], (int) 32 => [ [maximum depth reached] ], (int) 33 => [ [maximum depth reached] ], (int) 34 => [ [maximum depth reached] ], (int) 35 => [ [maximum depth reached] ], (int) 36 => [ [maximum depth reached] ], (int) 37 => [ [maximum depth reached] ] ], 'categories' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ], (int) 2 => [ [maximum depth reached] ], (int) 3 => [ [maximum depth reached] ], (int) 4 => [ [maximum depth reached] ], (int) 5 => [ [maximum depth reached] ], (int) 6 => [ [maximum depth reached] ], (int) 7 => [ [maximum depth reached] ], (int) 8 => [ [maximum depth reached] ], (int) 9 => [ [maximum depth reached] ], (int) 10 => [ [maximum depth reached] ], (int) 11 => [ [maximum depth reached] ], (int) 12 => [ [maximum depth reached] ] ] ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } [protected] name => 'Stories' [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => false [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\StoriesController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] plugin => null [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] locations => [ [maximum depth reached] ] [protected] _config => [[maximum depth reached]] [protected] _instances => [[maximum depth reached]] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [[maximum depth reached]] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
* @return \Psr\Http\Message\ResponseInterface | |
*/ | |
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) | |
{ | |
return $this->getDispatcher()->dispatch($request, $response); | |
} | |
| |
/** | |
* Get the ActionDispatcher. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null, '_csrfToken' => '166ac3562634e90f9e382012ff22157bb2e5476fa5668f35cc09ee22e8c6b1a83175b844e1e285fa68612fab2827b3a6107455f1018394410760734166f5fb9a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); | |
if ($next) { | |
$this->index++; | |
| |
return $next($request, $response, $this); | |
} | |
| |
// End of the queue | |
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null, '_csrfToken' => '166ac3562634e90f9e382012ff22157bb2e5476fa5668f35cc09ee22e8c6b1a83175b844e1e285fa68612fab2827b3a6107455f1018394410760734166f5fb9a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$next = $this->middleware->get($this->index); | |
if ($next) { | |
$this->index++; | |
| |
return $next($request, $response, $this); | |
} | |
| |
// End of the queue | |
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null, '_csrfToken' => '166ac3562634e90f9e382012ff22157bb2e5476fa5668f35cc09ee22e8c6b1a83175b844e1e285fa68612fab2827b3a6107455f1018394410760734166f5fb9a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$token = $this->_createToken(); | |
$request = $this->_addTokenToRequest($token, $request); | |
$response = $this->_addTokenCookie($token, $request, $response); | |
| |
return $next($request, $response); | |
} | |
$request = $this->_validateAndUnsetTokenField($request); | |
| |
return $next($request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null, '_csrfToken' => '166ac3562634e90f9e382012ff22157bb2e5476fa5668f35cc09ee22e8c6b1a83175b844e1e285fa68612fab2827b3a6107455f1018394410760734166f5fb9a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); | |
if ($next) { | |
$this->index++; | |
| |
return $next($request, $response, $this); | |
} | |
| |
// End of the queue | |
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null, '_csrfToken' => '166ac3562634e90f9e382012ff22157bb2e5476fa5668f35cc09ee22e8c6b1a83175b844e1e285fa68612fab2827b3a6107455f1018394410760734166f5fb9a' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ | |
$this->middleware = $middleware; | |
$this->index = 0; | |
| |
return $this->__invoke($request, $response); | |
} | |
| |
/** | |
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$matching[] = $next; | |
$middleware = new MiddlewareQueue($matching); | |
$runner = new Runner(); | |
| |
return $runner->run($middleware, $request, $response); | |
} | |
} | |
|
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] [protected] callables => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); | |
if ($next) { | |
$this->index++; | |
| |
return $next($request, $response, $this); | |
} | |
| |
// End of the queue | |
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug' => 'review-truyen-thieu-nien-ca-hanh', 'chuong' => 'chuong-49-naraku-ngu-gioi', 'pass' => [ (int) 0 => 'review-truyen-thieu-nien-ca-hanh', (int) 1 => 'chuong-49-naraku-ngu-gioi' ], 'controller' => 'Stories', 'action' => 'chapter', 'plugin' => null, '_matchedRoute' => '/:slug/:chuong', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) | |
{ | |
$url = $request->getUri()->getPath(); | |
if (strpos($url, '..') !== false || strpos($url, '.') === false) { | |
return $next($request, $response); | |
} | |
| |
if (strpos($url, '/.') !== false) { | |
return $next($request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); | |
if ($next) { | |
$this->index++; | |
| |
return $next($request, $response, $this); | |
} | |
| |
// End of the queue | |
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ | |
public function __invoke($request, $response, $next) | |
{ | |
try { | |
return $next($request, $response); | |
} catch (Throwable $exception) { | |
return $this->handleException($exception, $request, $response); | |
} catch (Exception $exception) { | |
return $this->handleException($exception, $request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); | |
if ($next) { | |
$this->index++; | |
| |
return $next($request, $response, $this); | |
} | |
| |
// End of the queue | |
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ | |
$this->middleware = $middleware; | |
$this->index = 0; | |
| |
return $this->__invoke($request, $response); | |
} | |
| |
/** | |
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
} | |
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); | |
$middleware->add($this->app); | |
| |
$response = $this->runner->run($middleware, $request, $response); | |
| |
if (!($response instanceof ResponseInterface)) { | |
throw new RuntimeException(sprintf( | |
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'nginx', 'HOME' => '/var/lib/nginx', 'HTTP_CF_IPCOUNTRY' => 'US', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_CONNECTING_IP' => '44.199.212.254', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_RAY' => '86b874e92ae53955-IAD', 'HTTP_X_FORWARDED_FOR' => '44.199.212.254', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'reviewtruyenchu.com', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'reviewtruyenchu.com', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '103.82.26.43', 'REMOTE_PORT' => '54894', 'REMOTE_ADDR' => '172.70.39.118', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/reviewtruyenchu.com/public_html/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/var/www/reviewtruyenchu.com/public_html/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711636609.3409, 'REQUEST_TIME' => (int) 1711636609, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] base => '' [protected] webroot => '/' [protected] here => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'reviewtruyenchu.com' [private] port => null [private] path => '/review-truyen-thieu-nien-ca-hanh/chuong-49-naraku-ngu-gioi' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
// Bind your application to the server. | |
$server = new Server(new Application(dirname(__DIR__) . '/config')); | |
| |
// Run the request/response through the application and emit the response. | |
$server->emit($server->run()); |
No arguments
If you want to customize this error message, create src/Template/Error/error500.ctp