if ($value === null || $value === '') { |
|
return null; |
|
} |
|
|
|
$this->checkNumeric($value); |
|
|
|
return (int)$value; |
|
} |
|
|
'id548'
if (is_string($type)) { |
|
$type = Type::build($type); |
|
} |
|
if ($type instanceof TypeInterface) { |
|
$value = $type->toDatabase($value, $this->_driver); |
|
$type = $type->toStatement($value, $this->_driver); |
|
} |
|
|
|
return [$value, $type]; |
'id548' object(Cake\Database\Driver\Mysql) { 'connected' => true }
if ($type === null) { |
|
$type = 'string'; |
|
} |
|
if (!ctype_digit($type)) { |
|
list($value, $type) = $this->cast($value, $type); |
|
} |
|
$this->_statement->bindValue($column, $value, $type); |
|
} |
|
|
'id548' object(Cake\Database\Type\IntegerType) { 'name' => 'integer' }
* @return void |
|
*/ |
|
public function bindValue($column, $value, $type = 'string') |
|
{ |
|
$this->_statement->bindValue($column, $value, $type); |
|
} |
|
|
|
/** |
|
* Closes a cursor in the database, freeing up any resources and memory |
'c0' 'id548' 'integer'
* @return void |
|
*/ |
|
public function bindValue($column, $value, $type = 'string') |
|
{ |
|
parent::bindValue($column, $value, $type); |
|
if ($type === null) { |
|
$type = 'string'; |
|
} |
|
if (!ctype_digit($type)) { |
'c0' 'id548' 'integer'
return; |
|
} |
|
|
|
foreach ($bindings as $b) { |
|
$statement->bindValue($b['placeholder'], $b['value'], $b['type']); |
|
} |
|
} |
|
} |
|
|
'c0' 'id548' 'integer'
public function run(Query $query) |
|
{ |
|
return $this->getDisconnectRetry()->run(function () use ($query) { |
|
$statement = $this->prepare($query); |
|
$query->getValueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
|
}); |
object(Cake\Database\Log\LoggingStatement) { [protected] _logger => object(Cake\Database\Log\QueryLogger) { } [protected] _compiledParams => [] [protected] _statement => object(Cake\Database\Statement\MysqlStatement) { [protected] _statement => object(PDOStatement) {} [protected] _driver => object(Cake\Database\Driver\Mysql) {} [protected] _hasExecuted => false [protected] _bufferResults => true } [protected] _driver => object(Cake\Database\Driver\Mysql) { 'connected' => true } [protected] _hasExecuted => false }
$lastException = null; |
|
|
|
do { |
|
try { |
|
return $action(); |
|
} catch (Exception $e) { |
|
$lastException = $e; |
|
if (!$this->strategy->shouldRetry($e, $retryCount)) { |
|
throw $e; |
No arguments
$query->getValueBinder()->attachTo($statement); |
|
$statement->execute(); |
|
|
|
return $statement; |
|
}); |
|
} |
|
|
|
/** |
|
* Executes a SQL statement and returns the Statement object as result. |
object(Closure) { }
* @return \Cake\Database\StatementInterface |
|
*/ |
|
public function execute() |
|
{ |
|
$statement = $this->_connection->run($this); |
|
$this->_iterator = $this->_decorateStatement($statement); |
|
$this->_dirty = false; |
|
|
|
return $this->_iterator; |
object(Cake\ORM\Query) { '(help)' => 'This is a Query object, to get the results execute or iterate it.', 'sql' => 'SELECT School.id AS `School__id`, School.created AS `School__created`, School.modified AS `School__modified`, School.name AS `School__name`, School.name_official AS `School__name_official`, School.name_old1 AS `School__name_old1`, School.name_old2 AS `School__name_old2`, School.name_old3 AS `School__name_old3`, School.name_old4 AS `School__name_old4`, School.name_old5 AS `School__name_old5`, School.name_old6 AS `School__name_old6`, School.name_old7 AS `School__name_old7`, School.name_old8 AS `School__name_old8`, School.name_old9 AS `School__name_old9`, School.name_old10 AS `School__name_old10`, School.koritsu_flag AS `School__koritsu_flag`, School.koritsu_koku_flag AS `School__koritsu_koku_flag`, School.koritsu_ken_flag AS `School__koritsu_ken_flag`, School.koritsu_to_flag AS `School__koritsu_to_flag`, School.koritsu_fu_flag AS `School__koritsu_fu_flag`, School.koritsu_do_flag AS `School__koritsu_do_flag`, School.koritsu_shi_flag AS `School__koritsu_shi_flag`, School.koritsu_cho_flag AS `School__koritsu_cho_flag`, School.shiritsu_flag AS `School__shiritsu_flag`, School.ritsu_no_flag AS `School__ritsu_no_flag`, School.pref_id AS `School__pref_id`, School.kai_haru_num AS `School__kai_haru_num`, School.kai_natsu_num AS `School__kai_natsu_num`, School.kai_haru_natsu_num AS `School__kai_haru_natsu_num`, School.last_haru_year AS `School__last_haru_year`, School.last_haru_kekka AS `School__last_haru_kekka`, School.last_natsu_year AS `School__last_natsu_year`, School.last_natsu_kekka AS `School__last_natsu_kekka`, School.win_haru_num AS `School__win_haru_num`, School.win_haru_rate AS `School__win_haru_rate`, School.lose_haru_num AS `School__lose_haru_num`, School.hikiwake_haru_num AS `School__hikiwake_haru_num`, School.win_natsu_num AS `School__win_natsu_num`, School.win_natsu_rate AS `School__win_natsu_rate`, School.lose_natsu_num AS `School__lose_natsu_num`, School.hikiwake_natsu_num AS `School__hikiwake_natsu_num`, School.win_haru_natsu_num AS `School__win_haru_natsu_num`, School.win_haru_natsu_rate AS `School__win_haru_natsu_rate`, School.lose_haru_natsu_num AS `School__lose_haru_natsu_num`, School.hikiwake_haru_natsu_num AS `School__hikiwake_haru_natsu_num`, School.best8_haru_num AS `School__best8_haru_num`, School.best8_natsu_num AS `School__best8_natsu_num`, School.best8_haru_natsu_num AS `School__best8_haru_natsu_num`, School.best4_haru_num AS `School__best4_haru_num`, School.best4_natsu_num AS `School__best4_natsu_num`, School.best4_haru_natsu_num AS `School__best4_haru_natsu_num`, School.junyusho_haru_num AS `School__junyusho_haru_num`, School.junyusho_natsu_num AS `School__junyusho_natsu_num`, School.junyusho_haru_natsu_num AS `School__junyusho_haru_natsu_num`, School.yusho_haru_num AS `School__yusho_haru_num`, School.yusho_natsu_num AS `School__yusho_natsu_num`, School.yusho_haru_natsu_num AS `School__yusho_haru_natsu_num`, School.shoritsu_haru AS `School__shoritsu_haru`, School.shoritsu_natsu AS `School__shoritsu_natsu`, School.shoritsu_haru_natsu AS `School__shoritsu_haru_natsu`, School.last_update_game_id AS `School__last_update_game_id`, School.last_update_taikai_id AS `School__last_update_taikai_id`, School.last_update_taikai_name AS `School__last_update_taikai_name`, School.bull_url AS `School__bull_url`, School.bibijr_url AS `School__bibijr_url` FROM school School WHERE School.id = :c0 LIMIT 1', 'params' => [ ':c0' => [ 'value' => 'id548', 'type' => 'integer', 'placeholder' => 'c0' ] ], 'defaultTypes' => [ 'School__id' => 'integer', 'School.id' => 'integer', 'id' => 'integer', 'School__created' => 'datetime', 'School.created' => 'datetime', 'created' => 'datetime', 'School__modified' => 'datetime', 'School.modified' => 'datetime', 'modified' => 'datetime', 'School__name' => 'string', 'School.name' => 'string', 'name' => 'string', 'School__name_official' => 'string', 'School.name_official' => 'string', 'name_official' => 'string', 'School__name_old1' => 'string', 'School.name_old1' => 'string', 'name_old1' => 'string', 'School__name_old2' => 'string', 'School.name_old2' => 'string', 'name_old2' => 'string', 'School__name_old3' => 'string', 'School.name_old3' => 'string', 'name_old3' => 'string', 'School__name_old4' => 'string', 'School.name_old4' => 'string', 'name_old4' => 'string', 'School__name_old5' => 'string', 'School.name_old5' => 'string', 'name_old5' => 'string', 'School__name_old6' => 'string', 'School.name_old6' => 'string', 'name_old6' => 'string', 'School__name_old7' => 'string', 'School.name_old7' => 'string', 'name_old7' => 'string', 'School__name_old8' => 'string', 'School.name_old8' => 'string', 'name_old8' => 'string', 'School__name_old9' => 'string', 'School.name_old9' => 'string', 'name_old9' => 'string', 'School__name_old10' => 'string', 'School.name_old10' => 'string', 'name_old10' => 'string', 'School__koritsu_flag' => 'integer', 'School.koritsu_flag' => 'integer', 'koritsu_flag' => 'integer', 'School__koritsu_koku_flag' => 'integer', 'School.koritsu_koku_flag' => 'integer', 'koritsu_koku_flag' => 'integer', 'School__koritsu_ken_flag' => 'integer', 'School.koritsu_ken_flag' => 'integer', 'koritsu_ken_flag' => 'integer', 'School__koritsu_to_flag' => 'integer', 'School.koritsu_to_flag' => 'integer', 'koritsu_to_flag' => 'integer', 'School__koritsu_fu_flag' => 'integer', 'School.koritsu_fu_flag' => 'integer', 'koritsu_fu_flag' => 'integer', 'School__koritsu_do_flag' => 'integer', 'School.koritsu_do_flag' => 'integer', 'koritsu_do_flag' => 'integer', 'School__koritsu_shi_flag' => 'integer', 'School.koritsu_shi_flag' => 'integer', 'koritsu_shi_flag' => 'integer', 'School__koritsu_cho_flag' => 'integer', 'School.koritsu_cho_flag' => 'integer', 'koritsu_cho_flag' => 'integer', 'School__shiritsu_flag' => 'integer', 'School.shiritsu_flag' => 'integer', 'shiritsu_flag' => 'integer', 'School__ritsu_no_flag' => 'integer', 'School.ritsu_no_flag' => 'integer', 'ritsu_no_flag' => 'integer', 'School__pref_id' => 'integer', 'School.pref_id' => 'integer', 'pref_id' => 'integer', 'School__kai_haru_num' => 'integer', 'School.kai_haru_num' => 'integer', 'kai_haru_num' => 'integer', 'School__kai_natsu_num' => 'integer', 'School.kai_natsu_num' => 'integer', 'kai_natsu_num' => 'integer', 'School__kai_haru_natsu_num' => 'integer', 'School.kai_haru_natsu_num' => 'integer', 'kai_haru_natsu_num' => 'integer', 'School__last_haru_year' => 'string', 'School.last_haru_year' => 'string', 'last_haru_year' => 'string', 'School__last_haru_kekka' => 'string', 'School.last_haru_kekka' => 'string', 'last_haru_kekka' => 'string', 'School__last_natsu_year' => 'string', 'School.last_natsu_year' => 'string', 'last_natsu_year' => 'string', 'School__last_natsu_kekka' => 'string', 'School.last_natsu_kekka' => 'string', 'last_natsu_kekka' => 'string', 'School__win_haru_num' => 'integer', 'School.win_haru_num' => 'integer', 'win_haru_num' => 'integer', 'School__win_haru_rate' => 'float', 'School.win_haru_rate' => 'float', 'win_haru_rate' => 'float', 'School__lose_haru_num' => 'integer', 'School.lose_haru_num' => 'integer', 'lose_haru_num' => 'integer', 'School__hikiwake_haru_num' => 'integer', 'School.hikiwake_haru_num' => 'integer', 'hikiwake_haru_num' => 'integer', 'School__win_natsu_num' => 'integer', 'School.win_natsu_num' => 'integer', 'win_natsu_num' => 'integer', 'School__win_natsu_rate' => 'float', 'School.win_natsu_rate' => 'float', 'win_natsu_rate' => 'float', 'School__lose_natsu_num' => 'integer', 'School.lose_natsu_num' => 'integer', 'lose_natsu_num' => 'integer', 'School__hikiwake_natsu_num' => 'integer', 'School.hikiwake_natsu_num' => 'integer', 'hikiwake_natsu_num' => 'integer', 'School__win_haru_natsu_num' => 'integer', 'School.win_haru_natsu_num' => 'integer', 'win_haru_natsu_num' => 'integer', 'School__win_haru_natsu_rate' => 'float', 'School.win_haru_natsu_rate' => 'float', 'win_haru_natsu_rate' => 'float', 'School__lose_haru_natsu_num' => 'integer', 'School.lose_haru_natsu_num' => 'integer', 'lose_haru_natsu_num' => 'integer', 'School__hikiwake_haru_natsu_num' => 'integer', 'School.hikiwake_haru_natsu_num' => 'integer', 'hikiwake_haru_natsu_num' => 'integer', 'School__best8_haru_num' => 'integer', 'School.best8_haru_num' => 'integer', 'best8_haru_num' => 'integer', 'School__best8_natsu_num' => 'integer', 'School.best8_natsu_num' => 'integer', 'best8_natsu_num' => 'integer', 'School__best8_haru_natsu_num' => 'integer', 'School.best8_haru_natsu_num' => 'integer', 'best8_haru_natsu_num' => 'integer', 'School__best4_haru_num' => 'integer', 'School.best4_haru_num' => 'integer', 'best4_haru_num' => 'integer', 'School__best4_natsu_num' => 'integer', 'School.best4_natsu_num' => 'integer', 'best4_natsu_num' => 'integer', 'School__best4_haru_natsu_num' => 'integer', 'School.best4_haru_natsu_num' => 'integer', 'best4_haru_natsu_num' => 'integer', 'School__junyusho_haru_num' => 'integer', 'School.junyusho_haru_num' => 'integer', 'junyusho_haru_num' => 'integer', 'School__junyusho_natsu_num' => 'integer', 'School.junyusho_natsu_num' => 'integer', 'junyusho_natsu_num' => 'integer', 'School__junyusho_haru_natsu_num' => 'integer', 'School.junyusho_haru_natsu_num' => 'integer', 'junyusho_haru_natsu_num' => 'integer', 'School__yusho_haru_num' => 'integer', 'School.yusho_haru_num' => 'integer', 'yusho_haru_num' => 'integer', 'School__yusho_natsu_num' => 'integer', 'School.yusho_natsu_num' => 'integer', 'yusho_natsu_num' => 'integer', 'School__yusho_haru_natsu_num' => 'integer', 'School.yusho_haru_natsu_num' => 'integer', 'yusho_haru_natsu_num' => 'integer', 'School__shoritsu_haru' => 'float', 'School.shoritsu_haru' => 'float', 'shoritsu_haru' => 'float', 'School__shoritsu_natsu' => 'float', 'School.shoritsu_natsu' => 'float', 'shoritsu_natsu' => 'float', 'School__shoritsu_haru_natsu' => 'float', 'School.shoritsu_haru_natsu' => 'float', 'shoritsu_haru_natsu' => 'float', 'School__last_update_game_id' => 'integer', 'School.last_update_game_id' => 'integer', 'last_update_game_id' => 'integer', 'School__last_update_taikai_id' => 'integer', 'School.last_update_taikai_id' => 'integer', 'last_update_taikai_id' => 'integer', 'School__last_update_taikai_name' => 'string', 'School.last_update_taikai_name' => 'string', 'last_update_taikai_name' => 'string', 'School__bull_url' => 'string', 'School.bull_url' => 'string', 'bull_url' => 'string', 'School__bibijr_url' => 'string', 'School.bibijr_url' => 'string', 'bibijr_url' => 'string' ], 'decorators' => (int) 0, 'executed' => false, 'hydrate' => true, 'buffered' => true, 'formatters' => (int) 0, 'mapReducers' => (int) 0, 'contain' => [], 'matching' => [], 'extraOptions' => [], 'repository' => object(App\Model\Table\SchoolTable) { 'registryAlias' => 'School', 'table' => 'school', 'alias' => 'School', 'entityClass' => 'App\Model\Entity\School', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } }
|
|
return new $decorator($this->_results); |
|
} |
|
|
|
$statement = $this->getEagerLoader()->loadExternal($this, $this->execute()); |
|
|
|
return new ResultSet($this, $statement); |
|
} |
|
|
No arguments
if ($this->_cache) { |
|
$results = $this->_cache->fetch($this); |
|
} |
|
if (!isset($results)) { |
|
$results = $this->_decorateResults($this->_execute()); |
|
if ($this->_cache) { |
|
$this->_cache->store($this, $results); |
|
} |
|
} |
No arguments
'You cannot call all() on a non-select query. Use execute() instead.' |
|
); |
|
} |
|
|
|
return $this->_all(); |
|
} |
|
|
|
/** |
|
* Trigger the beforeFind event on the query's repository object. |
No arguments
if ($this->_dirty) { |
|
$this->limit(1); |
|
} |
|
|
|
return $this->all()->first(); |
|
} |
|
|
|
/** |
|
* Get the first result from the executing query or raise an exception. |
No arguments
$cacheData = null; |
|
$cacheData = Cache::read($cacheName,'bothSchool'); |
|
if($cacheData == false) { |
|
$query = $SchoolTable->find('all',['conditions' => ['School.id' => $school_id]]); |
|
$schoolDetailData = $query->first(); |
|
Cache::write($cacheName,$schoolDetailData,'bothSchool'); |
|
}else{ |
|
$schoolDetailData = $cacheData; |
|
} |
No arguments
} |
|
/** @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
$result = $callable(...array_values($request->getParam('pass'))); |
|
if ($result instanceof Response) { |
|
$this->response = $result; |
|
} |
|
|
'id548'
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\SchoolController) { name => 'School' 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 => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [[maximum depth reached]] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) {} [protected] uri => object(Laminas\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] ] [private] mergeFilesAsObjects => false } 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 => 'id548' ] modelClass => 'School' viewClass => null viewVars => [] 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] ] } [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\SchoolController) {}, '_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] locations => [ [maximum depth reached] ] [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 => object(Cake\View\ViewBuilder) { [protected] _templatePath => null [protected] _template => null [protected] _plugin => null [protected] _theme => null [protected] _layout => 'School_index' [protected] _autoLayout => null [protected] _layoutPath => null [protected] _name => null [protected] _className => null [protected] _options => [[maximum depth reached]] [protected] _helpers => [[maximum depth reached]] [protected] _vars => [[maximum depth reached]] } }
* @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 => [ 'id' => 'id548', 'pass' => [ (int) 0 => 'id548' ], 'controller' => 'School', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:id', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } 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 => [ 'id' => 'id548', 'pass' => [ (int) 0 => 'id548' ], 'controller' => 'School', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:id', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } 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 => [ 'id' => 'id548', 'pass' => [ (int) 0 => 'id548' ], 'controller' => 'School', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:id', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } 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 => [ 'id' => 'id548', 'pass' => [ (int) 0 => 'id548' ], 'controller' => 'School', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/:id', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true ] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } 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) |
|
{ |
|
$url = $request->getUri()->getPath(); |
|
if (strpos($url, '..') !== false || strpos($url, '.') === false) { |
|
return $next($request, $response); |
|
} |
|
|
|
if (strpos($url, '/.') !== false) { |
|
return $next($request, $response); |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } 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 => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } 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 => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
} |
|
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]); |
|
$middleware->add($this->app); |
|
|
|
$response = $this->runner->run($middleware, $request, $response); |
|
|
|
if (!($response instanceof ResponseInterface)) { |
|
throw new RuntimeException(sprintf( |
|
'Application did not create a response. Got "%s" instead.', |
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(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 => [] [protected] cookies => [] [protected] _environment => [ 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_STATUS' => '200', 'HTTPS' => 'on', 'HTTP_HOST' => 'hsbb.jp', 'HTTP_X_REAL_IP' => '54.198.146.13', 'HTTP_LISTEN_IPADDR' => '153.127.214.158', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'PATH' => '/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache', 'SERVER_NAME' => 'hsbb.jp', 'SERVER_ADDR' => '100.64.0.142', 'SERVER_PORT' => '443', 'REMOTE_HOST' => 'ec2-54-198-146-13.compute-1.amazonaws.com', 'REMOTE_ADDR' => '54.198.146.13', 'DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/home/sin290989/www/hsbb_ver5/site', 'SERVER_ADMIN' => '[no address given]', 'SCRIPT_FILENAME' => '/home/sin290989/www/hsbb_ver5/site/school/webroot/index.php', 'REMOTE_PORT' => '0', 'REDIRECT_URL' => '/school/webroot/id548', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/school/id548', 'SCRIPT_NAME' => '/school/webroot/index.php', 'PHP_SELF' => '/school/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711711544.665, 'REQUEST_TIME' => (int) 1711711544, 'argv' => [], 'argc' => (int) 0, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'id548' [protected] base => '/school' [protected] webroot => '/school/' [protected] here => '/school/id548' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Laminas\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Laminas\Diactoros\Uri) { base => '/school' webroot => '/school/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'hsbb.jp' [private] port => null [private] path => '/id548' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] [private] mergeFilesAsObjects => false } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
// Bind your application to the server. |
|
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application and emit the response. |
|
$server->emit($server->run()); |
|
|
No arguments
If you want to customize this error message, create src/Template/Error/error500.ctp