Error: StaffblogController could not be found.
public function create(ServerRequest $request, Response $response) |
|
{ |
|
$className = $this->getControllerClass($request); |
|
if (!$className) { |
|
$this->missingController($request); |
|
} |
|
$reflection = new ReflectionClass($className); |
|
if ($reflection->isAbstract() || $reflection->isInterface()) { |
|
$this->missingController($request); |
object(Cake\Http\ServerRequest) { params => [ 'controller' => 'Staffblog', 'action' => 'satoruTsuchiya', 'pass' => [ (int) 0 => 'upload_images', (int) 1 => 'S__3760252.jpg' ], 'plugin' => null, '_matchedRoute' => '/:controller/:action/*', '_ext' => null, 'isAjax' => false ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 }
// event handler if there is one. |
|
if ($beforeEvent->getData('controller') instanceof Controller) { |
|
$controller = $beforeEvent->getData('controller'); |
|
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
object(Cake\Http\ServerRequest) { params => [ 'controller' => 'Staffblog', 'action' => 'satoruTsuchiya', 'pass' => [ (int) 0 => 'upload_images', (int) 1 => 'S__3760252.jpg' ], 'plugin' => null, '_matchedRoute' => '/:controller/:action/*', '_ext' => null, 'isAjax' => false ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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' => '' }
* @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) { params => [ 'controller' => 'Staffblog', 'action' => 'satoruTsuchiya', 'pass' => [ (int) 0 => 'upload_images', (int) 1 => 'S__3760252.jpg' ], 'plugin' => null, '_matchedRoute' => '/:controller/:action/*', '_ext' => null, 'isAjax' => false ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) { params => [ 'controller' => 'Staffblog', 'action' => 'satoruTsuchiya', 'pass' => [ (int) 0 => 'upload_images', (int) 1 => 'S__3760252.jpg' ], 'plugin' => null, '_matchedRoute' => '/:controller/:action/*', '_ext' => null, 'isAjax' => false ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) 5 [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) { params => [ 'controller' => 'Staffblog', 'action' => 'satoruTsuchiya', 'pass' => [ (int) 0 => 'upload_images', (int) 1 => 'S__3760252.jpg' ], 'plugin' => null, '_matchedRoute' => '/:controller/:action/*', '_ext' => null, 'isAjax' => false ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) { params => [ 'controller' => 'Staffblog', 'action' => 'satoruTsuchiya', 'pass' => [ (int) 0 => 'upload_images', (int) 1 => 'S__3760252.jpg' ], 'plugin' => null, '_matchedRoute' => '/:controller/:action/*', '_ext' => null, 'isAjax' => false ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) 5 [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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) 5 [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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) 5 [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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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) 5 [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) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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' => '' }
throw new RuntimeException('The application `middleware` method did not return a middleware queue.'); |
|
} |
|
$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 => 'Cake\Error\Middleware\ErrorHandlerMiddleware', (int) 2 => 'Cake\Routing\Middleware\AssetMiddleware', (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => 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(App\Application) {} ] } object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] data => [] query => [] cookies => [] url => 'staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' base => '' webroot => '/' here => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_SITE_URL' => 'minx-net.co.jp', 'REDIRECT_HTTP_X_FORWARDED_PROTO' => 'http', 'REDIRECT_REAL_HOST_NAME' => 'minx-net.co.jp', 'REDIRECT_STATUS' => '200', 'SITE_URL' => 'minx-net.co.jp', 'HTTP_X_FORWARDED_PROTO' => 'http', 'REAL_HOST_NAME' => 'minx-net.co.jp', 'HTTP_HOST' => 'www.minx-net.co.jp', 'HTTP_ACCEPT' => '*/*', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate, br', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)', 'HTTP_SENTRY_TRACE' => 'f8638f1387014118b008084a862a6e6b-afe8ce23a60a17c6', 'HTTP_BAGGAGE' => 'sentry-trace_id=f8638f1387014118b008084a862a6e6b,sentry-environment=production,sentry-release=df29dcc6a5328c596fb1d6debb877b55cb4d5fa8,sentry-public_key=e813de38a67c87505807bf0cc612b572', 'PATH' => '/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'www.minx-net.co.jp', 'SERVER_ADDR' => '153.122.114.248', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '18.118.114.72', 'DOCUMENT_ROOT' => '/var/www/html/prd_test', 'SERVER_ADMIN' => 'root@localhost', 'SCRIPT_FILENAME' => '/var/www/html/prd_test/webroot/index.php', 'REMOTE_PORT' => '51926', 'REDIRECT_URL' => '/webroot/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1747657357.255, 'REQUEST_TIME' => (int) 1747657357, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [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 => 'http' [private] userInfo => '' [private] host => 'www.minx-net.co.jp' [private] port => null [private] path => '/staffblog/satoru_tsuchiya/upload_images/S__3760252.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\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 } 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
In the case you tried to access a plugin controller make sure you added it to your composer file or you use the autoload option for the plugin.
Error: Create the class StaffblogController below in file: src/Controller/StaffblogController.php
<?php
namespace App\Controller;
use App\Controller\AppController;
class StaffblogController extends AppController
{
}
If you want to customize this error message, create src/Template/Error/missing_controller.ctp