|
|
[$for, $direct] = [$options['for'], $options['direct']]; |
|
|
|
if (empty($for)) { |
|
throw new InvalidArgumentException("The 'for' key is required for find('children')"); |
|
} |
|
|
|
if ($query->clause('order') === null) { |
|
$query->order([$left => 'ASC']); |
|
|
if ($this->hasFinder($type) && $this->has($this->_finderMap[$type][0])) { |
|
[$behavior, $callMethod] = $this->_finderMap[$type]; |
|
|
|
return call_user_func_array([$this->_loaded[$behavior], $callMethod], $args); |
|
} |
|
|
|
throw new BadMethodCallException( |
|
sprintf('Cannot call finder "%s" it does not belong to any attached behavior.', $type) |
[ (int) 0 => object(Cake\ORM\Behavior\TreeBehavior) { [protected] _primaryKey => null [protected] _defaultConfig => [ 'implementedFinders' => [ [maximum depth reached] ], 'implementedMethods' => [ [maximum depth reached] ], 'parent' => 'parent_id', 'left' => 'lft', 'right' => 'rght', 'scope' => null, 'level' => null, 'recoverOrder' => null ] [protected] _table => object(App\Model\Table\PaginasTable) {} [protected] _reflectionCache => [] [protected] _config => [ 'implementedFinders' => [ [maximum depth reached] ], 'implementedMethods' => [ [maximum depth reached] ], 'parent' => 'parent_id', 'left' => 'lft', 'right' => 'rght', 'scope' => null, 'level' => null, 'recoverOrder' => null, 'leftField' => object(Cake\Database\Expression\IdentifierExpression) {}, 'rightField' => object(Cake\Database\Expression\IdentifierExpression) {} ] [protected] _configInitialized => true }, (int) 1 => 'findChildren' ] [ (int) 0 => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Paginas.id AS "Paginas__id", Paginas.parent_id AS "Paginas__parent_id", Paginas.tipo_pagina_id AS "Paginas__tipo_pagina_id", Paginas.sigla AS "Paginas__sigla", Paginas.titulo AS "Paginas__titulo", Paginas.url AS "Paginas__url", Paginas.conteudo AS "Paginas__conteudo", Paginas.imagem AS "Paginas__imagem", Paginas.user_created_id AS "Paginas__user_created_id", Paginas.created AS "Paginas__created", Paginas.user_modified_id AS "Paginas__user_modified_id", Paginas.modified AS "Paginas__modified", Paginas.lft AS "Paginas__lft", Paginas.rght AS "Paginas__rght", Paginas.publicado AS "Paginas__publicado", Paginas.user_publicado_id AS "Paginas__user_publicado_id", Paginas.data_publicado AS "Paginas__data_publicado", Paginas.user_deleted_id AS "Paginas__user_deleted_id", Paginas.deleted AS "Paginas__deleted", Paginas.unidade_fisica_id AS "Paginas__unidade_fisica_id", Paginas.pagina_rapida AS "Paginas__pagina_rapida", Paginas.paginas_obrigatoria_id AS "Paginas__paginas_obrigatoria_id" FROM paginas Paginas', 'params' => [], 'defaultTypes' => [ 'Paginas__id' => 'integer', 'Paginas.id' => 'integer', 'id' => 'integer', 'Paginas__parent_id' => 'integer', 'Paginas.parent_id' => 'integer', 'parent_id' => 'integer', 'Paginas__tipo_pagina_id' => 'integer', 'Paginas.tipo_pagina_id' => 'integer', 'tipo_pagina_id' => 'integer', 'Paginas__sigla' => 'string', 'Paginas.sigla' => 'string', 'sigla' => 'string', 'Paginas__titulo' => 'string', 'Paginas.titulo' => 'string', 'titulo' => 'string', 'Paginas__url' => 'string', 'Paginas.url' => 'string', 'url' => 'string', 'Paginas__conteudo' => 'text', 'Paginas.conteudo' => 'text', 'conteudo' => 'text', 'Paginas__imagem' => 'string', 'Paginas.imagem' => 'string', 'imagem' => 'string', 'Paginas__user_created_id' => 'integer', 'Paginas.user_created_id' => 'integer', 'user_created_id' => 'integer', 'Paginas__created' => 'timestampfractional', 'Paginas.created' => 'timestampfractional', 'created' => 'timestampfractional', 'Paginas__user_modified_id' => 'integer', 'Paginas.user_modified_id' => 'integer', 'user_modified_id' => 'integer', 'Paginas__modified' => 'timestampfractional', 'Paginas.modified' => 'timestampfractional', 'modified' => 'timestampfractional', 'Paginas__lft' => 'integer', 'Paginas.lft' => 'integer', 'lft' => 'integer', 'Paginas__rght' => 'integer', 'Paginas.rght' => 'integer', 'rght' => 'integer', 'Paginas__publicado' => 'boolean', 'Paginas.publicado' => 'boolean', 'publicado' => 'boolean', 'Paginas__user_publicado_id' => 'integer', 'Paginas.user_publicado_id' => 'integer', 'user_publicado_id' => 'integer', 'Paginas__data_publicado' => 'timestampfractional', 'Paginas.data_publicado' => 'timestampfractional', 'data_publicado' => 'timestampfractional', 'Paginas__user_deleted_id' => 'integer', 'Paginas.user_deleted_id' => 'integer', 'user_deleted_id' => 'integer', 'Paginas__deleted' => 'timestampfractional', 'Paginas.deleted' => 'timestampfractional', 'deleted' => 'timestampfractional', 'Paginas__unidade_fisica_id' => 'integer', 'Paginas.unidade_fisica_id' => 'integer', 'unidade_fisica_id' => 'integer', 'Paginas__pagina_rapida' => 'boolean', 'Paginas.pagina_rapida' => 'boolean', 'pagina_rapida' => 'boolean', 'Paginas__paginas_obrigatoria_id' => 'integer', 'Paginas.paginas_obrigatoria_id' => 'integer', 'paginas_obrigatoria_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => null ], 'repository' => object(App\Model\Table\PaginasTable) {} }, (int) 1 => [ 'for' => null ] ]
return $this->{$finder}($query, $options); |
|
} |
|
|
|
if ($this->_behaviors->hasFinder($type)) { |
|
return $this->_behaviors->callFinder($type, [$query, $options]); |
|
} |
|
|
|
throw new BadMethodCallException(sprintf( |
|
'Unknown finder method "%s" on %s.', |
'children' [ (int) 0 => object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Paginas.id AS "Paginas__id", Paginas.parent_id AS "Paginas__parent_id", Paginas.tipo_pagina_id AS "Paginas__tipo_pagina_id", Paginas.sigla AS "Paginas__sigla", Paginas.titulo AS "Paginas__titulo", Paginas.url AS "Paginas__url", Paginas.conteudo AS "Paginas__conteudo", Paginas.imagem AS "Paginas__imagem", Paginas.user_created_id AS "Paginas__user_created_id", Paginas.created AS "Paginas__created", Paginas.user_modified_id AS "Paginas__user_modified_id", Paginas.modified AS "Paginas__modified", Paginas.lft AS "Paginas__lft", Paginas.rght AS "Paginas__rght", Paginas.publicado AS "Paginas__publicado", Paginas.user_publicado_id AS "Paginas__user_publicado_id", Paginas.data_publicado AS "Paginas__data_publicado", Paginas.user_deleted_id AS "Paginas__user_deleted_id", Paginas.deleted AS "Paginas__deleted", Paginas.unidade_fisica_id AS "Paginas__unidade_fisica_id", Paginas.pagina_rapida AS "Paginas__pagina_rapida", Paginas.paginas_obrigatoria_id AS "Paginas__paginas_obrigatoria_id" FROM paginas Paginas', 'params' => [], 'defaultTypes' => [ 'Paginas__id' => 'integer', 'Paginas.id' => 'integer', 'id' => 'integer', 'Paginas__parent_id' => 'integer', 'Paginas.parent_id' => 'integer', 'parent_id' => 'integer', 'Paginas__tipo_pagina_id' => 'integer', 'Paginas.tipo_pagina_id' => 'integer', 'tipo_pagina_id' => 'integer', 'Paginas__sigla' => 'string', 'Paginas.sigla' => 'string', 'sigla' => 'string', 'Paginas__titulo' => 'string', 'Paginas.titulo' => 'string', 'titulo' => 'string', 'Paginas__url' => 'string', 'Paginas.url' => 'string', 'url' => 'string', 'Paginas__conteudo' => 'text', 'Paginas.conteudo' => 'text', 'conteudo' => 'text', 'Paginas__imagem' => 'string', 'Paginas.imagem' => 'string', 'imagem' => 'string', 'Paginas__user_created_id' => 'integer', 'Paginas.user_created_id' => 'integer', 'user_created_id' => 'integer', 'Paginas__created' => 'timestampfractional', 'Paginas.created' => 'timestampfractional', 'created' => 'timestampfractional', 'Paginas__user_modified_id' => 'integer', 'Paginas.user_modified_id' => 'integer', 'user_modified_id' => 'integer', 'Paginas__modified' => 'timestampfractional', 'Paginas.modified' => 'timestampfractional', 'modified' => 'timestampfractional', 'Paginas__lft' => 'integer', 'Paginas.lft' => 'integer', 'lft' => 'integer', 'Paginas__rght' => 'integer', 'Paginas.rght' => 'integer', 'rght' => 'integer', 'Paginas__publicado' => 'boolean', 'Paginas.publicado' => 'boolean', 'publicado' => 'boolean', 'Paginas__user_publicado_id' => 'integer', 'Paginas.user_publicado_id' => 'integer', 'user_publicado_id' => 'integer', 'Paginas__data_publicado' => 'timestampfractional', 'Paginas.data_publicado' => 'timestampfractional', 'data_publicado' => 'timestampfractional', 'Paginas__user_deleted_id' => 'integer', 'Paginas.user_deleted_id' => 'integer', 'user_deleted_id' => 'integer', 'Paginas__deleted' => 'timestampfractional', 'Paginas.deleted' => 'timestampfractional', 'deleted' => 'timestampfractional', 'Paginas__unidade_fisica_id' => 'integer', 'Paginas.unidade_fisica_id' => 'integer', 'unidade_fisica_id' => 'integer', 'Paginas__pagina_rapida' => 'boolean', 'Paginas.pagina_rapida' => 'boolean', 'pagina_rapida' => 'boolean', 'Paginas__paginas_obrigatoria_id' => 'integer', 'Paginas.paginas_obrigatoria_id' => 'integer', 'paginas_obrigatoria_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => null ], 'repository' => object(App\Model\Table\PaginasTable) {} }, (int) 1 => [ 'for' => null ] ]
{ |
|
$query = $this->query(); |
|
$query->select(); |
|
|
|
return $this->callFinder($type, $query, $options); |
|
} |
|
|
|
/** |
|
* Returns the query as passed. |
'children' object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT Paginas.id AS "Paginas__id", Paginas.parent_id AS "Paginas__parent_id", Paginas.tipo_pagina_id AS "Paginas__tipo_pagina_id", Paginas.sigla AS "Paginas__sigla", Paginas.titulo AS "Paginas__titulo", Paginas.url AS "Paginas__url", Paginas.conteudo AS "Paginas__conteudo", Paginas.imagem AS "Paginas__imagem", Paginas.user_created_id AS "Paginas__user_created_id", Paginas.created AS "Paginas__created", Paginas.user_modified_id AS "Paginas__user_modified_id", Paginas.modified AS "Paginas__modified", Paginas.lft AS "Paginas__lft", Paginas.rght AS "Paginas__rght", Paginas.publicado AS "Paginas__publicado", Paginas.user_publicado_id AS "Paginas__user_publicado_id", Paginas.data_publicado AS "Paginas__data_publicado", Paginas.user_deleted_id AS "Paginas__user_deleted_id", Paginas.deleted AS "Paginas__deleted", Paginas.unidade_fisica_id AS "Paginas__unidade_fisica_id", Paginas.pagina_rapida AS "Paginas__pagina_rapida", Paginas.paginas_obrigatoria_id AS "Paginas__paginas_obrigatoria_id" FROM paginas Paginas', 'params' => [], 'defaultTypes' => [ 'Paginas__id' => 'integer', 'Paginas.id' => 'integer', 'id' => 'integer', 'Paginas__parent_id' => 'integer', 'Paginas.parent_id' => 'integer', 'parent_id' => 'integer', 'Paginas__tipo_pagina_id' => 'integer', 'Paginas.tipo_pagina_id' => 'integer', 'tipo_pagina_id' => 'integer', 'Paginas__sigla' => 'string', 'Paginas.sigla' => 'string', 'sigla' => 'string', 'Paginas__titulo' => 'string', 'Paginas.titulo' => 'string', 'titulo' => 'string', 'Paginas__url' => 'string', 'Paginas.url' => 'string', 'url' => 'string', 'Paginas__conteudo' => 'text', 'Paginas.conteudo' => 'text', 'conteudo' => 'text', 'Paginas__imagem' => 'string', 'Paginas.imagem' => 'string', 'imagem' => 'string', 'Paginas__user_created_id' => 'integer', 'Paginas.user_created_id' => 'integer', 'user_created_id' => 'integer', 'Paginas__created' => 'timestampfractional', 'Paginas.created' => 'timestampfractional', 'created' => 'timestampfractional', 'Paginas__user_modified_id' => 'integer', 'Paginas.user_modified_id' => 'integer', 'user_modified_id' => 'integer', 'Paginas__modified' => 'timestampfractional', 'Paginas.modified' => 'timestampfractional', 'modified' => 'timestampfractional', 'Paginas__lft' => 'integer', 'Paginas.lft' => 'integer', 'lft' => 'integer', 'Paginas__rght' => 'integer', 'Paginas.rght' => 'integer', 'rght' => 'integer', 'Paginas__publicado' => 'boolean', 'Paginas.publicado' => 'boolean', 'publicado' => 'boolean', 'Paginas__user_publicado_id' => 'integer', 'Paginas.user_publicado_id' => 'integer', 'user_publicado_id' => 'integer', 'Paginas__data_publicado' => 'timestampfractional', 'Paginas.data_publicado' => 'timestampfractional', 'data_publicado' => 'timestampfractional', 'Paginas__user_deleted_id' => 'integer', 'Paginas.user_deleted_id' => 'integer', 'user_deleted_id' => 'integer', 'Paginas__deleted' => 'timestampfractional', 'Paginas.deleted' => 'timestampfractional', 'deleted' => 'timestampfractional', 'Paginas__unidade_fisica_id' => 'integer', 'Paginas.unidade_fisica_id' => 'integer', 'unidade_fisica_id' => 'integer', 'Paginas__pagina_rapida' => 'boolean', 'Paginas.pagina_rapida' => 'boolean', 'pagina_rapida' => 'boolean', 'Paginas__paginas_obrigatoria_id' => 'integer', 'Paginas.paginas_obrigatoria_id' => 'integer', 'paginas_obrigatoria_id' => 'integer' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'for' => null ], 'repository' => object(App\Model\Table\PaginasTable) { 'registryAlias' => 'Paginas', 'table' => 'paginas', 'alias' => 'Paginas', 'entityClass' => 'App\Model\Entity\Pagina', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } } [ 'for' => null ]
|
|
$pai = $this->Paginas->find('all')->where(['user_deleted_id IS NULL','parent_id IS NULL','tipo_pagina_id'=>$tipo,'url'=>$url])->first(); |
|
|
|
|
|
$filhos=$this->Paginas->find('children', ['for' => $pai['id']])->find('threaded')->where([ |
|
'Paginas.user_deleted_id IS NULL','Paginas.publicado'=>true |
|
])->toArray(); |
|
|
|
$filhos = new Collection ($filhos); |
'children' [ 'for' => null ]
public function setAction(string $action, ...$args) |
|
{ |
|
$this->setRequest($this->request->withParam('action', $action)); |
|
|
|
return $this->$action(...$args); |
|
} |
|
|
|
/** |
|
* Instantiates the correct view class, hands it its data, and uses it to render the view output. |
(int) 30 [ 'template' => 'cepex', 'nome' => 'Centro de Pesquisa' ]
}else{ |
|
$tipo['template']='cepex'; |
|
$tipo['nome']='Centro de Pesquisa'; |
|
if(count($this->request->getParam('pass'))>1){ |
|
$this->setAction('subpagina',30,$tipo); |
|
}else{ |
|
$this->setAction('paginaPrincipal',$id,30,$tipo); |
|
} |
|
|
'subpagina' (int) 30 [ 'template' => 'cepex', 'nome' => 'Centro de Pesquisa' ]
* @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterface` instance. |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null && !$result instanceof ResponseInterface) { |
|
throw new UnexpectedValueException(sprintf( |
|
'Controller actions can only return ResponseInterface instance or null. ' |
|
. 'Got %s instead.', |
'conteudo' '5a4f354b54495840f1e1b99fdfd6a4b8' '8be45d359c8887b2e9e02abe059435a4'
} |
|
|
|
$action = $controller->getAction(); |
|
$args = array_values($controller->getRequest()->getParam('pass')); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
object(Closure) { } [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ]
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
object(App\Controller\PaginasController) { paginate => [] 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] ] } Paginas => object(App\Model\Table\PaginasTable) { 'registryAlias' => 'Paginas', 'table' => 'paginas', 'alias' => 'Paginas', 'entityClass' => 'App\Model\Entity\Pagina', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [protected] name => 'Paginas' [protected] 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] base => '' [protected] webroot => '/' [protected] trustedProxies => [[maximum depth reached]] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) {} [protected] uri => object(Laminas\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 [protected] mergeFilesAsObjects => true } [protected] 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' => '' } [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\PaginasController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [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] modelClass => 'Paginas' [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [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' ], '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 ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 => [ 'csrfToken' => 'df5ba82ea41e70042d45eb4608afb4146c8300e68972149fd7caa7893615e0b58ed19174e7f01913e9d324ace6df4fed9527cee82aa031ef72f6e55a3438dc85' ] [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 [protected] mergeFilesAsObjects => true }
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [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' ], '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 ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 => [ 'csrfToken' => 'df5ba82ea41e70042d45eb4608afb4146c8300e68972149fd7caa7893615e0b58ed19174e7f01913e9d324ace6df4fed9527cee82aa031ef72f6e55a3438dc85' ] [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 [protected] mergeFilesAsObjects => true }
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->_createToken(); |
|
$request = $request->withAttribute('csrfToken', $token); |
|
/** @var mixed $response */ |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [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' ], '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 ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 => [ 'csrfToken' => 'df5ba82ea41e70042d45eb4608afb4146c8300e68972149fd7caa7893615e0b58ed19174e7f01913e9d324ace6df4fed9527cee82aa031ef72f6e55a3438dc85' ] [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 [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] base => '' [protected] webroot => '/' [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' ], '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 ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 => [ 'csrfToken' => 'df5ba82ea41e70042d45eb4608afb4146c8300e68972149fd7caa7893615e0b58ed19174e7f01913e9d324ace6df4fed9527cee82aa031ef72f6e55a3438dc85' ] [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 [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 1 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) {} [protected] fallbackHandler => object(App\Application) {} } }
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a response. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true }
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
|
|
|
return $runner->run($middleware, $request, $handler); |
|
} |
|
} |
|
|
object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 1 [protected] queue => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 3 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/var/www/html/portal-cake/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'pass' => [ (int) 0 => 'conteudo', (int) 1 => '5a4f354b54495840f1e1b99fdfd6a4b8', (int) 2 => '8be45d359c8887b2e9e02abe059435a4' ], 'controller' => 'Paginas', 'action' => 'cepex', 'plugin' => null, '_matchedRoute' => '/cepex/*', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 3 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/var/www/html/portal-cake/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->handle($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 => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($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 => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 3 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/var/www/html/portal-cake/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
try { |
|
return $handler->handle($request); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $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 => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true }
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($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 => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true } object(Cake\Http\Runner) { [protected] queue => object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 3 [protected] queue => [ [maximum depth reached] ] } [protected] fallbackHandler => object(App\Application) { [protected] configDir => '/var/www/html/portal-cake/config/' [protected] plugins => object(Cake\Core\PluginCollection) {} [protected] controllerFactory => object(Cake\Controller\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => 'Cake\Event\Event' } }
$this->queue = $queue; |
|
$this->queue->rewind(); |
|
$this->fallbackHandler = $fallbackHandler; |
|
|
|
return $this->handle($request); |
|
} |
|
|
|
/** |
|
* Handle incoming server request and return a 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 => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true }
} |
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
|
|
$response = $this->runner->run($middleware, $request, $this->app); |
|
|
|
if ($request instanceof ServerRequest) { |
|
$request->getSession()->close(); |
|
} |
object(Cake\Http\MiddlewareQueue) { [protected] position => (int) 3 [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {} ] } 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 => [ 'REDIRECT_STATUS' => '200', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://www.uems.br/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'HTTP_HOST' => 'www.uems.br', 'HTTP_X_FORWARDED_FOR' => '3.239.149.56', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.38 (Debian) Server at www.uems.br Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.38 (Debian)', 'SERVER_NAME' => 'www.uems.br', 'SERVER_ADDR' => '172.16.1.102', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '200.181.121.157', 'DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/portal-cake/webroot', 'SERVER_ADMIN' => 'desenvolvimento@uems.br', 'SCRIPT_FILENAME' => '/var/www/html/portal-cake/webroot/index.php', 'REMOTE_PORT' => '49668', 'REDIRECT_URL' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711727766.396, 'REQUEST_TIME' => (int) 1711727766, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] base => '' [protected] webroot => '/' [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' ], '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(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'www.uems.br' [private] port => null [private] path => '/cepex/conteudo/5a4f354b54495840f1e1b99fdfd6a4b8/8be45d359c8887b2e9e02abe059435a4' [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 [protected] mergeFilesAsObjects => true } object(App\Application) { [protected] configDir => '/var/www/html/portal-cake/config/' [protected] plugins => object(Cake\Core\PluginCollection) { [protected] plugins => [[maximum depth reached]] [protected] names => [[maximum depth reached]] [protected] positions => [[maximum depth reached]] [protected] loopDepth => (int) -1 } [protected] controllerFactory => object(Cake\Controller\ControllerFactory) { } [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [[maximum depth reached]], '_isGlobal' => true, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' }
// 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 templates/Error/error500.php