} |
|
$query->cache($cacheKey, $cacheConfig); |
|
} |
|
|
|
return $query->firstOrFail(); |
|
} |
|
|
|
/** |
|
* Handles the logic executing of a worker inside a transaction. |
No arguments
$newsLetter = $this->NewsLetters->get($id, [ |
|
'contain' => [ |
|
'Tags' => function ($tag){ |
|
return $tag->where(['Tags.status' => 1]); |
|
} |
|
] |
|
]); |
|
|
|
$newsLettersTable = TableRegistry::get('NewsLetters'); |
[ (int) 0 => '43' ] [ 'contain' => [ 'Tags' => object(Closure) { } ] ]
} |
|
/** @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
$result = $callable(...array_values($request->getParam('pass'))); |
|
if ($result instanceof Response) { |
|
$this->response = $result; |
|
} |
|
|
'43'
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\NewsLettersController) { 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 => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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) 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' => '' } paginate => [] components => [] View => null passedArgs => [ (int) 0 => '43' ] modelClass => 'NewsLetters' viewClass => null viewVars => [ 'data_user' => null, 'dominio_sistema' => 'https://dprotecao.com.br' ] 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] ] } Files => object(App\Controller\Component\FilesComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } NewsLetters => object(App\Model\Table\NewsLettersTable) { 'registryAlias' => 'NewsLetters', 'table' => 'news_letters', 'alias' => 'NewsLetters', 'entityClass' => 'App\Model\Entity\NewsLetter', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] name => 'NewsLetters' [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\NewsLettersController) {}, '_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 => object(Cake\View\ViewBuilder) { [protected] _templatePath => null [protected] _template => null [protected] _plugin => null [protected] _theme => null [protected] _layout => 'pages' [protected] _autoLayout => null [protected] _layoutPath => null [protected] _name => null [protected] _className => null [protected] _options => [[maximum depth reached]] [protected] _helpers => [[maximum depth reached]] [protected] _vars => [[maximum depth reached]] } }
* @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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null, '_csrfToken' => '0a2d5f2676141a3056bca2507947bb36f56cbd2af3aaeac89501bf7605c924e87b69250c5ed07c25ef1658f18febebe55f8e3933b3dd3a86b9bdd8eaa5aa4e41' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null, '_csrfToken' => '0a2d5f2676141a3056bca2507947bb36f56cbd2af3aaeac89501bf7605c924e87b69250c5ed07c25ef1658f18febebe55f8e3933b3dd3a86b9bdd8eaa5aa4e41' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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) 5 [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null, '_csrfToken' => '0a2d5f2676141a3056bca2507947bb36f56cbd2af3aaeac89501bf7605c924e87b69250c5ed07c25ef1658f18febebe55f8e3933b3dd3a86b9bdd8eaa5aa4e41' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null, '_csrfToken' => '0a2d5f2676141a3056bca2507947bb36f56cbd2af3aaeac89501bf7605c924e87b69250c5ed07c25ef1658f18febebe55f8e3933b3dd3a86b9bdd8eaa5aa4e41' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null, '_csrfToken' => '0a2d5f2676141a3056bca2507947bb36f56cbd2af3aaeac89501bf7605c924e87b69250c5ed07c25ef1658f18febebe55f8e3933b3dd3a86b9bdd8eaa5aa4e41' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_REFERER' => null, 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'controller' => 'NewsLetters', 'action' => 'view', 'pass' => [ (int) 0 => '43' ], 'plugin' => null, '_matchedRoute' => '/{controller}/{action}/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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) 5 [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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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) 5 [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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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) 5 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$this->service->loadPanels(); |
|
$this->service->initializePanels(); |
|
$response = $next($request, $response); |
|
$row = $this->service->saveData($request, $response); |
|
if (!$row) { |
|
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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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) 5 [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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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(DebugKit\Middleware\DebugKitMiddleware) {}, (int) 1 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(DebugKit\Middleware\DebugKitMiddleware) {}, (int) 1 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => 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 => [ 'ENV_DB_TIMEZONE' => 'UTC', 'HOSTNAME' => 'e0ef9b12e69c', 'PHP_CGI_FIX_PATHINFO' => '0', 'ENV_DEBUG' => 'true', 'ENV_DB_PASSWORD' => 'psYwFLmqKxKQtYr5', 'ENV_DB_HOST' => '172.17.0.1', 'PHP_INI_FILE' => '/etc/php.ini', 'PHP_MEMORY_LIMIT' => '512M', 'PHP_FPM_USER' => 'nginx', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'ENV_DB_USERNAME' => 'website_dprotecao_prd', 'PHP_DISPLAY_STARTUP_ERRORS' => 'On', 'PWD' => '/www', 'PHP_FPM_FILE' => '/etc/php-fpm.d/www.conf', 'ENV_DEBUGKIT_FORCE_ENABLE' => 'true', 'PHP_DISPLAY_ERRORS' => 'On', 'PHP_MAX_POST' => '100M', 'PHP_MAX_UPLOAD' => '50M', 'HOME' => '/var/lib/nginx', 'SHLVL' => '2', 'ENV_DB_DATABASE' => 'website_dprotecao_prd', 'PHP_FPM_LISTEN_MODE' => '0660', 'ENV_WK_BINARY' => '/usr/bin/wkhtmltopdf', 'PHP_MAX_FILE_UPLOAD' => '200', 'PHP_ERROR_REPORTING' => 'E_COMPILE_ERROR\|E_RECOVERABLE_ERROR\|E_ERROR\|E_CORE_ERROR', 'ENV_DB_ENCODING' => 'utf8', 'LIGHTWIDGET_URL' => '//lightwidget.com/widgets/1c47cf46ebc1574eb733f47f21d56c15.html', 'PHP_FPM_GROUP' => 'nginx', 'APPLICATION' => 'MinhaLoja', 'APP_DEFAULT_TIMEZONE' => 'UTC', 'ENV_DOMINIO_SYSTEM' => 'https://dprotecao.com.br', '_' => '/usr/sbin/php-fpm', 'USER' => 'nginx', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_ACCEPT' => '*/*', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_X_FORWARDED_FOR' => '3.92.84.253', 'HTTP_X_REAL_IP' => '3.92.84.253', 'HTTP_HOST' => 'dprotecao.com.br', 'REDIRECT_STATUS' => '200', 'SERVER_NAME' => '_', 'SERVER_PORT' => '80', 'SERVER_ADDR' => '172.25.0.2', 'REMOTE_PORT' => '36596', 'REMOTE_ADDR' => '172.25.0.1', 'SERVER_SOFTWARE' => 'nginx/1.20.1', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'REQUEST_SCHEME' => 'http', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'DOCUMENT_ROOT' => '/www/webroot', 'DOCUMENT_URI' => '/index.php', 'REQUEST_URI' => '/newsLetters/view/43', 'SCRIPT_NAME' => '/index.php', 'CONTENT_LENGTH' => '', 'CONTENT_TYPE' => '', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'SCRIPT_FILENAME' => '/www/webroot/index.php', 'FCGI_ROLE' => 'RESPONDER', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711702023.9076, 'REQUEST_TIME' => (int) 1711702023, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'newsLetters/view/43' [protected] base => '' [protected] webroot => '/' [protected] here => '/newsLetters/view/43' [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 => 'dprotecao.com.br' [private] port => null [private] path => '/newsLetters/view/43' [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