Error: SQLSTATE[HY000] [2002] Connection refused
$dsn, |
|
$config['username'], |
|
$config['password'], |
|
$config['flags'] |
|
); |
|
$this->setConnection($connection); |
|
|
|
return true; |
|
} |
'mysql:host=localhost;port=3306;dbname=247s_url1;charset=utf8mb4' '247s_url1' 'Oi-#v6j3m@J*' [ (int) 12 => false, (int) 1000 => true, (int) 3 => (int) 2 ]
} else { |
|
$dsn = "mysql:unix_socket={$config['unix_socket']};dbname={$config['database']}"; |
|
} |
|
|
|
$this->_connect($dsn, $config); |
|
|
|
if (!empty($config['init'])) { |
|
$connection = $this->getConnection(); |
|
foreach ((array)$config['init'] as $command) { |
'mysql:host=localhost;port=3306;dbname=247s_url1;charset=utf8mb4' [ 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'host' => 'localhost', 'username' => '247s_url1', 'password' => 'Oi-#v6j3m@J*', 'database' => '247s_url1', 'timezone' => '+0:00', 'flags' => [ (int) 12 => false, (int) 1000 => true, (int) 3 => (int) 2 ], 'cacheMetadata' => true, 'log' => false, 'quoteIdentifiers' => false, 'url' => null, 'name' => 'default', 'port' => '3306', 'encoding' => 'utf8mb4', 'init' => [ (int) 0 => 'SET time_zone = '+0:00'', (int) 1 => 'SET NAMES utf8mb4' ] ]
* @param \Cake\Database\Driver $driver The driver to use. |
|
*/ |
|
public function __construct(Driver $driver) |
|
{ |
|
$driver->connect(); |
|
$this->_driver = $driver; |
|
} |
|
|
|
/** |
No arguments
*/ |
|
public function schemaDialect() |
|
{ |
|
if (!$this->_schemaDialect) { |
|
$this->_schemaDialect = new MysqlSchema($this); |
|
} |
|
|
|
return $this->_schemaDialect; |
|
} |
object(Cake\Database\Driver\Mysql) { 'connected' => false }
*/ |
|
public function __construct(Connection $connection) |
|
{ |
|
$this->_connection = $connection; |
|
$this->_dialect = $connection->getDriver()->schemaDialect(); |
|
} |
|
|
|
/** |
|
* Get the list of tables available in the current connection. |
No arguments
* @param string|bool $cacheKey The cache key or boolean false to disable caching. |
|
*/ |
|
public function __construct(ConnectionInterface $connection, $cacheKey = true) |
|
{ |
|
parent::__construct($connection); |
|
$this->setCacheMetadata($cacheKey); |
|
} |
|
|
|
/** |
object(Cake\Database\Connection) { '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) { 'connected' => false }, 'transactionLevel' => (int) 0, 'transactionStarted' => false, 'useSavePoints' => false, 'logQueries' => false, 'logger' => null }
return $this->_schemaCollection; |
|
} |
|
|
|
if (!empty($this->_config['cacheMetadata'])) { |
|
return $this->_schemaCollection = new CachedCollection($this, $this->_config['cacheMetadata']); |
|
} |
|
|
|
return $this->_schemaCollection = new SchemaCollection($this); |
|
} |
object(Cake\Database\Connection) { '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) { 'connected' => false }, 'transactionLevel' => (int) 0, 'transactionStarted' => false, 'useSavePoints' => false, 'logQueries' => false, 'logger' => null } true
{ |
|
if ($this->_schema === null) { |
|
$this->_schema = $this->_initializeSchema( |
|
$this->getConnection() |
|
->getSchemaCollection() |
|
->describe($this->getTable()) |
|
); |
|
} |
|
|
No arguments
*/ |
|
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; |
|
} |
No arguments
parent::__construct($connection); |
|
$this->repository($table); |
|
|
|
if ($this->_repository) { |
|
$this->addDefaultTypes($this->_repository); |
|
} |
|
} |
|
|
|
/** |
object(App\Model\Table\LanguagesTable) { 'registryAlias' => 'Languages', 'table' => 'languages', 'alias' => 'Languages', 'entityClass' => 'App\Model\Entity\Language', 'associations' => [], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' }
* @return \Cake\ORM\Query |
|
*/ |
|
public function query() |
|
{ |
|
return new Query($this->getConnection(), $this); |
|
} |
|
|
|
/** |
|
* {@inheritDoc} |
object(Cake\Database\Connection) { '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) { 'connected' => false }, 'transactionLevel' => (int) 0, 'transactionStarted' => false, 'useSavePoints' => false, 'logQueries' => false, 'logger' => null } object(App\Model\Table\LanguagesTable) { 'registryAlias' => 'Languages', 'table' => 'languages', 'alias' => 'Languages', 'entityClass' => 'App\Model\Entity\Language', 'associations' => [], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' }
* @return \Cake\ORM\Query The query builder |
|
*/ |
|
public function find($type = 'all', $options = []) |
|
{ |
|
$query = $this->query(); |
|
$query->select(); |
|
|
|
return $this->callFinder($type, $query, $options); |
|
} |
No arguments
} |
|
|
|
$n = 7; //Hỗ trợ write n cấp danh mục |
|
$model_languages = TableRegistry::get('Languages'); |
|
$language = $model_languages->find()->where(['status'=>true, 'lang_default'=>true])->first(); |
|
$lang = $language->code; //ngôn ngữ mặc định |
|
//danh sách ngôn ngữ |
|
$languages = $model_languages->find('list', ['keyField'=>'code', 'valueField'=>'name'])->where(['status'=>true])->toArray(); |
|
|
No arguments
'extensions' => $this->_extensions, |
|
'namePrefix' => $namePrefix, |
|
'middleware' => $this->middleware, |
|
]); |
|
$callback($builder); |
|
} |
|
|
|
/** |
|
* Connect the `/:controller` and `/:controller/:action/*` fallback routes. |
object(Cake\Routing\RouteBuilder) { [protected] _resourceMap => [ 'index' => [ 'action' => 'index', 'method' => 'GET', 'path' => '' ], 'create' => [ 'action' => 'add', 'method' => 'POST', 'path' => '' ], 'view' => [ 'action' => 'view', 'method' => 'GET', 'path' => ':id' ], 'update' => [ 'action' => 'edit', 'method' => [ [maximum depth reached] ], 'path' => ':id' ], 'delete' => [ 'action' => 'delete', 'method' => 'DELETE', 'path' => ':id' ] ] [protected] _routeClass => 'Cake\Routing\Route\DashedRoute' [protected] _extensions => [] [protected] _path => '/' [protected] _params => [] [protected] _namePrefix => '' [protected] _collection => object(Cake\Routing\RouteCollection) { [protected] _routeTable => [ [maximum depth reached] ] [protected] _routes => [ [maximum depth reached] ] [protected] _named => [[maximum depth reached]] [protected] _paths => [ [maximum depth reached] ] [protected] _middleware => [ [maximum depth reached] ] [protected] _middlewareGroups => [[maximum depth reached]] [protected] _middlewarePaths => [[maximum depth reached]] [protected] _extensions => [[maximum depth reached]] } [protected] middleware => [ (int) 0 => 'csrf' ] }
$options = $params; |
|
unset($params['routeClass'], $params['extensions']); |
|
} |
|
$builder = static::createRouteBuilder('/', $options); |
|
$builder->scope($path, $params, $callback); |
|
} |
|
|
|
/** |
|
* Create prefixed routes. |
'/' object(Closure) { } null
* You can remove these routes once you've connected the |
|
* routes you want in your application. |
|
*/ |
|
$routes->fallbacks(DashedRoute::class); |
|
}); |
|
|
|
/** |
|
* If you need a different set of middleware or none at all, |
|
* open new scope and define routes there. |
'/' object(Closure) { }
if (!Router::$initialized) { |
|
// Prevent routes from being loaded again |
|
Router::$initialized = true; |
|
|
|
require $this->configDir . '/routes.php'; |
|
} |
|
} |
|
|
|
/** |
'/home/247sport.vn/public_html/config/routes.php'
*/ |
|
protected function prepareRouteCollection() |
|
{ |
|
$builder = Router::createRouteBuilder('/'); |
|
$this->app->routes($builder); |
|
if ($this->app instanceof PluginApplicationInterface) { |
|
$this->app->pluginRoutes($builder); |
|
} |
|
|
object(Cake\Routing\RouteBuilder) { [protected] _resourceMap => [ 'index' => [ 'action' => 'index', 'method' => 'GET', 'path' => '' ], 'create' => [ 'action' => 'add', 'method' => 'POST', 'path' => '' ], 'view' => [ 'action' => 'view', 'method' => 'GET', 'path' => ':id' ], 'update' => [ 'action' => 'edit', 'method' => [ [maximum depth reached] ], 'path' => ':id' ], 'delete' => [ 'action' => 'delete', 'method' => 'DELETE', 'path' => ':id' ] ] [protected] _routeClass => 'Cake\Routing\Route\Route' [protected] _extensions => [] [protected] _path => '/' [protected] _params => [] [protected] _namePrefix => '' [protected] _collection => object(Cake\Routing\RouteCollection) { [protected] _routeTable => [ [maximum depth reached] ] [protected] _routes => [ [maximum depth reached] ] [protected] _named => [[maximum depth reached]] [protected] _paths => [ [maximum depth reached] ] [protected] _middleware => [ [maximum depth reached] ] [protected] _middlewareGroups => [[maximum depth reached]] [protected] _middlewarePaths => [[maximum depth reached]] [protected] _extensions => [[maximum depth reached]] } [protected] middleware => [] }
protected function buildRouteCollection() |
|
{ |
|
if (Cache::enabled() && $this->cacheConfig !== null) { |
|
return Cache::remember(static::ROUTE_COLLECTION_CACHE_KEY, function () { |
|
return $this->prepareRouteCollection(); |
|
}, $this->cacheConfig); |
|
} |
|
|
|
return $this->prepareRouteCollection(); |
No arguments
$existing = self::read($key, $config); |
|
if ($existing !== false) { |
|
return $existing; |
|
} |
|
$results = call_user_func($callable); |
|
self::write($key, $results, $config); |
|
|
|
return $results; |
|
} |
object(Closure) { }
{ |
|
if (Cache::enabled() && $this->cacheConfig !== null) { |
|
return Cache::remember(static::ROUTE_COLLECTION_CACHE_KEY, function () { |
|
return $this->prepareRouteCollection(); |
|
}, $this->cacheConfig); |
|
} |
|
|
|
return $this->prepareRouteCollection(); |
|
} |
'routeCollection' object(Closure) { } '_cake_routes_'
if (!$this->app) { |
|
return; |
|
} |
|
|
|
$routeCollection = $this->buildRouteCollection(); |
|
Router::setRouteCollection($routeCollection); |
|
} |
|
|
|
/** |
No arguments
* @return \Psr\Http\Message\ResponseInterface A response. |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
$this->loadRoutes(); |
|
try { |
|
Router::setRequestContext($request); |
|
$params = (array)$request->getAttribute('params', []); |
|
$middleware = []; |
No arguments
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 3 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !file_exists($assetFile)) { |
|
return $next($request, $response); |
|
} |
|
|
|
$file = new File($assetFile); |
|
$modifiedTime = $file->lastChange(); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 3 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request, $response); |
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 3 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
|
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, br', 'HTTP_CONNECTION' => 'Keep-Alive', 'HTTP_HOST' => 'www.247sport.vn', 'HTTP_REFERER' => 'http://www.247sport.vn/about/c-52/Huong-dan-khach-hang.html', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_X_FORWARDED_FOR' => '3.88.211.227', 'HTTP_CF_RAY' => '86bedeb189b539a9-IAD', 'HTTP_X_FORWARDED_PROTO' => 'https', 'HTTP_CF_VISITOR' => '{"scheme":"https"}', 'HTTP_CF_CONNECTING_IP' => '3.88.211.227', 'HTTP_CDN_LOOP' => 'cloudflare', 'HTTP_CF_IPCOUNTRY' => 'US', 'DOCUMENT_ROOT' => '/home/247sport.vn/public_html', 'REMOTE_ADDR' => '172.70.39.187', 'REMOTE_PORT' => '13728', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'www.247sport.vn', 'SERVER_ADMIN' => '[email protected]', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/about/c-52/Huong-dan-khach-hang.html', 'REDIRECT_URL' => '/webroot/about/c-52/Huong-dan-khach-hang.html', 'HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/247sport.vn/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711704927.3751, 'REQUEST_TIME' => (int) 1711704927, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'about/c-52/Huong-dan-khach-hang.html' [protected] base => '' [protected] webroot => '/' [protected] here => '/about/c-52/Huong-dan-khach-hang.html' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.247sport.vn' [private] port => null [private] path => '/about/c-52/Huong-dan-khach-hang.html' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
No arguments
If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php.
If you want to customize this error message, create src/Template/Error/pdo_error.ctp