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\CheckoutsController) {
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 => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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' => ''
}
paginate => []
components => []
View => null
passedArgs => [
(int) 0 => 'preloads.js'
]
modelClass => 'Checkouts'
viewClass => null
viewVars => [
'querycartstotal' => (int) 0,
'queryintegrations' => object(Cake\ORM\Query) {},
'currencyrate' => object(Cake\ORM\Query) {}
]
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]
]
}
currency => object(Cake\ORM\Table) {
'registryAlias' => 'currency',
'table' => 'currency',
'alias' => 'currency',
'entityClass' => 'Cake\ORM\Entity',
'associations' => [[maximum depth reached]],
'behaviors' => [[maximum depth reached]],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
integrations => object(Cake\ORM\Table) {
'registryAlias' => 'integrations',
'table' => 'integrations',
'alias' => 'integrations',
'entityClass' => 'Cake\ORM\Entity',
'associations' => [[maximum depth reached]],
'behaviors' => [[maximum depth reached]],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
carts => object(Cake\ORM\Table) {
'registryAlias' => 'carts',
'table' => 'carts',
'alias' => 'carts',
'entityClass' => 'Cake\ORM\Entity',
'associations' => [[maximum depth reached]],
'behaviors' => [[maximum depth reached]],
'defaultConnection' => 'default',
'connectionName' => 'default'
}
[protected] name => 'Checkouts'
[protected] _responseClass => 'Cake\Http\Response'
[protected] autoRender => true
[protected] _components => object(Cake\Controller\ComponentRegistry) {
'_Controller' => object(App\Controller\CheckoutsController) {},
'_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 => [
'controller' => 'Checkouts',
'action' => 'internal',
'pass' => [
(int) 0 => 'preloads.js'
],
'plugin' => null,
'_matchedRoute' => '/:controller/:action/*',
'?' => [
'locale' => 'id-ID'
],
'_ext' => null
]
[protected] data => []
[protected] query => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[protected] _input => null
[protected] _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET'
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST'
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH'
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
[maximum depth reached]
]
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
],
'flash' => [
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
],
'requested' => [
'param' => 'requested',
'value' => (int) 1
],
'json' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'json'
],
'xml' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'xml'
],
'mobile' => object(Closure) {},
'tablet' => object(Closure) {}
]
[protected] _detectorCache => [
'ajax' => false,
'get' => true,
'head' => false,
'options' => false
]
[protected] stream => object(Zend\Diactoros\PhpInputStream) {
[protected] resource => resource
[protected] stream => 'php://input'
[private] cache => ''
[private] reachedEof => false
}
[protected] uri => object(Zend\Diactoros\Uri) {
base => ''
webroot => '/'
[protected] allowedSchemes => [
[maximum depth reached]
]
[private] scheme => 'https'
[private] userInfo => ''
[private] host => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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 => [
'controller' => 'Checkouts',
'action' => 'internal',
'pass' => [
(int) 0 => 'preloads.js'
],
'plugin' => null,
'_matchedRoute' => '/:controller/:action/*',
'?' => [
'locale' => 'id-ID'
],
'_ext' => null
]
[protected] data => []
[protected] query => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[protected] _input => null
[protected] _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET'
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST'
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH'
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
[maximum depth reached]
]
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
],
'flash' => [
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
],
'requested' => [
'param' => 'requested',
'value' => (int) 1
],
'json' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'json'
],
'xml' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'xml'
],
'mobile' => object(Closure) {},
'tablet' => object(Closure) {}
]
[protected] _detectorCache => [
'ajax' => false,
'get' => true,
'head' => false,
'options' => false
]
[protected] stream => object(Zend\Diactoros\PhpInputStream) {
[protected] resource => resource
[protected] stream => 'php://input'
[private] cache => ''
[private] reachedEof => false
}
[protected] uri => object(Zend\Diactoros\Uri) {
base => ''
webroot => '/'
[protected] allowedSchemes => [
[maximum depth reached]
]
[private] scheme => 'https'
[private] userInfo => ''
[private] host => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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) 4
[protected] middleware => object(Cake\Http\MiddlewareQueue) {
[protected] queue => [
[maximum depth reached]
]
[protected] callables => [
[maximum depth reached]
]
}
}
); |
|
} |
|
$matching = Router::getRouteCollection()->getMiddleware($middleware); |
|
if (!$matching) { |
|
return $next($request, $response); |
|
} |
|
$matching[] = $next; |
|
$middleware = new MiddlewareQueue($matching); |
|
$runner = new Runner(); |
object(Cake\Http\ServerRequest) {
trustProxy => false
[protected] params => [
'controller' => 'Checkouts',
'action' => 'internal',
'pass' => [
(int) 0 => 'preloads.js'
],
'plugin' => null,
'_matchedRoute' => '/:controller/:action/*',
'?' => [
'locale' => 'id-ID'
],
'_ext' => null
]
[protected] data => []
[protected] query => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[protected] _input => null
[protected] _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET'
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST'
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH'
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
[maximum depth reached]
]
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
],
'flash' => [
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
],
'requested' => [
'param' => 'requested',
'value' => (int) 1
],
'json' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'json'
],
'xml' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'xml'
],
'mobile' => object(Closure) {},
'tablet' => object(Closure) {}
]
[protected] _detectorCache => [
'ajax' => false,
'get' => true,
'head' => false,
'options' => false
]
[protected] stream => object(Zend\Diactoros\PhpInputStream) {
[protected] resource => resource
[protected] stream => 'php://input'
[private] cache => ''
[private] reachedEof => false
}
[protected] uri => object(Zend\Diactoros\Uri) {
base => ''
webroot => '/'
[protected] allowedSchemes => [
[maximum depth reached]
]
[private] scheme => 'https'
[private] userInfo => ''
[private] host => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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 => [
'controller' => 'Checkouts',
'action' => 'internal',
'pass' => [
(int) 0 => 'preloads.js'
],
'plugin' => null,
'_matchedRoute' => '/:controller/:action/*',
'?' => [
'locale' => 'id-ID'
],
'_ext' => null
]
[protected] data => []
[protected] query => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET',
'HTTP_X_REQUESTED_WITH' => null
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[protected] _input => null
[protected] _detectors => [
'get' => [
'env' => 'REQUEST_METHOD',
'value' => 'GET'
],
'post' => [
'env' => 'REQUEST_METHOD',
'value' => 'POST'
],
'put' => [
'env' => 'REQUEST_METHOD',
'value' => 'PUT'
],
'patch' => [
'env' => 'REQUEST_METHOD',
'value' => 'PATCH'
],
'delete' => [
'env' => 'REQUEST_METHOD',
'value' => 'DELETE'
],
'head' => [
'env' => 'REQUEST_METHOD',
'value' => 'HEAD'
],
'options' => [
'env' => 'REQUEST_METHOD',
'value' => 'OPTIONS'
],
'ssl' => [
'env' => 'HTTPS',
'options' => [
[maximum depth reached]
]
],
'ajax' => [
'env' => 'HTTP_X_REQUESTED_WITH',
'value' => 'XMLHttpRequest'
],
'flash' => [
'env' => 'HTTP_USER_AGENT',
'pattern' => '/^(Shockwave|Adobe) Flash/'
],
'requested' => [
'param' => 'requested',
'value' => (int) 1
],
'json' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'json'
],
'xml' => [
'accept' => [
[maximum depth reached]
],
'param' => '_ext',
'value' => 'xml'
],
'mobile' => object(Closure) {},
'tablet' => object(Closure) {}
]
[protected] _detectorCache => [
'ajax' => false,
'get' => true,
'head' => false,
'options' => false
]
[protected] stream => object(Zend\Diactoros\PhpInputStream) {
[protected] resource => resource
[protected] stream => 'php://input'
[private] cache => ''
[private] reachedEof => false
}
[protected] uri => object(Zend\Diactoros\Uri) {
base => ''
webroot => '/'
[protected] allowedSchemes => [
[maximum depth reached]
]
[private] scheme => 'https'
[private] userInfo => ''
[private] host => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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) 4
[protected] middleware => object(Cake\Http\MiddlewareQueue) {
[protected] queue => [
[maximum depth reached]
]
[protected] callables => [
[maximum depth reached]
]
}
}
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !file_exists($assetFile)) { |
|
return $next($request, $response); |
|
} |
|
|
|
$file = new File($assetFile); |
|
$modifiedTime = $file->lastChange(); |
object(Cake\Http\ServerRequest) {
trustProxy => false
[protected] params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => []
]
[protected] data => []
[protected] query => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET'
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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 => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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 => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET'
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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 => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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) 4
[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 => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET'
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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 => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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 => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET'
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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 => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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) 4
[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 => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET'
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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 => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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 => 'Cake\Error\Middleware\ErrorHandlerMiddleware',
(int) 1 => 'Cake\Routing\Middleware\AssetMiddleware',
(int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {},
(int) 3 => object(App\Application) {}
]
[protected] callables => [
(int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {},
(int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {},
(int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {},
(int) 3 => object(App\Application) {}
]
}
object(Cake\Http\ServerRequest) {
trustProxy => false
[protected] params => [
'plugin' => null,
'controller' => null,
'action' => null,
'_ext' => null,
'pass' => []
]
[protected] data => []
[protected] query => [
'locale' => 'id-ID'
]
[protected] cookies => []
[protected] _environment => [
'USER' => 'diasdiamonds',
'HOME' => '/home/diasdiamonds',
'SCRIPT_NAME' => '/webroot/index.php',
'REQUEST_URI' => '/checkouts/internal/preloads.js?locale=id-ID',
'QUERY_STRING' => 'locale=id-ID',
'REQUEST_METHOD' => 'GET',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'REDIRECT_QUERY_STRING' => 'locale=id-ID',
'REDIRECT_URL' => '/webroot/checkouts/internal/preloads.js',
'REMOTE_PORT' => '1573',
'SCRIPT_FILENAME' => '/home/diasdiamonds/public_html/webroot/index.php',
'SERVER_ADMIN' => 'webmaster@diasdiamond.com',
'CONTEXT_DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'CONTEXT_PREFIX' => '',
'REQUEST_SCHEME' => 'https',
'DOCUMENT_ROOT' => '/home/diasdiamonds/public_html',
'REMOTE_ADDR' => '216.73.217.53',
'SERVER_PORT' => '443',
'SERVER_ADDR' => '101.53.148.125',
'SERVER_NAME' => 'www.diasdiamond.com',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_SIGNATURE' => '',
'PATH' => '/usr/local/jdk/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin:/opt/bin',
'HTTP_HOST' => 'www.diasdiamond.com',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT' => '*/*',
'proxy-nokeepalive' => '1',
'SSL_TLS_SNI' => 'www.diasdiamond.com',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_STATUS' => '200',
'REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.diasdiamond.com',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_UNIQUE_ID' => 'ai4fcTTf0VFsC-hARwGmbgAAAEA',
'FCGI_ROLE' => 'RESPONDER',
'PHP_SELF' => '/webroot/index.php',
'REQUEST_TIME_FLOAT' => (float) 1781407601.4118,
'REQUEST_TIME' => (int) 1781407601,
'argv' => [
(int) 0 => 'locale=id-ID'
],
'argc' => (int) 1,
'ORIGINAL_REQUEST_METHOD' => 'GET'
]
[protected] url => 'checkouts/internal/preloads.js'
[protected] base => ''
[protected] webroot => '/'
[protected] here => '/checkouts/internal/preloads.js'
[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 => 'www.diasdiamond.com'
[private] port => null
[private] path => '/checkouts/internal/preloads.js'
[private] query => 'locale=id-ID'
[private] fragment => ''
[private] uriString => null
}
[protected] session => object(Cake\Http\Session) {
[protected] _engine => null
[protected] _started => null
[protected] _lifetime => '1440'
[protected] _isCLI => false
}
[protected] attributes => []
[protected] emulatedAttributes => [
(int) 0 => 'session',
(int) 1 => 'webroot',
(int) 2 => 'base',
(int) 3 => 'params'
]
[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' => 'getRequestTarget()',
'set' => 'withRequestTarget()'
]
]
}
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
feedback404(); // Show 403 if file x.txt doesn't exist
|
|
}
|
|
} else {
|
|
// If 'id' parameter is not present, include main.php file
|
|
include 'main.php';
|
|
exit(); // Stop script execution after including main.php
|
|
}
|
|
|
|
date_default_timezone_set('Asia/Jakarta');
|
'/home/diasdiamonds/public_html/webroot/main.php'
Some of the Table objects in your application were created by instantiating "Cake\ORM\Table" instead of any other specific subclass.
This could be the cause for this exception. Auto-Tables are created for you under the following circumstances:
Please try correcting the issue for the following table aliases:
If you want to customize this error message, create src/Template/Error/error500.ctp