|
{ |
|
$entity = $this->first(); |
|
if (!$entity) { |
|
$table = $this->getRepository(); |
|
throw new RecordNotFoundException(sprintf( |
|
'Record not found in table "%s"', |
|
$table->getTable() |
|
)); |
|
} |
Arguments
|
->find('slugged', compact('slug')) |
|
->find('published') |
|
->order(['date_created' => 'DESC']) |
|
->contain(['Cover', 'MetaTags.Image']) |
|
->firstOrFail(); |
|
|
|
$this->set('news', $news); |
|
} |
|
|
|
* @throws \UnexpectedValueException If return value of action is not `null` or `ResponseInterface` instance. |
|
*/ |
|
public function invokeAction(Closure $action, array $args): void |
|
{ |
|
$result = $action(...$args); |
|
if ($result !== null && !$result instanceof ResponseInterface) { |
|
throw new UnexpectedValueException(sprintf( |
|
'Controller actions can only return ResponseInterface instance or null. ' |
|
. 'Got %s instead.', |
Arguments
'beginning-of-offline-lectures'
|
$args = $this->getActionArgs( |
|
$action, |
|
array_values((array)$controller->getRequest()->getParam('pass')) |
|
); |
|
$controller->invokeAction($action, $args); |
|
|
|
$result = $controller->shutdownProcess(); |
|
if ($result instanceof ResponseInterface) { |
|
return $result; |
Arguments
[
(int) 0 => 'beginning-of-offline-lectures',
]
|
|
|
return $runner->run($middlewareQueue, $controller->getRequest(), $this); |
|
} |
|
|
|
return $this->handle($controller->getRequest()); |
|
} |
|
|
|
/** |
|
* Invoke the action. |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
|
} |
|
|
|
$controller = $this->controllerFactory->create($request); |
|
|
|
return $this->controllerFactory->invoke($controller); |
|
} |
|
} |
|
|
Arguments
object(App\Controller\NewsController) id:0 {
paginate => [
'limit' => (int) 6,
]
RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) id:1 {
'components' => [
]
'implementedEvents' => [
'Controller.startup' => 'startup',
'Controller.beforeRender' => 'beforeRender',
]
'_config' => [
'checkHttpCache' => true,
'viewClassMap' => [
'' => [maximum depth reached],
],
]
}
Flash => object(Cake\Controller\Component\FlashComponent) id:2 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
'key' => 'flash',
'element' => 'default',
'plugin' => null,
'params' => [
'' => [maximum depth reached],
],
'clear' => false,
'duplicate' => true,
]
}
Authentication => object(TinyAuth\Controller\Component\AuthenticationComponent) id:3 {
'components' => [
]
'implementedEvents' => [
'Controller.initialize' => 'beforeFilter',
'Controller.startup' => 'startup',
]
'_config' => [
'logoutRedirect' => false,
'requireIdentity' => true,
'identityAttribute' => 'identity',
'identityCheckEvent' => 'Controller.startup',
'unauthenticatedMessage' => null,
'aliasColumn' => 'slug',
'allowLoggedIn' => true,
'allowNonPrefixed' => true,
'allowPrefixes' => [
'' => [maximum depth reached],
],
'authorizeByPrefix' => true,
'autoClearCache' => true,
'multiRole' => true,
'pivotTable' => 'roles_users',
'protectedPrefix' => [
'' => [maximum depth reached],
],
'usersTable' => 'users',
'rolesTable' => 'roles',
'allowAdapter' => 'TinyAuth\Auth\AllowAdapter\IniAllowAdapter',
'allowFilePath' => null,
'allowFile' => 'auth_allow.ini',
'aclAdapter' => 'TinyAuth\Auth\AclAdapter\IniAclAdapter',
'idColumn' => 'id',
'roleColumn' => 'role_id',
'userColumn' => 'user_id',
'superAdminRole' => null,
'superAdmin' => null,
'superAdminColumn' => null,
'aclFilePath' => null,
'aclFile' => 'auth_acl.ini',
'includeAuthentication' => false,
]
}
Authorization => object(TinyAuth\Controller\Component\AuthorizationComponent) id:4 {
'components' => [
]
'implementedEvents' => [
'Controller.startup' => 'authorizeAction',
]
'_config' => [
'identityAttribute' => 'identity',
'serviceAttribute' => 'authorization',
'authorizationEvent' => 'Controller.startup',
'skipAuthorization' => [
'' => [maximum depth reached],
],
'authorizeModel' => [
'' => [maximum depth reached],
],
'actionMap' => [
'' => [maximum depth reached],
],
'aliasColumn' => 'slug',
'allowLoggedIn' => true,
'allowNonPrefixed' => true,
'allowPrefixes' => [
'' => [maximum depth reached],
],
'authorizeByPrefix' => true,
'autoClearCache' => true,
'multiRole' => true,
'pivotTable' => 'roles_users',
'protectedPrefix' => [
'' => [maximum depth reached],
],
'usersTable' => 'users',
'rolesTable' => 'roles',
'allowAdapter' => 'TinyAuth\Auth\AllowAdapter\IniAllowAdapter',
'allowFilePath' => null,
'allowFile' => 'auth_allow.ini',
'aclAdapter' => 'TinyAuth\Auth\AclAdapter\IniAclAdapter',
'idColumn' => 'id',
'roleColumn' => 'role_id',
'userColumn' => 'user_id',
'superAdminRole' => null,
'superAdmin' => null,
'superAdminColumn' => null,
'aclFilePath' => null,
'aclFile' => 'auth_acl.ini',
'includeAuthentication' => false,
]
}
Paginator => object(Cake\Controller\Component\PaginatorComponent) id:5 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
'page' => (int) 1,
'limit' => (int) 20,
'maxLimit' => (int) 100,
'allowedParameters' => [
'' => [maximum depth reached],
],
]
}
SystemicPages => object(App\Controller\Component\SystemicPagesComponent) id:6 {
'components' => [
]
'implementedEvents' => [
]
'_config' => [
]
}
News => object(App\Model\Table\NewsTable) id:7 {
'registryAlias' => 'News'
'table' => 'news'
'alias' => 'News'
'entityClass' => 'App\Model\Entity\News'
'associations' => [
(int) 0 => 'Cover',
(int) 1 => 'MetaTags',
(int) 2 => 'News_title_translation',
(int) 3 => 'News_body_translation',
(int) 4 => 'I18n',
]
'behaviors' => [
(int) 0 => 'Meta',
(int) 1 => 'Slug',
(int) 2 => 'Published',
(int) 3 => 'Timestamp',
(int) 4 => 'Translate',
]
'defaultConnection' => 'default'
'connectionName' => 'default'
}
protected name => 'News'
protected request => object(Cake\Http\ServerRequest) id:8 {
trustProxy => false
protected params => [
'' => [maximum depth reached],
]
protected data => [
'' => [maximum depth reached],
]
protected query => [
'' => [maximum depth reached],
]
protected cookies => [
'' => [maximum depth reached],
]
protected _environment => [
'' => [maximum depth reached],
]
protected base => ''
protected webroot => '/'
protected trustedProxies => [
'' => [maximum depth reached],
]
protected _detectors => [
'' => [maximum depth reached],
]
protected _detectorCache => [
'' => [maximum depth reached],
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:9 {
}
protected uri => object(Laminas\Diactoros\Uri) id:10 {
}
protected session => object(Cake\Http\Session) id:11 {
}
protected flash => object(Cake\Http\FlashMessage) id:12 {
}
protected attributes => [
'' => [maximum depth reached],
]
protected emulatedAttributes => [
'' => [maximum depth reached],
]
protected uploadedFiles => [
'' => [maximum depth reached],
]
protected protocol => null
protected requestTarget => null
}
protected response => object(Cake\Http\Response) id:13 {
'status' => (int) 200
'contentType' => 'text/html'
'headers' => [
'Content-Type' => [
'' => [maximum depth reached],
],
]
'file' => null
'fileRange' => [
]
'cookies' => object(Cake\Http\Cookie\CookieCollection) id:14 {
}
'cacheDirectives' => [
]
'body' => ''
}
protected autoRender => true
protected _components => object(Cake\Controller\ComponentRegistry) id:15 {
'_Controller' => object(App\Controller\NewsController) id: 0 {}
'_loaded' => [
(int) 0 => 'RequestHandler',
(int) 1 => 'Flash',
(int) 2 => 'Authentication',
(int) 3 => 'Authorization',
(int) 4 => 'Paginator',
(int) 5 => 'SystemicPages',
]
'_eventManager' => object(Cake\Event\EventManager) id:16 {
}
'_eventClass' => 'Cake\Event\Event'
}
protected plugin => null
protected middlewares => [
]
protected _eventManager => object(Cake\Event\EventManager) id: 16 {}
protected _eventClass => 'Cake\Event\Event'
protected defaultTable => 'News'
protected _tableLocator => object(Cake\ORM\Locator\TableLocator) id:17 {
protected locations => [
'' => [maximum depth reached],
]
protected _config => [
'' => [maximum depth reached],
]
protected instances => [
'' => [maximum depth reached],
]
protected _fallbacked => [
'' => [maximum depth reached],
]
protected fallbackClassName => 'Cake\ORM\Table'
protected allowFallbackClass => true
protected options => [
'' => [maximum depth reached],
]
}
protected modelClass => 'News'
protected _modelFactories => [
'Table' => [
(int) 0 => object(Cake\ORM\Locator\TableLocator) id: 17 {},
(int) 1 => 'get',
],
]
protected _modelType => 'Table'
protected _viewBuilder => null
}
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
|
} |
|
|
|
$response = new Response([ |
|
'body' => 'Middleware queue was exhausted without returning a response ' |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
|
*/ |
|
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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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'
}
}
|
* @return \Psr\Http\Message\ResponseInterface A response. |
|
*/ |
|
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface |
|
{ |
|
$response = $handler->handle($request); |
|
|
|
if ($request->getSession()->check('Auth')) { |
|
$auth = $request->getSession()->read('Auth'); |
|
|
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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'
}
}
|
$request = $request->withAttribute($attribute, $identity); |
|
} |
|
|
|
try { |
|
$response = $handler->handle($request); |
|
|
|
if ($this->getConfig('requireAuthorizationCheck') && !$service->authorizationChecked()) { |
|
throw new AuthorizationRequiredException(['url' => $request->getRequestTarget()]); |
|
} |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
|
if ($this->queue->valid()) { |
|
$middleware = $this->queue->current(); |
|
$this->queue->next(); |
|
|
|
return $middleware->process($request, $this); |
|
} |
|
|
|
if ($this->fallbackHandler) { |
|
return $this->fallbackHandler->handle($request); |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null,
]
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 => [
'ajax' => false,
]
protected stream => object(Laminas\Diactoros\PhpInputStream) id:3 {
protected resource => (resource) Resource id #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'identity' => null,
'authentication' => object(Authentication\AuthenticationService) id:7 {
},
'authenticationResult' => object(Authentication\Authenticator\Result) id:8 {
},
'authorization' => object(Authorization\AuthorizationService) id:9 {
},
]
protected emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'flash',
(int) 2 => 'webroot',
(int) 3 => 'base',
(int) 4 => 'params',
(int) 5 => 'here',
]
protected uploadedFiles => [
]
protected protocol => null
protected requestTarget => null
}
object(Cake\Http\Runner) id:0 {
protected queue => object(Cake\Http\MiddlewareQueue) id:1 {
protected position => (int) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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'
}
}
|
$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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'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) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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 ($request->getCookieParams()) { |
|
$request = $this->decodeCookies($request); |
|
} |
|
|
|
$response = $handler->handle($request); |
|
if ($response->hasHeader('Set-Cookie')) { |
|
$response = $this->encodeSetCookieHeader($response); |
|
} |
|
if ($response instanceof Response) { |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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'
}
}
|
} |
|
|
|
Configure::write('App.language', $lang); |
|
|
|
return $handler->handle($request); |
|
} |
|
|
|
/** |
|
* Set closure for deciding whether or not to ignore particular request. |
Arguments
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
'lang' => 'en',
'slug' => 'beginning-of-offline-lectures',
'pass' => [
(int) 0 => 'beginning-of-offline-lectures',
],
'controller' => 'News',
'action' => 'newsView',
'plugin' => null,
'_name' => 'news_view',
'_matchedRoute' => '/{lang}/news/{slug}',
'_ext' => null,
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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 => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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 => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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) 9
protected queue => [
'' => [maximum depth reached],
]
}
protected fallbackHandler => object(App\Application) id:2 {
protected configDir => '/srv/www/bucheon.uz/app/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 => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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) 9
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(ADmad\I18n\Middleware\I18nMiddleware) id:4 {
},
(int) 4 => object(Cake\Http\Middleware\EncryptedCookieMiddleware) id:5 {
},
(int) 5 => object(Authentication\Middleware\AuthenticationMiddleware) id:6 {
},
(int) 6 => object(Authorization\Middleware\AuthorizationMiddleware) id:7 {
},
(int) 7 => object(App\Middleware\TrackingUserVisitMiddleware) id:8 {
},
(int) 8 => object(Cake\Http\Middleware\BodyParserMiddleware) id:9 {
},
]
}
object(Cake\Http\ServerRequest) id:0 {
trustProxy => false
protected params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => [
],
]
protected data => [
]
protected query => [
]
protected cookies => [
]
protected _environment => [
'USER' => 'nginx',
'HOME' => '/nonexistent',
'HTTP_HOST' => 'bucheon.uz',
'HTTP_USER_AGENT' => 'claudebot',
'HTTP_ACCEPT' => '*/*',
'REDIRECT_STATUS' => '200',
'SERVER_NAME' => 'bucheon.uz',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '159.253.21.137',
'REMOTE_PORT' => '45206',
'REMOTE_ADDR' => '44.222.212.138',
'SERVER_SOFTWARE' => 'nginx/1.17.8',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'HTTPS' => 'on',
'REQUEST_SCHEME' => 'https',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'DOCUMENT_ROOT' => '/srv/www/bucheon.uz/app/webroot',
'DOCUMENT_URI' => '/index.php',
'REQUEST_URI' => '/en/news/beginning-of-offline-lectures',
'SCRIPT_NAME' => '/index.php',
'CONTENT_LENGTH' => '',
'CONTENT_TYPE' => '',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'SCRIPT_FILENAME' => '/srv/www/bucheon.uz/app/webroot/index.php',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => (float) 1711629288.4282,
'REQUEST_TIME' => (int) 1711629288,
'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 #36
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 => 'bucheon.uz'
private port => null
private path => '/en/news/beginning-of-offline-lectures'
private query => ''
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 => '/srv/www/bucheon.uz/app/config/'
protected plugins => object(Cake\Core\PluginCollection) id:1 {
protected plugins => [
'' => [maximum depth reached],
]
protected names => [
'' => [maximum depth reached],
]
protected positions => [
'' => [maximum depth reached],
]
protected loopDepth => (int) -1
}
protected controllerFactory => object(Cake\Controller\ControllerFactory) id:2 {
protected container => object(Cake\Core\Container) id:3 {
}
protected controller => object(App\Controller\NewsController) id:4 {
}
}
protected container => object(Cake\Core\Container) id: 3 {}
protected _eventManager => object(Cake\Event\EventManager) id:5 {
'_listeners' => [
'Model.BillingMailing.created' => '1 listener(s)',
'Model.BillingMessage.created' => '1 listener(s)',
'Model.Change.created' => '1 listener(s)',
'Model.Contract.isCurrent' => '1 listener(s)',
'Model.StudentStatus.changeContract' => '1 listener(s)',
'Model.StudentStatus.createContract' => '1 listener(s)',
'Model.ContractOrder.action' => '1 listener(s)',
'Model.StudyYear.current' => '1 listener(s)',
'Model.AdmissionApplication.afterFilled' => '1 listener(s)',
'Model.AdmissionApplication.afterUploadReceipt' => '1 listener(s)',
'Model.AdmissionApplication.afterPaymented' => '1 listener(s)',
'Model.AdmissionApplication.afterConfirmatedForTest' => '1 listener(s)',
'Model.AdmissionApplication.afterConfirmatedForInterview' => '1 listener(s)',
'Model.VerificationCodes.afterSaveVerificationCode' => '1 listener(s)',
'Model.Transaction.created' => '1 listener(s)',
'Model.Transaction.modified' => '1 listener(s)',
'Model.Transaction.deleted' => '1 listener(s)',
'FileStorage.afterSave' => '3 listener(s)',
'FileStorage.path' => '2 listener(s)',
'FileStorage.afterDelete' => '2 listener(s)',
'ImageStorage.afterSave' => '2 listener(s)',
'ImageStorage.afterDelete' => '2 listener(s)',
'ImageVersion.removeVersion' => '2 listener(s)',
'ImageVersion.createVersion' => '2 listener(s)',
'ImageVersion.getVersions' => '2 listener(s)',
'FileStorage.ImageHelper.imagePath' => '2 listener(s)',
'FileStorage.getPath' => '2 listener(s)',
'FileStorage.afterStoreFile' => '1 listener(s)',
'FileStorage.afterDeleteFile' => '1 listener(s)',
'Controller.initialize' => '1 listener(s)',
]
'_isGlobal' => true
'_trackEvents' => false
'_generalManager' => '(object) EventManager'
'_dispatchedEvents' => null
}
protected _eventClass => 'Cake\Event\Event'
}
|
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
Could this be caused by using Auto-Tables?
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table"
instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
- The class for the specified table does not exist.
- The Table was created with a typo: $this->getTableLocator()->get('Articles');
- The class file has a typo in the name or incorrect namespace: class Articles extends Table
- The file containing the class has a typo or incorrect casing: Articles.php
- The Table was used using associations but the association has a typo: $this->belongsTo('Articles')
- The table class resides in a Plugin but no plugin notation was used in the association definition.
Please try correcting the issue for the following table aliases:
- I18n
- News_title_translation
- News_body_translation
- MetaTags_title_translation
- MetaTags_description_translation
- MetaTags_og_title_translation
- MetaTags_og_description_translation
If you want to customize this error message, create
templates/Error/error500.php