->andWhere([ |
|
$this->Categories->aliasField('slug') => $category, |
|
$this->Categories->aliasField('site_id') => $this->site->id |
|
]) |
|
->firstOrFail(); |
|
|
|
$this->set(compact('category')); |
|
|
|
$filters['category_id'] = $category->id; |
No arguments
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
return $callable(...array_values($request->getParam('pass'))); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
'www.resistencia.cc'
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\NewsController) { paginate => [ 'limit' => (int) 20, 'maxLimit' => (int) 60, 'order' => [ 'News.publication_date' => 'desc' ] ] 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 => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } components => [] View => null passedArgs => [ (int) 0 => 'www.resistencia.cc' ] modelClass => 'News' viewClass => null viewVars => [ 'warns' => [ (int) 0 => object(App\Model\Entity\Warn) {} ], 'site' => object(App\Model\Entity\Site) {} ] RequestHandler => object(Amp\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] ] } ReCaptcha => object(App\Controller\Component\ReCaptchaComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } Sites => object(App\Model\Table\SitesTable) { 'registryAlias' => 'Sites', 'table' => 'sites', 'alias' => 'Sites', 'entityClass' => 'App\Model\Entity\Site', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Apis => object(App\Model\Table\ApisTable) { 'registryAlias' => 'Apis', 'table' => 'apis', 'alias' => 'Apis', 'entityClass' => 'App\Model\Entity\Api', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Warns => object(App\Model\Table\WarnsTable) { 'registryAlias' => 'Warns', 'table' => 'warns', 'alias' => 'Warns', 'entityClass' => 'App\Model\Entity\Warn', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } FacebookUsers => object(App\Model\Table\FacebookUsersTable) { 'registryAlias' => 'FacebookUsers', 'table' => 'facebook_users', 'alias' => 'FacebookUsers', 'entityClass' => 'App\Model\Entity\FacebookUser', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Facebook => object(App\Controller\Component\FacebookComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } site => object(App\Model\Entity\Site) { 'id' => (int) 1, 'language_id' => (int) 1, 'user_id' => (int) 1, 'last_user_id' => (int) 1, 'log_id' => (int) 249, 'media_id' => (int) 2, 'favicon_id' => (int) 124, 'name' => 'Opera Mundi', 'slug' => 'opera-mundi', 'url' => 'opera.doud.com.br', 'keywords' => 'Opera Mundi, Notícias, Mundo, Internacional, Jornalismo Independente, América Latina, Política, Economia, Diplomacia, Sociedade, Cultura, Breno Altman, Análises, Opinião, Geopolítica, Esquerda, Progressista, Eleições no mundo', 'description' => 'Opera Mundi', 'head_tags' => '<script type="text/javascript"> (function () { window.universal_variable = window.universal_variable || {}; window.universal_variable.dfp = window.universal_variable.dfp || {}; window.uolads = window.uolads || []; })(); </script> <script type="text/javascript" src="//tm.jsuol.com.br/uoltm.js?id=rewywy" async></script>', 'tracking_code' => '<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-134839803-2"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-134839803-2'); </script> <script> !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '650006225010114'); fbq('track', 'PageView'); </script> <noscript> <img height="1" width="1" src="https://www.facebook.com/tr?id=625742144198766&ev=PageView &noscript=1"/> </noscript> <!-- End Facebook Pixel Code -->', 'amp_head' => '', 'amp_body' => '', 'creation_date' => object(Cake\I18n\FrozenTime) {}, 'last_change' => object(Cake\I18n\FrozenTime) {}, 'status' => true, 'social_networks' => [ [maximum depth reached] ], 'language' => object(App\Model\Entity\Language) {}, 'categories' => [ [maximum depth reached] ], 'favicon' => object(App\Model\Entity\Media) {}, 'media' => object(App\Model\Entity\Media) {}, 'logo' => 'https://opera2.doud.com.br/thumb/4243df3816d24fa6ff0d8e74fa2f5879_89cc18dff80359d015fe5fb6d265ab24.png', 'icon' => 'https://opera2.doud.com.br/thumb/0f1c15761207c422e726b67ee17172ee_edfaa7a061d04817c21a45c3ac3c8a38.png', '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [ [maximum depth reached] ], '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Sites' } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Categories => object(App\Model\Table\CategoriesTable) { 'registryAlias' => 'Categories', 'table' => 'categories', 'alias' => 'Categories', 'entityClass' => 'App\Model\Entity\Category', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Posts => object(App\Model\Table\PostsTable) { 'registryAlias' => 'Posts', 'table' => 'posts', 'alias' => 'Posts', 'entityClass' => 'App\Model\Entity\Post', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } PostsIndex => object(App\Model\Index\PostsIndex) { [protected] _indexName => 'homologposts' } [protected] hasWarning => false [protected] name => 'News' [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\NewsController) {}, '_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] _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 => [ 'category' => 'www.resistencia.cc', 'pass' => [ (int) 0 => 'www.resistencia.cc' ], 'controller' => 'News', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:category', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => object(Closure) {} ] [protected] _detectorCache => [ 'json' => false, '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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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 => [ 'category' => 'www.resistencia.cc', 'pass' => [ (int) 0 => 'www.resistencia.cc' ], 'controller' => 'News', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:category', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => object(Closure) {} ] [protected] _detectorCache => [ 'json' => false, '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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$newRequest = new ServerRequest(['url' => $url]); |
|
$params = Router::parseRequest($newRequest) + (array)$request->getAttribute('params', []); |
|
|
|
$request = $request->withAttribute('params', $params); |
|
return $next($request, $response); |
|
} |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'category' => 'www.resistencia.cc', 'pass' => [ (int) 0 => 'www.resistencia.cc' ], 'controller' => 'News', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:category', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => object(Closure) {} ] [protected] _detectorCache => [ 'json' => false, '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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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 => [ 'category' => 'www.resistencia.cc', 'pass' => [ (int) 0 => 'www.resistencia.cc' ], 'controller' => 'News', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:category', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => object(Closure) {} ] [protected] _detectorCache => [ 'json' => false, '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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $next($request, $response); |
|
} |
|
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'category' => 'www.resistencia.cc', 'pass' => [ (int) 0 => 'www.resistencia.cc' ], 'controller' => 'News', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:category', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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 => [ 'category' => 'www.resistencia.cc', 'pass' => [ (int) 0 => 'www.resistencia.cc' ], 'controller' => 'News', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:category', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'USER' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
catch (\Exception $e) { |
|
// Prevent of crashing |
|
} |
|
|
|
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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !file_exists($assetFile)) { |
|
return $next($request, $response); |
|
} |
|
|
|
$file = new File($assetFile); |
|
$modifiedTime = $file->lastChange(); |
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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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) 6 [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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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) 6 [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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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 => 'Cake\Error\Middleware\ErrorHandlerMiddleware', (int) 1 => 'Cake\Routing\Middleware\AssetMiddleware', (int) 2 => object(App\Middleware\LanguageMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(Amp\Middleware\AmpRoutingMiddleware) {}, (int) 5 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(App\Middleware\LanguageMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(Amp\Middleware\AmpRoutingMiddleware) {}, (int) 5 => 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' => 'www-data', 'HOME' => '/var/www', 'HTTP_HOST' => 'opera.doud.com.br', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => 'opera.doud.com.br', 'SERVER_PORT' => '443', 'SERVER_ADDR' => '192.168.0.2', 'REMOTE_PORT' => '60888', 'REMOTE_ADDR' => '3.234.143.63', 'SERVER_SOFTWARE' => 'nginx/1.10.3', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'HTTPS' => 'on', 'REQUEST_SCHEME' => 'https', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/var/www/html/OperaHomolog/OperaMundi/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/www.resistencia.cc/', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'APP_DEFAULT_LOCALE' => 'pt_BR', 'APP_ALIAS' => 'operamundi.uol.com.br', 'SCRIPT_FILENAME' => '/var/www/html/OperaHomolog/OperaMundi/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711724046.728, 'REQUEST_TIME' => (int) 1711724046, 'DEBUG' => 'true', 'SERVICE_TOKEN' => 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NWVmcXdmcWVmcWVmcWVmcWVmNjc4OTAiLCJuYW1lIjoiSm9obiBxZWZxZWZxZWZEb2UiLCJpYXQiOjE1MTYyMzkwMjJ9.k4TufdG5HpGWkiM_WNywKHFgjYzy_IHQfCfMIEuqee8', 'MAIN_SITE' => 'https://opera.doud.com.br', 'ELASTIC_HOST' => '200.98.71.142', 'ELASTIC_PORT' => '9200', 'ELASTIC_SCHEME' => 'http', 'ELASTIC_PREFIX' => 'homolog', 'STATIC_FILES' => 'opera2.doud.com.br', 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'www.resistencia.cc/' [protected] base => '' [protected] webroot => '/' [protected] here => '/www.resistencia.cc/' [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) {}, 'amp' => 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 => 'opera.doud.com.br' [private] port => null [private] path => '/www.resistencia.cc/' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '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