Error in:
ROOT/src/ExternalApis/Franquia/FranquiaApi.php, line 98
APP/ExternalApis/Franquia/FranquiaApi.php at line 98
(edit)
|
$page++;
|
|
} while ($page <= 100);
|
|
}
|
|
|
|
public function getFranquia(int $id): FranquiaPadrao
|
|
{
|
|
$cacheKey = 'franquia_' . $id;
|
|
$dados = Cache::remember($cacheKey, function () use ($id) {
|
|
$response = $this->get('franquias/' . $id);
|
-
|
$maquinaSubTipos = $this->getTableLocator()->get('MaquinaSubTipos')->getLandingPageDestaques();
|
|
$empresa = $this->viewBuilder()->getVars()['empresa'] ?? null;
|
|
$empresaUrl = $this->viewBuilder()->getVars()['empresaUrl'] ?? null;
|
|
$franquiaApi = new FranquiaApi();
|
|
$franquia = $franquiaApi->getFranquia($empresa->id_padrao);
|
|
$empresa->fachada = $franquia->fachada;
|
|
$siteTitle = "Contato e Endereço - Apoio Locações " . str_replace(['Apoio ', 'apoio '], '', $franquia->nome_fantasia) . ", " . $empresa->estado->estado;
|
|
$metaDescription = "Entre em contato com a Apoio Locações " . str_replace(['Apoio ', 'apoio '], '', $franquia->nome_fantasia) . ". Veja nosso endereço, telefone e horário de atendimento. Estamos prontos para te atender!";
|
|
$schemaMarkup = $empresa ? $this->Empresa->buildLandingPageSchema($empresa, $empresaUrl) : '';
|
Toggle Arguments
-
|
* @return void
|
|
*/
|
|
public function invokeAction(Closure $action, array $args): void
|
|
{
|
|
$result = $action(...$args);
|
|
if ($result !== null) {
|
|
assert(
|
|
$result instanceof Response,
|
|
sprintf(
|
Toggle Arguments
-
|
$args = $this->getActionArgs(
|
|
$action,
|
|
array_values((array)$controller->getRequest()->getParam('pass'))
|
|
);
|
|
$controller->invokeAction($action, $args);
|
|
|
|
$result = $controller->shutdownProcess();
|
|
if ($result !== null) {
|
|
return $result;
|
Toggle Arguments
-
|
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this);
|
|
}
|
|
|
|
return $this->handle($controller->getRequest());
|
|
}
|
|
|
|
/**
|
|
* Invoke the action.
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
'csrfToken' => 'SVcUNsmcAXMDqIikAcbrfJx6+nzUyYw/bO4/c9LccMqGnVD5U8cNoEU7Z0100zwZ0pAgVqigR5yWgOnqnXgzFdFNkWQrtL9qqUKbGrevvQ8O3w1F5eVD+LGuZ5hrpjiYIFoFLxLkD3rg8UZuypYlrg==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
}
|
|
|
|
$controller = $this->controllerFactory->create($request);
|
|
|
|
return $this->controllerFactory->invoke($controller);
|
|
}
|
|
}
|
|
|
Toggle Arguments
object(App\Controller\EmpresaController) id:0 {
protected name => 'Empresa'
protected request => object(Cake\Http\ServerRequest) id:1 {
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 _detectors => [
'' => [maximum depth reached],
]
protected _detectorCache => [
'' => [maximum depth reached],
]
protected stream => object(Laminas\Diactoros\Stream) id:2 {
}
protected uri => object(Laminas\Diactoros\Uri) id:3 {
}
protected session => object(Cake\Http\Session) id:4 {
}
protected flash => object(Cake\Http\FlashMessage) id:5 {
}
protected attributes => [
'' => [maximum depth reached],
]
protected emulatedAttributes => [
'' => [maximum depth reached],
]
protected uploadedFiles => [
'' => [maximum depth reached],
]
protected protocol => null
protected requestTarget => null
}
protected response => object(Cake\Http\Response) id:6 {
'status' => (int) 200
'contentType' => 'text/html'
'headers' => [
'Content-Type' => [
'' => [maximum depth reached],
],
]
'file' => null
'fileRange' => [
]
'cookies' => object(Cake\Http\Cookie\CookieCollection) id:7 {
}
'cacheDirectives' => [
]
'body' => ''
}
protected paginate => [
]
protected autoRender => true
protected _components => object(Cake\Controller\ComponentRegistry) id:8 {
'_loaded' => [
(int) 0 => 'Authentication',
(int) 1 => 'Authorization',
(int) 2 => 'Flash',
]
'_Controller' => object(App\Controller\EmpresaController) id: 0 {}
'container' => object(Cake\Core\Container) id:9 {
}
'_eventManager' => object(Cake\Event\EventManager) id:10 {
}
'_eventClass' => 'Cake\Event\Event'
}
protected plugin => null
protected middlewares => [
]
protected viewClasses => [
]
protected _eventManager => object(Cake\Event\EventManager) id: 10 {}
protected _eventClass => 'Cake\Event\Event'
protected defaultTable => 'Empresa'
protected _tableLocator => object(Cake\ORM\Locator\TableLocator) id:11 {
protected locations => [
'' => [maximum depth reached],
]
protected _config => [
'' => [maximum depth reached],
]
protected instances => [
'' => [maximum depth reached],
]
protected _fallbacked => [
'' => [maximum depth reached],
]
protected fallbackClassName => 'Cake\ORM\Table'
protected allowFallbackClass => true
protected queryFactory => object(Cake\ORM\Query\QueryFactory) id:12 {
}
protected options => [
'' => [maximum depth reached],
]
}
protected _viewBuilder => object(Cake\View\ViewBuilder) id:13 {
protected _templatePath => null
protected _template => null
protected _plugin => null
protected _theme => null
protected _layout => 'site'
protected _autoLayout => true
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 $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
|
}
|
|
|
|
return new Response([
|
|
'body' => 'Middleware queue was exhausted without returning a response '
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
'csrfToken' => 'SVcUNsmcAXMDqIikAcbrfJx6+nzUyYw/bO4/c9LccMqGnVD5U8cNoEU7Z0100zwZ0pAgVqigR5yWgOnqnXgzFdFNkWQrtL9qqUKbGrevvQ8O3w1F5eVD+LGuZ5hrpjiYIFoFLxLkD3rg8UZuypYlrg==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
|
|
if ($method === 'GET' && $cookieData === null) {
|
|
$token = $this->createToken();
|
|
$request = $request->withAttribute('csrfToken', $this->saltToken($token));
|
|
$response = $handler->handle($request);
|
|
|
|
return $this->_addTokenCookie($token, $request, $response);
|
|
}
|
|
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
'csrfToken' => 'SVcUNsmcAXMDqIikAcbrfJx6+nzUyYw/bO4/c9LccMqGnVD5U8cNoEU7Z0100zwZ0pAgVqigR5yWgOnqnXgzFdFNkWQrtL9qqUKbGrevvQ8O3w1F5eVD+LGuZ5hrpjiYIFoFLxLkD3rg8UZuypYlrg==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
'csrfToken' => 'SVcUNsmcAXMDqIikAcbrfJx6+nzUyYw/bO4/c9LccMqGnVD5U8cNoEU7Z0100zwZ0pAgVqigR5yWgOnqnXgzFdFNkWQrtL9qqUKbGrevvQ8O3w1F5eVD+LGuZ5hrpjiYIFoFLxLkD3rg8UZuypYlrg==',
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
} catch (Exception $exception) {
|
|
return $this->handleException($exception, $request, $this->getConfig('unauthorizedHandler'));
|
|
}
|
|
|
|
return $handler->handle($request);
|
|
}
|
|
}
|
|
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
$request = $request->withAttribute($attribute, $identity);
|
|
}
|
|
|
|
try {
|
|
$response = $handler->handle($request);
|
|
|
|
if ($this->getConfig('requireAuthorizationCheck') && !$service->authorizationChecked()) {
|
|
throw new AuthorizationRequiredException(['url' => $request->getRequestTarget()]);
|
|
}
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
'authorization' => object(Authorization\AuthorizationService) id:10 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
$request = $request->withAttribute('authentication', $service);
|
|
$request = $request->withAttribute('authenticationResult', $result);
|
|
|
|
try {
|
|
$response = $handler->handle($request);
|
|
$authenticator = $service->getAuthenticationProvider();
|
|
|
|
if ($authenticator !== null && !$authenticator instanceof StatelessInterface && $result->getData()) {
|
|
$return = $service->persistIdentity($request, $response, $result->getData());
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:8 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
);
|
|
}
|
|
$matching = Router::getRouteCollection()->getMiddleware($middleware);
|
|
if (!$matching) {
|
|
return $handler->handle($request);
|
|
}
|
|
|
|
$container = $this->app instanceof ContainerApplicationInterface
|
|
? $this->app->getContainer()
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'controller' => 'Empresa',
'action' => 'landingPage',
'pass' => [
],
'plugin' => null,
'_matchedRoute' => '/{controller}/{action}/*',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
'route' => object(Cake\Routing\Route\DashedRoute) id:7 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
|
{
|
|
$url = $request->getUri()->getPath();
|
|
if (str_contains($url, '..') || !str_contains($url, '.')) {
|
|
return $handler->handle($request);
|
|
}
|
|
|
|
if (str_contains($url, '/.')) {
|
|
return $handler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
*/
|
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
|
{
|
|
try {
|
|
return $handler->handle($request);
|
|
} catch (RedirectException $exception) {
|
|
return $this->handleRedirect($exception);
|
|
} catch (Throwable $exception) {
|
|
return $this->handleException($exception, Router::getRequest() ?? $request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
-
|
class CorsMiddleware implements MiddlewareInterface
|
|
{
|
|
public function process(RequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
|
|
{
|
|
$response = $handler->handle($request);
|
|
if ($request->getMethod() === 'OPTIONS') {
|
|
$response = $response
|
|
->withAddedHeader('Access-Control-Allow-Origin', '*')
|
|
->withAddedHeader('Access-Control-Allow-Methods', '*')
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
if ($this->queue->valid()) {
|
|
$middleware = $this->queue->current();
|
|
$this->queue->next();
|
|
|
|
return $middleware->process($request, $this);
|
|
}
|
|
|
|
if ($this->fallbackHandler) {
|
|
return $this->fallbackHandler->handle($request);
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 8
protected queue => [
'' => [maximum depth reached],
]
protected container => object(Cake\Core\Container) id:2 {
}
}
protected fallbackHandler => object(App\Application) id:3 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:4 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:5 {
}
protected container => object(Cake\Core\Container) id: 2 {}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
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.
|
Toggle Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
-
|
}
|
|
|
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]);
|
|
|
|
$response = $this->runner->run($middleware, $request, $this->app);
|
|
|
|
if ($request instanceof ServerRequest) {
|
|
$request->getSession()->close();
|
|
}
|
Toggle Arguments
object(Cake\Http\MiddlewareQueue) id:0 {
protected position => (int) 8
protected queue => [
(int) 0 => object(App\Middleware\CorsMiddleware) id:1 {
},
(int) 1 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) id:2 {
},
(int) 2 => object(Cake\Routing\Middleware\AssetMiddleware) id:3 {
},
(int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) id:4 {
},
(int) 4 => object(Authentication\Middleware\AuthenticationMiddleware) id:5 {
},
(int) 5 => object(Authorization\Middleware\AuthorizationMiddleware) id:6 {
},
(int) 6 => object(Authorization\Middleware\RequestAuthorizationMiddleware) id:7 {
},
(int) 7 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) id:8 {
},
]
protected container => object(Cake\Core\Container) id:9 {
protected defaultToShared => false
protected definitions => object(League\Container\Definition\DefinitionAggregate) id:10 {
}
protected providers => object(League\Container\ServiceProvider\ServiceProviderAggregate) id:11 {
}
protected inflectors => object(League\Container\Inflector\InflectorAggregate) id:12 {
}
protected delegates => [
'' => [maximum depth reached],
]
}
}
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'HOSTNAME' => '2b67fb447b0e',
'PHP_INI_DIR' => '/usr/local/etc/php',
'HOME' => '/var/www',
'PHP_LDFLAGS' => '-Wl,-O1 -pie',
'PHP_CFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_VERSION' => '8.3.13',
'GPG_KEYS' => '1198C0117593497A5EC5C199286AF1F9897469DC C28D937575603EB4ABB725861C0779DC5C0A9DE4 AFD8691FDAEDF03BDF6E460563F15A9B715376CA',
'PHP_CPPFLAGS' => '-fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
'PHP_ASC_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz.asc',
'PHP_URL' => 'https://www.php.net/distributions/php-8.3.13.tar.xz',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
'PHPIZE_DEPS' => 'autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c',
'PWD' => '/var/www/html',
'PHP_SHA256' => '89adb978cca209124fe53fd6327bc4966ca21213a7fa2e9504f854e340873018',
'USER' => 'www-data',
'HTTP_CONNECTION' => 'Keep-Alive',
'HTTP_X_FORWARDED_SERVER' => 'iloc.app.br',
'HTTP_X_FORWARDED_HOST' => 'recife.iloc.app.br',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_CF_IPCOUNTRY' => 'BR',
'HTTP_CF_CONNECTING_IP' => '34.151.193.16',
'HTTP_CDN_LOOP' => 'cloudflare; loops=1',
'HTTP_CF_RAY' => 'a08c25157d89b321-GRU',
'HTTP_USER_AGENT' => 'GuzzleHttp/7',
'HTTP_X_FORWARDED_FOR' => '34.151.193.16, 104.23.254.55',
'HTTP_HOST' => 'recife.iloc.app.br',
'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'localhost',
'SERVER_PORT' => '80',
'SERVER_ADDR' => '172.26.0.6',
'REMOTE_PORT' => '52208',
'REMOTE_ADDR' => '172.26.0.1',
'SERVER_SOFTWARE' => 'nginx/1.23.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REQUEST_SCHEME' => 'http',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/var/www/html/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/empresa/landing-page',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1780966254.9724,
'REQUEST_TIME' => (int) 1780966254,
'argv' => [
],
'argc' => (int) 0,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTPS' => false,
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
]
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',
],
'https' => [
'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],
],
'exclude' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\Stream) id:3 {
protected resource => (resource (stream)) Resource id #172
protected stream => 'php://input'
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'http'
private userInfo => ''
private host => 'recife.iloc.app.br'
private port => null
private path => '/empresa/landing-page'
private query => ''
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => false
protected _lifetime => (int) 0
protected _isCLI => false
protected headerSentInfo => null
}
protected flash => object(Cake\Http\FlashMessage) id:6 {
protected _defaultConfig => [
'' => [maximum depth reached],
]
protected session => object(Cake\Http\Session) id: 5 {}
protected _config => [
'' => [maximum depth reached],
]
protected _configInitialized => true
}
protected attributes => [
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(App\Application) id:0 {
protected configDir => '/var/www/html/config/'
protected plugins => object(Cake\Core\PluginCollection) id:1 {
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) id:2 {
protected container => object(Cake\Core\Container) id:3 {
}
protected controller => object(App\Controller\EmpresaController) id:4 {
}
}
protected container => object(Cake\Core\Container) id: 3 {}
protected _eventManager => object(Cake\Event\EventManager) id:5 {
'_listeners' => [
'Gamification.afterSave' => '1 listener(s)',
'Gamification.beforeClose' => '1 listener(s)',
'NfseDelivery.afterSave' => '1 listener(s)',
'NfseDelivery.beforeClose' => '1 listener(s)',
]
'_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());
|
|
|
Toggle Arguments
-
If you want to customize this error message, create
templates/Error/error500.ctp