Connection to Mysql could not be established: SQLSTATE[HY000] [2002] No route to host
|
$retry = new CommandRetry(new ErrorCodeWaitStrategy(static::RETRY_ERROR_CODES, 5), 4); |
|
try { |
|
$retry->run($action); |
|
} catch (PDOException $e) { |
|
throw new MissingConnectionException( |
|
[ |
|
'driver' => App::shortName(static::class, 'Database/Driver'), |
|
'reason' => $e->getMessage(), |
|
], |
Arguments
|
if (!empty($config['encoding'])) { |
|
$dsn .= ";charset={$config['encoding']}"; |
|
} |
|
|
|
$this->_connect($dsn, $config); |
|
|
|
if (!empty($config['init'])) { |
|
$connection = $this->getConnection(); |
|
foreach ((array)$config['init'] as $command) { |
Arguments
'mysql:host=backup.uncommonsite.com;port=3306;dbname=projects_websiteaweek;charset=utf8mb4'
[
'driver' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'timezone' => '+0:00',
'flags' => [
(int) 12 => false,
(int) 1000 => true,
(int) 3 => (int) 2,
],
'cacheMetadata' => true,
'log' => false,
'quoteIdentifiers' => false,
'host' => 'backup.uncommonsite.com',
'username' => 'websiteaweek',
'password' => '10f4cdd7c112f5c9f68a0790dd2368a325626db8b3c59bde3ee30e46f3354234',
'database' => 'projects_websiteaweek',
'url' => null,
'name' => 'default',
'port' => '3306',
'encoding' => 'utf8mb4',
'init' => [
(int) 0 => 'SET time_zone = '+0:00'',
],
]
|
* @param \Cake\Database\DriverInterface $driver The driver to use. |
|
*/ |
|
public function __construct(DriverInterface $driver) |
|
{ |
|
$driver->connect(); |
|
$this->_driver = $driver; |
|
} |
|
|
|
/** |
|
*/ |
|
public function schemaDialect(): SchemaDialect |
|
{ |
|
if ($this->_schemaDialect === null) { |
|
$this->_schemaDialect = new MysqlSchemaDialect($this); |
|
} |
|
|
|
return $this->_schemaDialect; |
|
} |
Arguments
object(Cake\Database\Driver\Mysql) id:0 {
'connected' => false
}
|
*/ |
|
public function __construct(Connection $connection) |
|
{ |
|
$this->_connection = $connection; |
|
$this->_dialect = $connection->getDriver()->schemaDialect(); |
|
} |
|
|
|
/** |
|
* Get the list of tables, excluding any views, available in the current connection. |
|
} |
|
|
|
if (!empty($this->_config['cacheMetadata'])) { |
|
return $this->_schemaCollection = new CachedCollection( |
|
new SchemaCollection($this), |
|
empty($this->_config['cacheKeyPrefix']) ? $this->configName() : $this->_config['cacheKeyPrefix'], |
|
$this->getCacher() |
|
); |
|
} |
Arguments
object(Cake\Database\Connection) id:0 {
'config' => [
'password' => '*****',
'username' => '*****',
'host' => '*****',
'database' => '*****',
'driver' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'timezone' => 'UTC',
'flags' => [
],
'cacheMetadata' => true,
'log' => false,
'quoteIdentifiers' => false,
'url' => null,
'name' => 'default',
]
'driver' => object(Cake\Database\Driver\Mysql) id:1 {
'connected' => false
}
'transactionLevel' => (int) 0
'transactionStarted' => false
'useSavePoints' => false
'logQueries' => false
'logger' => null
}
|
{ |
|
if ($this->_schema === null) { |
|
$this->_schema = $this->_initializeSchema( |
|
$this->getConnection() |
|
->getSchemaCollection() |
|
->describe($this->getTable()) |
|
); |
|
if (Configure::read('debug')) { |
|
$this->checkAliasLengths(); |
|
*/ |
|
public function addDefaultTypes(Table $table) |
|
{ |
|
$alias = $table->getAlias(); |
|
$map = $table->getSchema()->typeMap(); |
|
$fields = []; |
|
foreach ($map as $f => $type) { |
|
$fields[$f] = $fields[$alias . '.' . $f] = $fields[$alias . '__' . $f] = $type; |
|
} |
|
parent::__construct($connection); |
|
$this->repository($table); |
|
|
|
if ($this->_repository !== null) { |
|
$this->addDefaultTypes($this->_repository); |
|
} |
|
} |
|
|
|
/** |
Arguments
object(App\Model\Table\DomainsTable) id:0 {
'registryAlias' => 'Domains'
'table' => 'domains'
'alias' => 'Domains'
'entityClass' => 'App\Model\Entity\Domain'
'associations' => [
(int) 0 => 'WebsiteTypes',
]
'behaviors' => [
(int) 0 => 'Timestamp',
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
|
* @return \Cake\ORM\Query |
|
*/ |
|
public function query(): Query |
|
{ |
|
return new Query($this->getConnection(), $this); |
|
} |
|
|
|
/** |
|
* Creates a new Query::subquery() instance for a table. |
Arguments
object(Cake\Database\Connection) id:0 {
'config' => [
'password' => '*****',
'username' => '*****',
'host' => '*****',
'database' => '*****',
'driver' => 'Cake\Database\Driver\Mysql',
'persistent' => false,
'timezone' => 'UTC',
'flags' => [
],
'cacheMetadata' => true,
'log' => false,
'quoteIdentifiers' => false,
'url' => null,
'name' => 'default',
]
'driver' => object(Cake\Database\Driver\Mysql) id:1 {
'connected' => false
}
'transactionLevel' => (int) 0
'transactionStarted' => false
'useSavePoints' => false
'logQueries' => false
'logger' => null
}
object(App\Model\Table\DomainsTable) id:0 {
'registryAlias' => 'Domains'
'table' => 'domains'
'alias' => 'Domains'
'entityClass' => 'App\Model\Entity\Domain'
'associations' => [
(int) 0 => 'WebsiteTypes',
]
'behaviors' => [
(int) 0 => 'Timestamp',
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
|
* @return \Cake\ORM\Query The query builder |
|
*/ |
|
public function find(string $type = 'all', array $options = []): Query |
|
{ |
|
return $this->callFinder($type, $this->query()->select(), $options); |
|
} |
|
|
|
/** |
|
* Returns the query as passed. |
|
if($this->request->getParam('prefix') !== 'Admin') $this->Authentication->allowUnauthenticated(['display','index','view']); |
|
if($this->request->getParam('prefix') == 'Admin' && !$this->request->is('ajax')) $this->viewBuilder()->setLayout('admin'); |
|
|
|
$domains = $this->loadModel('Domains'); |
|
$domain = $domains->find() |
|
->contain(['WebsiteTypes']) |
|
->where(['Domains.name'=> $this->request->getEnv('SERVER_NAME')]) |
|
->first(); |
|
//debug($domain);die; |
|
if ($components !== null) { |
|
$this->components($components); |
|
} |
|
|
|
$this->initialize(); |
|
|
|
if (isset($this->components)) { |
|
triggerWarning( |
|
'Support for loading components using $components property is removed. ' . |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
]
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->container->has($className)) { |
|
$this->container->add(ServerRequest::class, $request); |
|
$controller = $this->container->get($className); |
|
} else { |
|
$controller = $reflection->newInstance($request); |
|
} |
|
|
|
return $controller; |
|
} |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
]
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 (Router::getRequest() !== $request) { |
|
Router::setRequest($request); |
|
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
]
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
}
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
]
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
}
|
$request = $request->withAttribute('authentication', $service); |
|
$request = $request->withAttribute('authenticationResult', $result); |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
$authenticator = $service->getAuthenticationProvider(); |
|
|
|
if ($authenticator !== null && !$authenticator instanceof StatelessInterface) { |
|
$return = $service->persistIdentity($request, $response, $result->getData()); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
]
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
]
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) 6
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/websiteaweek.com/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
|
if ($method === 'GET' && $cookieData === null) { |
|
$token = $this->createToken(); |
|
$request = $request->withAttribute('csrfToken', $this->saltToken($token)); |
|
/** @var mixed $response */ |
|
$response = $handler->handle($request); |
|
|
|
return $this->_addTokenCookie($token, $request, $response); |
|
} |
|
|
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
]
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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 => [
'csrfToken' => 'CoYbJsup0s9ehNjDDeu46LDfKgIxSKjYyacJ5magvrzoUYzSNOCJbFuAf7/5s1vETzD13NiYJUyWW8yyj/K/eN46H1x9QiHHg+ZLY1R+n+74lzzXXpWN398ytbcE07FYauFJ3smEOvQsAcTp6aEWKg==',
]
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) 6
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/websiteaweek.com/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
|
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
if (!in_array($request->getMethod(), $this->methods, true)) { |
|
return $handler->handle($request); |
|
} |
|
[$type] = explode(';', $request->getHeaderLine('Content-Type')); |
|
$type = strtolower($type); |
|
if (!isset($this->parsers[$type])) { |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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) 6
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/websiteaweek.com/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
protected _eventManager => object(Cake\Event\EventManager) id:6 {
}
protected _eventClass => 'Cake\Event\Event'
}
}
|
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $handler->handle($request); |
|
} |
|
|
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'pass' => [
(int) 0 => 'home',
],
'controller' => 'Pages',
'action' => 'display',
'plugin' => null,
'_matchedRoute' => '/',
'?' => [
'q' => 'tech',
],
'_ext' => null,
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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) 6
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/websiteaweek.com/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
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 (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $handler->handle($request); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $handler->handle($request); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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) 6
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/websiteaweek.com/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
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, $request); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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) 6
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/var/www/websiteaweek.com/config/'
protected plugins => object(Cake\Core\PluginCollection) id:3 {
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:4 {
}
protected container => object(Cake\Core\Container) id:5 {
}
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. |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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(); |
|
} |
Arguments
object(Cake\Http\MiddlewareQueue) id:0 {
protected position => (int) 6
protected queue => [
(int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) id:1 {
},
(int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) id:2 {
},
(int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) id:3 {
},
(int) 3 => object(Cake\Http\Middleware\BodyParserMiddleware) id:4 {
},
(int) 4 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) id:5 {
},
(int) 5 => object(Authentication\Middleware\AuthenticationMiddleware) id:6 {
},
]
}
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
'q' => 'tech',
]
protected cookies => [
]
protected _environment => [
'USER' => 'www-data',
'HOME' => '/var/www',
'HTTP_CF_CONNECTING_IP' => '44.222.125.114',
'HTTP_REFERER' => 'http://bizweek.us/?q=tech',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'HTTP_CF_VISITOR' => '{"scheme":"https"}',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_CF_RAY' => '86c11046b9580831-IAD',
'HTTP_X_FORWARDED_FOR' => '44.222.125.114',
'HTTP_ACCEPT_ENCODING' => 'gzip, br',
'HTTP_CF_IPCOUNTRY' => 'US',
'HTTP_CDN_LOOP' => 'cloudflare',
'HTTP_HOST' => 'bizweek.us',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bizweek.us',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '158.51.98.189',
'REMOTE_USER' => '',
'REMOTE_PORT' => '25184',
'REMOTE_ADDR' => '172.70.38.93',
'SERVER_SOFTWARE' => 'nginx/1.24.0',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/2.0',
'DOCUMENT_ROOT' => '/var/www/websiteaweek.com/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/?q=tech',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => 'q=tech',
'SCRIPT_FILENAME' => '/var/www/websiteaweek.com/webroot/index.php',
'PATH_INFO' => '',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711727929.5524,
'REQUEST_TIME' => (int) 1711727929,
'ORIGINAL_REQUEST_METHOD' => 'GET',
]
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',
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
'' => [maximum depth reached],
],
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest',
],
'json' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'json',
],
'xml' => [
'accept' => [
'' => [maximum depth reached],
],
'param' => '_ext',
'value' => 'xml',
],
'mobile' => object(Closure) id:1 {
},
'tablet' => object(Closure) id:2 {
},
]
protected _detectorCache => [
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #5
protected stream => 'php://input'
private cache => ''
private reachedEof => false
}
protected uri => object(Laminas\Diactoros\Uri) id:4 {
base => ''
webroot => '/'
protected allowedSchemes => [
'' => [maximum depth reached],
]
private scheme => 'https'
private userInfo => ''
private host => 'bizweek.us'
private port => null
private path => '/'
private query => 'q=tech'
private fragment => ''
private uriString => null
}
protected session => object(Cake\Http\Session) id:5 {
protected _engine => null
protected _started => null
protected _lifetime => (int) 1440
protected _isCLI => false
}
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/websiteaweek.com/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 => null
}
protected container => object(Cake\Core\Container) id: 3 {}
protected _eventManager => object(Cake\Event\EventManager) id:4 {
'_listeners' => [
]
'_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()); |
|
|
If you want to customize this error message, create
templates/Error/missing_connection.php