throw new RuntimeException('Unable to locate an object compatible with paginate.'); |
|
} |
|
$settings += $this->paginate; |
|
|
|
return $this->Paginator->paginate($table, $settings); |
|
} |
|
|
|
/** |
|
* Method to check that an action is accessible from a URL. |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT PressRelease.id AS `PressRelease__id`, PressRelease.title AS `PressRelease__title`, PressRelease.press_release_date AS `PressRelease__press_release_date`, PressRelease.press_release_upload AS `PressRelease__press_release_upload` FROM press_release PressRelease INNER JOIN content_accesses ON content_accesses.content_id = PressRelease.id AND content_accesses.module_id = 33 AND content_accesses.website_id =1 WHERE (PressRelease.status = :c0 AND PressRelease.language = :c1 AND DATE(PressRelease.press_release_date) >= :c2 AND DATE(PressRelease.press_release_date) <= :c3) ORDER BY PressRelease.press_release_date desc LIMIT 10 OFFSET 120', 'params' => [ ':c0' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c0' ], ':c1' => [ 'value' => 'hi', 'type' => 'string', 'placeholder' => 'c1' ], ':c2' => [ 'value' => '2023-01-01 00:00:00', 'type' => null, 'placeholder' => 'c2' ], ':c3' => [ 'value' => '2024-03-28 00:00:00', 'type' => null, 'placeholder' => 'c3' ] ], 'defaultTypes' => [ 'PressRelease__id' => 'integer', 'PressRelease.id' => 'integer', 'id' => 'integer', 'PressRelease__title' => 'string', 'PressRelease.title' => 'string', 'title' => 'string', 'PressRelease__language' => 'string', 'PressRelease.language' => 'string', 'language' => 'string', 'PressRelease__body' => 'text', 'PressRelease.body' => 'text', 'body' => 'text', 'PressRelease__press_release_date' => 'timestamp', 'PressRelease.press_release_date' => 'timestamp', 'press_release_date' => 'timestamp', 'PressRelease__file_title' => 'string', 'PressRelease.file_title' => 'string', 'file_title' => 'string', 'PressRelease__press_release_upload' => 'string', 'PressRelease.press_release_upload' => 'string', 'press_release_upload' => 'string', 'PressRelease__show_in_whats_new' => 'boolean', 'PressRelease.show_in_whats_new' => 'boolean', 'show_in_whats_new' => 'boolean', 'PressRelease__meta_tags' => 'text', 'PressRelease.meta_tags' => 'text', 'meta_tags' => 'text', 'PressRelease__status' => 'boolean', 'PressRelease.status' => 'boolean', 'status' => 'boolean', 'PressRelease__created_by' => 'integer', 'PressRelease.created_by' => 'integer', 'created_by' => 'integer', 'PressRelease__created' => 'datetime', 'PressRelease.created' => 'datetime', 'created' => 'datetime', 'PressRelease__updated_by' => 'integer', 'PressRelease.updated_by' => 'integer', 'updated_by' => 'integer', 'PressRelease__modified' => 'datetime', 'PressRelease.modified' => 'datetime', 'modified' => 'datetime' ], 'decorators' => (int) 0, 'executed' => true, 'hydrate' => false, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'scope' => null, 'sort' => 'asc', 'whitelist' => [ (int) 0 => 'limit', (int) 1 => 'sort', (int) 2 => 'page', (int) 3 => 'direction' ] ], 'repository' => object(App\Model\Table\PressReleaseTable) { 'registryAlias' => 'PressRelease', 'table' => 'press_release', 'alias' => 'PressRelease', 'entityClass' => 'App\Model\Entity\PressRelease', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } } [ 'limit' => (int) 10, 'order' => [ 'PressRelease.press_release_date' => 'desc' ] ]
->select(['id','title','press_release_date','press_release_upload']) |
|
->where($whereCondition) |
|
->hydrate(false); |
|
|
|
$pressRelease = $this->paginate($query); |
|
$pressRelease = $pressRelease->toArray(); |
|
$this->set(compact('pressRelease')); |
|
|
|
} |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT PressRelease.id AS `PressRelease__id`, PressRelease.title AS `PressRelease__title`, PressRelease.press_release_date AS `PressRelease__press_release_date`, PressRelease.press_release_upload AS `PressRelease__press_release_upload` FROM press_release PressRelease INNER JOIN content_accesses ON content_accesses.content_id = PressRelease.id AND content_accesses.module_id = 33 AND content_accesses.website_id =1 WHERE (PressRelease.status = :c0 AND PressRelease.language = :c1 AND DATE(PressRelease.press_release_date) >= :c2 AND DATE(PressRelease.press_release_date) <= :c3) ORDER BY PressRelease.press_release_date desc LIMIT 10 OFFSET 120', 'params' => [ ':c0' => [ 'value' => (int) 1, 'type' => 'boolean', 'placeholder' => 'c0' ], ':c1' => [ 'value' => 'hi', 'type' => 'string', 'placeholder' => 'c1' ], ':c2' => [ 'value' => '2023-01-01 00:00:00', 'type' => null, 'placeholder' => 'c2' ], ':c3' => [ 'value' => '2024-03-28 00:00:00', 'type' => null, 'placeholder' => 'c3' ] ], 'defaultTypes' => [ 'PressRelease__id' => 'integer', 'PressRelease.id' => 'integer', 'id' => 'integer', 'PressRelease__title' => 'string', 'PressRelease.title' => 'string', 'title' => 'string', 'PressRelease__language' => 'string', 'PressRelease.language' => 'string', 'language' => 'string', 'PressRelease__body' => 'text', 'PressRelease.body' => 'text', 'body' => 'text', 'PressRelease__press_release_date' => 'timestamp', 'PressRelease.press_release_date' => 'timestamp', 'press_release_date' => 'timestamp', 'PressRelease__file_title' => 'string', 'PressRelease.file_title' => 'string', 'file_title' => 'string', 'PressRelease__press_release_upload' => 'string', 'PressRelease.press_release_upload' => 'string', 'press_release_upload' => 'string', 'PressRelease__show_in_whats_new' => 'boolean', 'PressRelease.show_in_whats_new' => 'boolean', 'show_in_whats_new' => 'boolean', 'PressRelease__meta_tags' => 'text', 'PressRelease.meta_tags' => 'text', 'meta_tags' => 'text', 'PressRelease__status' => 'boolean', 'PressRelease.status' => 'boolean', 'status' => 'boolean', 'PressRelease__created_by' => 'integer', 'PressRelease.created_by' => 'integer', 'created_by' => 'integer', 'PressRelease__created' => 'datetime', 'PressRelease.created' => 'datetime', 'created' => 'datetime', 'PressRelease__updated_by' => 'integer', 'PressRelease.updated_by' => 'integer', 'updated_by' => 'integer', 'PressRelease__modified' => 'datetime', 'PressRelease.modified' => 'datetime', 'modified' => 'datetime' ], 'decorators' => (int) 0, 'executed' => true, 'hydrate' => false, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [ 'scope' => null, 'sort' => 'asc', 'whitelist' => [ (int) 0 => 'limit', (int) 1 => 'sort', (int) 2 => 'page', (int) 3 => 'direction' ] ], 'repository' => object(App\Model\Table\PressReleaseTable) { 'registryAlias' => 'PressRelease', 'table' => 'press_release', 'alias' => 'PressRelease', 'entityClass' => 'App\Model\Entity\PressRelease', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
} |
|
/* @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
$result = $callable(...array_values($request->getParam('pass'))); |
|
if ($result instanceof Response) { |
|
$this->response = $result; |
|
} |
|
|
No arguments
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if ($request->getParam('return')) { |
|
return $response; |
|
} |
|
|
object(App\Controller\PressReleaseController) { paginate => [ 'limit' => (int) 10, 'order' => [ 'PressRelease.press_release_date' => 'desc' ] ] languages => [ (int) 0 => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ], (int) 1 => [ 'id' => (int) 1, 'name' => 'English', 'culture' => 'en', 'is_default' => false, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] SilverForm => object(App\View\Helper\SilverFormHelper) { 'helpers' => [ [maximum depth reached] ], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } systemLanguageId => '1' systemLanguageCulture => 'en' web => [] current_website => null active_menu_parent_id => null helpers => [] request => object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ [maximum depth reached] ] [protected] data => [[maximum depth reached]] [protected] query => [ [maximum depth reached] ] [protected] cookies => [[maximum depth reached]] [protected] _environment => [ [maximum depth reached] ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [[maximum depth reached]] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Http\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ [maximum depth reached] ] } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } components => [] View => null passedArgs => [] modelClass => 'PressRelease' viewClass => null viewVars => [ 'active_menu_parent_id' => (int) 23859 ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Csrf => object(Cake\Controller\Component\CsrfComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Cookie => object(Cake\Controller\Component\CookieComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } General => object(App\Controller\Component\GeneralComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } Language => object(App\Controller\Component\LanguageComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } Email => object(App\Controller\Component\EmailComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [[maximum depth reached]] } Modules => object(App\Model\Table\ModulesTable) { 'registryAlias' => 'Modules', 'table' => 'modules', 'alias' => 'Modules', 'entityClass' => 'App\Model\Entity\Module', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Menu => object(App\Controller\Component\MenuComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } moduleId => (int) 33 websiteId => (int) 1 Menus => object(App\Model\Table\MenusTable) { 'registryAlias' => 'Menus', 'table' => 'menus', 'alias' => 'Menus', 'entityClass' => 'App\Model\Entity\Menu', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } currentUrl => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc' language => 'hi' PressRelease => object(App\Model\Table\PressReleaseTable) { 'registryAlias' => 'PressRelease', 'table' => 'press_release', 'alias' => 'PressRelease', 'entityClass' => 'App\Model\Entity\PressRelease', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } [protected] name => 'PressRelease' [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\PressReleaseController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] plugin => null [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
* @return \Psr\Http\Message\ResponseInterface |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
return $this->getDispatcher()->dispatch($request, $response); |
|
} |
|
|
|
/** |
|
* Get the ActionDispatcher. |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
* @return \Psr\Http\Message\ResponseInterface A response |
|
*/ |
|
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next) |
|
{ |
|
$response = $next($request, $response); |
|
foreach ($this->headers as $header => $value) { |
|
$response = $response->withHeader($header, $value); |
|
} |
|
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
I18n::setLocale($language);
|
|
}
|
|
}
|
|
|
|
$response = $next($request, $response);
|
|
|
|
return $response;
|
|
}
|
|
}
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null, 'languages' => [ (int) 0 => [ [maximum depth reached] ], (int) 1 => [ [maximum depth reached] ] ], 'languageLink' => [ 'hi' => 'https://cag.gov.in/hi/press-release?combine=&page=13&order=title&sort=asc', 'en' => 'https://cag.gov.in/en/press-release?combine=&page=13&order=title&sort=asc' ], 'currentLang' => [ 'id' => (int) 2, 'name' => 'हिन्दी', 'culture' => 'hi', 'is_default' => true, 'direction' => 'ltr', 'is_system' => true, 'status' => true ] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
|
|
|
return $runner->run($middleware, $request, $response); |
|
} |
|
} |
|
|
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(App\Middleware\LanguageRoutingMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] [protected] callables => [ (int) 0 => object(App\Middleware\LanguageRoutingMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'language' => 'hi', 'controller' => 'PressRelease', 'pass' => [], 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:language/:controller', '?' => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ], '_ext' => null ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $next($request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/ |
|
public function __invoke($request, $response, $next) |
|
{ |
|
try { |
|
return $next($request, $response); |
|
} catch (Throwable $exception) { |
|
return $this->handleException($exception, $request, $response); |
|
} catch (Exception $exception) { |
|
return $this->handleException($exception, $request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next) |
|
{ |
|
$this->service->loadPanels(); |
|
$this->service->initializePanels(); |
|
$response = $next($request, $response); |
|
$row = $this->service->saveData($request, $response); |
|
if (!$row) { |
|
return $response; |
|
} |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 6 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{ |
|
$this->middleware = $middleware; |
|
$this->index = 0; |
|
|
|
return $this->__invoke($request, $response); |
|
} |
|
|
|
/** |
|
* @param \Psr\Http\Message\ServerRequestInterface $request The server request |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
|
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(DebugKit\Middleware\DebugKitMiddleware) {}, (int) 1 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(Cake\Http\Middleware\SecurityHeadersMiddleware) {}, (int) 5 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(DebugKit\Middleware\DebugKitMiddleware) {}, (int) 1 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(Cake\Http\Middleware\SecurityHeadersMiddleware) {}, (int) 5 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [ 'combine' => '', 'page' => '13', 'order' => 'title', 'sort' => 'asc' ] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_forwarded' => '1', 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_forwarded' => '1', 'REDIRECT_UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'forwarded' => '1', 'UNIQUE_ID' => 'ZgVLwBsBwV5UWdMrhM2x5gAAAAM', 'HTTPS' => 'on', 'SSL_SERVER_S_DN_CN' => 'cag.gov.in', 'SSL_SERVER_I_DN_C' => 'US', 'SSL_SERVER_I_DN_ST' => 'Arizona', 'SSL_SERVER_I_DN_L' => 'Scottsdale', 'SSL_SERVER_I_DN_O' => 'GoDaddy.com, Inc.', 'SSL_SERVER_I_DN_OU' => 'http://certs.godaddy.com/repository/', 'SSL_SERVER_I_DN_CN' => 'Go Daddy Secure Certificate Authority - G2', 'SSL_SERVER_SAN_DNS_0' => 'cag.gov.in', 'SSL_SERVER_SAN_DNS_1' => 'www.cag.gov.in', 'SSL_VERSION_INTERFACE' => 'mod_ssl/2.4.6', 'SSL_VERSION_LIBRARY' => 'OpenSSL/1.0.2k-fips', 'SSL_PROTOCOL' => 'TLSv1.2', 'SSL_SECURE_RENEG' => 'true', 'SSL_COMPRESS_METHOD' => 'NULL', 'SSL_CIPHER' => 'ECDHE-RSA-AES256-GCM-SHA384', 'SSL_CIPHER_EXPORT' => 'false', 'SSL_CIPHER_USEKEYSIZE' => '256', 'SSL_CIPHER_ALGKEYSIZE' => '256', 'SSL_CLIENT_VERIFY' => 'NONE', 'SSL_SERVER_M_VERSION' => '3', 'SSL_SERVER_M_SERIAL' => '4EE4FEE05084CE18', 'SSL_SERVER_V_START' => 'Jan 7 12:09:34 2022 GMT', 'SSL_SERVER_V_END' => 'Jan 7 12:09:34 2023 GMT', 'SSL_SERVER_S_DN' => 'CN=cag.gov.in', 'SSL_SERVER_I_DN' => 'CN=Go Daddy Secure Certificate Authority - G2,OU=http://certs.godaddy.com/repository/,O=GoDaddy.com\, Inc.,L=Scottsdale,ST=Arizona,C=US', 'SSL_SERVER_A_KEY' => 'rsaEncryption', 'SSL_SERVER_A_SIG' => 'sha256WithRSAEncryption', 'SSL_SESSION_ID' => '7d921540f4892dbc0ddfb8bff5d10b2aed4a25d8ed3f4272505ce05445acc702', 'SSL_SESSION_RESUMED' => 'Initial', 'HTTP_X_FORWARDED_FOR' => '44.200.179.138', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://cag.gov.in/press-release?combine=&page=13&order=title&sort=asc', 'HTTP_HOST' => 'cag.gov.in', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'cag.gov.in', 'SERVER_ADDR' => '10.247.204.250', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '10.247.248.40', 'DOCUMENT_ROOT' => '/var/www/html', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/html', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/webroot/index.php', 'REMOTE_PORT' => '58136', 'REDIRECT_QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REDIRECT_URL' => '/webroot/hi/press-release', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'combine=&page=13&order=title&sort=asc', 'REQUEST_URI' => '/hi/press-release?combine=&page=13&order=title&sort=asc', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711623104.971, 'REQUEST_TIME' => (int) 1711623104, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'hi/press-release' [protected] base => '' [protected] webroot => '/' [protected] here => '/hi/press-release' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'cag.gov.in' [private] port => null [private] path => '/hi/press-release' [private] query => 'combine=&page=13&order=title&sort=asc' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
No arguments
If you want to customize this error message, create src/Template/Error/error400.ctp