throw new RuntimeException('Unable to locate an object compatible with paginate.'); |
|
} |
|
$settings = $settings + $this->paginate; |
|
|
|
return $this->Paginator->paginate($table, $settings); |
|
} |
|
|
|
/** |
|
* Method to check that an action is accessible from a URL. |
object(App\Model\Table\MeetingsTable) { 'registryAlias' => 'Meetings', 'table' => 'meetings', 'alias' => 'Meetings', 'entityClass' => 'App\Model\Entity\Meeting', 'associations' => [ (int) 0 => 'sessiontypes', (int) 1 => 'documents' ], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' } [ 'contain' => [ (int) 0 => 'SessionTypes' ] ]
if(!empty($persistedData['page_limit'])) { |
|
$this->paginate['limit'] = $persistedData['page_limit']; |
|
} |
|
} |
|
return parent::paginate($object, $settings); |
|
} |
|
|
|
public function beforeRender(Event $event) { |
|
if(!array_key_exists('_serialize', $this->viewVars) && in_array($this->response->type(), ['application/json', 'application/xml'])) |
object(App\Model\Table\MeetingsTable) { 'registryAlias' => 'Meetings', 'table' => 'meetings', 'alias' => 'Meetings', 'entityClass' => 'App\Model\Entity\Meeting', 'associations' => [ (int) 0 => 'sessiontypes', (int) 1 => 'documents' ], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' } [ 'contain' => [ (int) 0 => 'SessionTypes' ] ]
{ |
|
public function index() |
|
{ |
|
$this->paginate = ['contain' => ['SessionTypes']]; |
|
$meetings = $this->paginate($this->Meetings); |
|
|
|
$this->set(compact('meetings')); |
|
} |
|
|
object(App\Model\Table\MeetingsTable) { 'registryAlias' => 'Meetings', 'table' => 'meetings', 'alias' => 'Meetings', 'entityClass' => 'App\Model\Entity\Meeting', 'associations' => [ (int) 0 => 'sessiontypes', (int) 1 => 'documents' ], 'behaviors' => [], 'defaultConnection' => 'default', 'connectionName' => 'default' }
]); |
|
} |
|
$callable = [$this, $request->params['action']]; |
|
|
|
return call_user_func_array($callable, $request->params['pass']); |
|
} |
|
|
|
/** |
|
* Merge components, helpers vars from |
[ (int) 0 => object(App\Controller\MeetingsController) { components => [ 'Flash' => null, 'Auth' => null, 'Usermgmt.UserAuth' => null, 'Security' => null, 'Csrf' => null ] helpers => [ 'Usermgmt.UserAuth' => null, 'Usermgmt.Image' => null ] name => 'Meetings' request => object(Cake\Network\Request) {} response => object(Cake\Network\Response) {} paginate => [ 'contain' => [ [maximum depth reached] ] ] autoRender => true View => null plugin => null passedArgs => [ (int) 0 => 'home' ] modelClass => 'Meetings' viewClass => null viewVars => [] Flash => object(Cake\Controller\Component\FlashComponent) {} Auth => object(Cake\Controller\Component\AuthComponent) {} UserAuth => object(Usermgmt\Controller\Component\UserAuthComponent) {} Security => object(Cake\Controller\Component\SecurityComponent) {} Csrf => object(Cake\Controller\Component\CsrfComponent) {} Meetings => object(App\Model\Table\MeetingsTable) {} Paginator => object(Cake\Controller\Component\PaginatorComponent) {} [protected] _responseClass => 'Cake\Network\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) {} [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) {} [protected] _modelFactories => [ 'Table' => [ [maximum depth reached] ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }, (int) 1 => 'index' ] [ (int) 0 => 'home' ]
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Network\Response or null.'); |
|
} |
|
|
No arguments
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if (isset($request->params['return'])) { |
|
return $response; |
|
} |
|
|
object(App\Controller\MeetingsController) { components => [ 'Flash' => null, 'Auth' => null, 'Usermgmt.UserAuth' => null, 'Security' => null, 'Csrf' => null ] helpers => [ 'Usermgmt.UserAuth' => null, 'Usermgmt.Image' => null ] name => 'Meetings' request => object(Cake\Network\Request) { params => [ [maximum depth reached] ] data => [[maximum depth reached]] query => [ [maximum depth reached] ] cookies => [[maximum depth reached]] url => '' base => '/customapps/parksboard' webroot => '/customapps/parksboard/' here => '/customapps/parksboard/' trustProxy => false [protected] _environment => [ [maximum depth reached] ] [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] _input => '' [protected] _session => object(Cake\Network\Session) {} } response => object(Cake\Network\Response) { [protected] _statusCodes => [ [maximum depth reached] ] [protected] _mimeTypes => [ [maximum depth reached] ] [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => [[maximum depth reached]] [protected] _body => '' [protected] _file => null [protected] _fileRange => [[maximum depth reached]] [protected] _charset => 'UTF-8' [protected] _cacheDirectives => [[maximum depth reached]] [protected] _cookies => [ [maximum depth reached] ] } paginate => [ 'contain' => [ (int) 0 => 'SessionTypes' ] ] autoRender => true View => null plugin => null passedArgs => [ (int) 0 => 'home' ] modelClass => 'Meetings' viewClass => null viewVars => [] Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } UserAuth => object(Usermgmt\Controller\Component\UserAuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [[maximum depth reached]] } Security => object(Cake\Controller\Component\SecurityComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Csrf => object(Cake\Controller\Component\CsrfComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Meetings => object(App\Model\Table\MeetingsTable) { 'registryAlias' => 'Meetings', 'table' => 'meetings', 'alias' => 'Meetings', 'entityClass' => 'App\Model\Entity\Meeting', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } [protected] _responseClass => 'Cake\Network\Response' [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\MeetingsController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => '\Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_eventList' => null, '_trackEvents' => false, '_generalManager' => '(object) EventManager' } [protected] _eventClass => '\Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null }
$cakeRequest = RequestTransformer::toCake($request); |
|
$cakeResponse = ResponseTransformer::toCake($response); |
|
|
|
// Dispatch the request/response to CakePHP |
|
$cakeResponse = $this->getDispatcher()->dispatch($cakeRequest, $cakeResponse); |
|
|
|
// Convert the response back into a PSR7 object. |
|
return ResponseTransformer::toPsr($cakeResponse); |
|
} |
object(Cake\Network\Request) { params => [ 'pass' => [ (int) 0 => 'home' ], 'controller' => 'Meetings', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/', '_ext' => null, '_Token' => [ 'unlockedFields' => [[maximum depth reached]] ], '_csrfToken' => 'd138113e5104860ae3f7b0ae04b4278d187b52ae209bb072cb1cfe8854b549b06098e9976cd9a4877cf48636c44b75db4176c4dfddfe60ee581c96379f1a50a4', 'paging' => [ 'Meetings' => [ [maximum depth reached] ] ], 'isAjax' => false ] data => [] query => [ 'page' => '4' ] cookies => [] url => '' base => '/customapps/parksboard' webroot => '/customapps/parksboard/' here => '/customapps/parksboard/' trustProxy => false [protected] _environment => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565, 'HTTP_X_HTTP_METHOD_OVERRIDE' => null, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'PHP_AUTH_USER' => null, 'PHP_AUTH_PW' => null, 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => 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 => [ 'requested' => false, 'get' => true, 'put' => false, 'post' => false, 'delete' => false, 'patch' => false, 'ajax' => false, 'head' => false, 'options' => false ] [protected] _input => '' [protected] _session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => true [protected] _lifetime => '1440' [protected] _isCLI => false } } object(Cake\Network\Response) { [protected] _statusCodes => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Timeout', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Timeout', (int) 505 => 'Unsupported Version', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [protected] _mimeTypes => [ 'html' => [ (int) 0 => 'text/html', (int) 1 => '*/*' ], 'json' => 'application/json', 'xml' => [ (int) 0 => 'application/xml', (int) 1 => 'text/xml' ], 'xhtml' => [ (int) 0 => 'application/xhtml+xml', (int) 1 => 'application/xhtml', (int) 2 => 'text/xhtml' ], 'webp' => 'image/webp', 'rss' => 'application/rss+xml', 'ai' => 'application/postscript', 'bcpio' => 'application/x-bcpio', 'bin' => 'application/octet-stream', 'ccad' => 'application/clariscad', 'cdf' => 'application/x-netcdf', 'class' => 'application/octet-stream', 'cpio' => 'application/x-cpio', 'cpt' => 'application/mac-compactpro', 'csh' => 'application/x-csh', 'csv' => [ (int) 0 => 'text/csv', (int) 1 => 'application/vnd.ms-excel' ], 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dms' => 'application/octet-stream', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'drw' => 'application/drafting', 'dvi' => 'application/x-dvi', 'dwg' => 'application/acad', 'dxf' => 'application/dxf', 'dxr' => 'application/x-director', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'exe' => 'application/octet-stream', 'ez' => 'application/andrew-inset', 'flv' => 'video/x-flv', 'gtar' => 'application/x-gtar', 'gz' => 'application/x-gzip', 'bz2' => 'application/x-bzip', '7z' => 'application/x-7z-compressed', 'hdf' => 'application/x-hdf', 'hqx' => 'application/mac-binhex40', 'ico' => 'image/x-icon', 'ips' => 'application/x-ipscript', 'ipx' => 'application/x-ipix', 'js' => 'application/javascript', 'jsonapi' => 'application/vnd.api+json', 'latex' => 'application/x-latex', 'lha' => 'application/octet-stream', 'lsp' => 'application/x-lisp', 'lzh' => 'application/octet-stream', 'man' => 'application/x-troff-man', 'me' => 'application/x-troff-me', 'mif' => 'application/vnd.mif', 'ms' => 'application/x-troff-ms', 'nc' => 'application/x-netcdf', 'oda' => 'application/oda', 'otf' => 'font/otf', 'pdf' => 'application/pdf', 'pgn' => 'application/x-chess-pgn', 'pot' => 'application/vnd.ms-powerpoint', 'pps' => 'application/vnd.ms-powerpoint', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ppz' => 'application/vnd.ms-powerpoint', 'pre' => 'application/x-freelance', 'prt' => 'application/pro_eng', 'ps' => 'application/postscript', 'roff' => 'application/x-troff', 'scm' => 'application/x-lotusscreencam', 'set' => 'application/set', 'sh' => 'application/x-sh', 'shar' => 'application/x-shar', 'sit' => 'application/x-stuffit', 'skd' => 'application/x-koan', 'skm' => 'application/x-koan', 'skp' => 'application/x-koan', 'skt' => 'application/x-koan', 'smi' => 'application/smil', 'smil' => 'application/smil', 'sol' => 'application/solids', 'spl' => 'application/x-futuresplash', 'src' => 'application/x-wais-source', 'step' => 'application/STEP', 'stl' => 'application/SLA', 'stp' => 'application/STEP', 'sv4cpio' => 'application/x-sv4cpio', 'sv4crc' => 'application/x-sv4crc', 'svg' => 'image/svg+xml', 'svgz' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 't' => 'application/x-troff', 'tar' => 'application/x-tar', 'tcl' => 'application/x-tcl', 'tex' => 'application/x-tex', 'texi' => 'application/x-texinfo', 'texinfo' => 'application/x-texinfo', 'tr' => 'application/x-troff', 'tsp' => 'application/dsptype', 'ttc' => 'font/ttf', 'ttf' => 'font/ttf', 'unv' => 'application/i-deas', 'ustar' => 'application/x-ustar', 'vcd' => 'application/x-cdlink', 'vda' => 'application/vda', 'xlc' => 'application/vnd.ms-excel', 'xll' => 'application/vnd.ms-excel', 'xlm' => 'application/vnd.ms-excel', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlw' => 'application/vnd.ms-excel', 'zip' => 'application/zip', 'aif' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'au' => 'audio/basic', 'kar' => 'audio/midi', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'mpga' => 'audio/mpeg', 'ogg' => 'audio/ogg', 'oga' => 'audio/ogg', 'spx' => 'audio/ogg', 'ra' => 'audio/x-realaudio', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'snd' => 'audio/basic', 'tsi' => 'audio/TSP-audio', 'wav' => 'audio/x-wav', 'aac' => 'audio/aac', 'asc' => 'text/plain', 'c' => 'text/plain', 'cc' => 'text/plain', 'css' => 'text/css', 'etx' => 'text/x-setext', 'f' => 'text/plain', 'f90' => 'text/plain', 'h' => 'text/plain', 'hh' => 'text/plain', 'htm' => [ (int) 0 => 'text/html', (int) 1 => '*/*' ], 'ics' => 'text/calendar', 'm' => 'text/plain', 'rtf' => 'text/rtf', 'rtx' => 'text/richtext', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'tsv' => 'text/tab-separated-values', 'tpl' => 'text/template', 'txt' => 'text/plain', 'text' => 'text/plain', 'avi' => 'video/x-msvideo', 'fli' => 'video/x-fli', 'mov' => 'video/quicktime', 'movie' => 'video/x-sgi-movie', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'qt' => 'video/quicktime', 'viv' => 'video/vnd.vivo', 'vivo' => 'video/vnd.vivo', 'ogv' => 'video/ogg', 'webm' => 'video/webm', 'mp4' => 'video/mp4', 'm4v' => 'video/mp4', 'f4v' => 'video/mp4', 'f4p' => 'video/mp4', 'm4a' => 'audio/mp4', 'f4a' => 'audio/mp4', 'f4b' => 'audio/mp4', 'gif' => 'image/gif', 'ief' => 'image/ief', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpe' => 'image/jpeg', 'pbm' => 'image/x-portable-bitmap', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ras' => 'image/cmu-raster', 'rgb' => 'image/x-rgb', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'xbm' => 'image/x-xbitmap', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'psd' => [ (int) 0 => 'application/photoshop', (int) 1 => 'application/psd', (int) 2 => 'image/psd', (int) 3 => 'image/x-photoshop', (int) 4 => 'image/photoshop', (int) 5 => 'zz-application/zz-winassoc-psd' ], 'ice' => 'x-conference/x-cooltalk', 'iges' => 'model/iges', 'igs' => 'model/iges', 'mesh' => 'model/mesh', 'msh' => 'model/mesh', 'silo' => 'model/mesh', 'vrml' => 'model/vrml', 'wrl' => 'model/vrml', 'mime' => 'www/mime', 'pdb' => 'chemical/x-pdb', 'xyz' => 'chemical/x-pdb', 'javascript' => 'application/javascript', 'form' => 'application/x-www-form-urlencoded', 'file' => 'multipart/form-data', 'xhtml-mobile' => 'application/vnd.wap.xhtml+xml', 'atom' => 'application/atom+xml', 'amf' => 'application/x-amf', 'wap' => [ (int) 0 => 'text/vnd.wap.wml', (int) 1 => 'text/vnd.wap.wmlscript', (int) 2 => 'image/vnd.wap.wbmp' ], 'wml' => 'text/vnd.wap.wml', 'wmlscript' => 'text/vnd.wap.wmlscript', 'wbmp' => 'image/vnd.wap.wbmp', 'woff' => 'application/x-font-woff', 'appcache' => 'text/cache-manifest', 'manifest' => 'text/cache-manifest', 'htc' => 'text/x-component', 'rdf' => 'application/xml', 'crx' => 'application/x-chrome-extension', 'oex' => 'application/x-opera-extension', 'xpi' => 'application/x-xpinstall', 'safariextz' => 'application/octet-stream', 'webapp' => 'application/x-web-app-manifest+json', 'vcf' => 'text/x-vcard', 'vtt' => 'text/vtt', 'mkv' => 'video/x-matroska', 'pkpass' => 'application/vnd.apple.pkpass', 'ajax' => 'text/html' ] [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => [] [protected] _body => '' [protected] _file => null [protected] _fileRange => [] [protected] _charset => 'UTF-8' [protected] _cacheDirectives => [] [protected] _cookies => [ 'usermgmt_user_activity' => [ 'name' => 'usermgmt_user_activity', 'value' => 'Q2FrZQ==.ZmY0MGI4ZTNiYzQyZWE4MDY0ODNmMmYzODU4ZjA2ODExYzNmZWExMTE3YzA2ZTZkMDhjNmM2YmUzZDU5MTA0OLXoJ0C3Xbw3EAd0dlgKlFyhccSAcXDj1pO99NlkALkp+LFqVBkmWzad+kvlACqWS/oHue6tEKaQ+9V9kn1hQ8c=', 'expire' => '1716920966', 'path' => '/', 'domain' => '', 'secure' => false, 'httpOnly' => true ], 'csrfToken' => [ 'name' => 'csrfToken', 'value' => '28cd0acdbb3a0cfed314c1004fd52d5d3b5e9946eb0b14c5086144f4c9f3003d0b7602b3de5ccd5a47c56f41675e9443d268992163d188be01e69c75dc76b3b9', 'expire' => '0', 'path' => '/customapps/parksboard/', 'secure' => false, 'httpOnly' => false, 'domain' => '' ] ] }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {}, 'params' => [ 'pass' => [ [maximum depth reached] ], 'controller' => 'Meetings', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/' ] ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } } object(Cake\Http\Runner) { [protected] index => (int) 4 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$response->getHeaders() |
|
); |
|
} |
|
|
|
return $next($request, $response); |
|
} |
|
} |
|
|
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {}, 'params' => [ 'pass' => [ [maximum depth reached] ], 'controller' => 'Meetings', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/' ] ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {}, 'params' => [ 'pass' => [ [maximum depth reached] ], 'controller' => 'Meetings', 'action' => 'index', 'plugin' => null, '_matchedRoute' => '/' ] ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } } 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); |
|
} |
|
|
|
$assetFile = $this->_getAssetFile($url); |
|
if ($assetFile === null || !file_exists($assetFile)) { |
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {} ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {} ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } } 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 (\Exception $e) { |
|
return $this->handleException($e, $request, $response); |
|
} |
|
} |
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {} ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
$next = $this->middleware->get($this->index); |
|
if ($next) { |
|
$this->index++; |
|
|
|
return $next($request, $response, $this); |
|
} |
|
|
|
// End of the queue |
|
return $response; |
object(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {} ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } } 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(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {} ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
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(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(Zend\Diactoros\ServerRequest) { [protected] headers => [ 'accept' => [ (int) 0 => '*/*' ], 'user-agent' => [ (int) 0 => 'claudebot' ], 'referer' => [ (int) 0 => 'https://www.fortwayneparks.org/customapps/parksboard?page=4' ], 'Host' => [ (int) 0 => 'www.fortwayneparks.org' ] ] [protected] headerNames => [ 'accept' => 'accept', 'user-agent' => 'user-agent', 'referer' => 'referer', 'host' => 'Host' ] [private] attributes => [ 'base' => '/customapps/parksboard', 'webroot' => '/customapps/parksboard/', 'session' => object(Cake\Network\Session) {} ] [private] cookieParams => [] [private] parsedBody => [] [private] queryParams => [ 'page' => '4' ] [private] serverParams => [ 'REDIRECT_UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'REDIRECT_SCRIPT_URL' => '/customapps/parksboard/', 'REDIRECT_SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'www.fortwayneparks.org', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgW3BaCfVVEgIjteMlrBiQAAAAw', 'SCRIPT_URL' => '/customapps/parksboard/', 'SCRIPT_URI' => 'https://www.fortwayneparks.org/customapps/parksboard/', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'www.fortwayneparks.org', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'https://www.fortwayneparks.org/customapps/parksboard?page=4', 'HTTP_HOST' => 'www.fortwayneparks.org', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin', 'SERVER_SIGNATURE' => '', 'SERVER_SOFTWARE' => 'Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33', 'SERVER_NAME' => 'www.fortwayneparks.org', 'SERVER_ADDR' => '192.168.1.60', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '34.230.68.214', 'DOCUMENT_ROOT' => '/var/www/html/fortwayneparks', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '/customapps/parksboard', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/cakephp_apps/parksboard/webroot', 'SERVER_ADMIN' => 'webmaster@cityoffortwayne.org', 'SCRIPT_FILENAME' => '/var/www/cakephp_apps/parksboard/webroot/index.php', 'REMOTE_PORT' => '44468', 'REDIRECT_QUERY_STRING' => 'page=4', 'REDIRECT_URL' => '/customapps/parksboard/', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => 'page=4', 'REQUEST_URI' => '/customapps/parksboard/?page=4', 'SCRIPT_NAME' => '/customapps/parksboard/index.php', 'PHP_SELF' => '/customapps/parksboard/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711650565.956, 'REQUEST_TIME' => (int) 1711650565 ] [private] uploadedFiles => [] [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => true } [private] method => 'GET' [private] requestTarget => null [private] uri => object(Zend\Diactoros\Uri) { [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'www.fortwayneparks.org' [private] port => null [private] path => '/' [private] query => 'page=4' [private] fragment => '' [private] uriString => null } } object(Zend\Diactoros\Response) { [protected] headers => [] [protected] headerNames => [] [private] phrases => [ (int) 100 => 'Continue', (int) 101 => 'Switching Protocols', (int) 102 => 'Processing', (int) 200 => 'OK', (int) 201 => 'Created', (int) 202 => 'Accepted', (int) 203 => 'Non-Authoritative Information', (int) 204 => 'No Content', (int) 205 => 'Reset Content', (int) 206 => 'Partial Content', (int) 207 => 'Multi-status', (int) 208 => 'Already Reported', (int) 226 => 'IM used', (int) 300 => 'Multiple Choices', (int) 301 => 'Moved Permanently', (int) 302 => 'Found', (int) 303 => 'See Other', (int) 304 => 'Not Modified', (int) 305 => 'Use Proxy', (int) 306 => 'Switch Proxy', (int) 307 => 'Temporary Redirect', (int) 308 => 'Permanent Redirect', (int) 400 => 'Bad Request', (int) 401 => 'Unauthorized', (int) 402 => 'Payment Required', (int) 403 => 'Forbidden', (int) 404 => 'Not Found', (int) 405 => 'Method Not Allowed', (int) 406 => 'Not Acceptable', (int) 407 => 'Proxy Authentication Required', (int) 408 => 'Request Time-out', (int) 409 => 'Conflict', (int) 410 => 'Gone', (int) 411 => 'Length Required', (int) 412 => 'Precondition Failed', (int) 413 => 'Request Entity Too Large', (int) 414 => 'Request-URI Too Large', (int) 415 => 'Unsupported Media Type', (int) 416 => 'Requested range not satisfiable', (int) 417 => 'Expectation Failed', (int) 418 => 'I'm a teapot', (int) 421 => 'Misdirected Request', (int) 422 => 'Unprocessable Entity', (int) 423 => 'Locked', (int) 424 => 'Failed Dependency', (int) 425 => 'Unordered Collection', (int) 426 => 'Upgrade Required', (int) 428 => 'Precondition Required', (int) 429 => 'Too Many Requests', (int) 431 => 'Request Header Fields Too Large', (int) 444 => 'Connection Closed Without Response', (int) 451 => 'Unavailable For Legal Reasons', (int) 499 => 'Client Closed Request', (int) 500 => 'Internal Server Error', (int) 501 => 'Not Implemented', (int) 502 => 'Bad Gateway', (int) 503 => 'Service Unavailable', (int) 504 => 'Gateway Time-out', (int) 505 => 'HTTP Version not supported', (int) 506 => 'Variant Also Negotiates', (int) 507 => 'Insufficient Storage', (int) 508 => 'Loop Detected', (int) 510 => 'Not Extended', (int) 511 => 'Network Authentication Required', (int) 599 => 'Network Connect Timeout Error' ] [private] reasonPhrase => '' [private] statusCode => (int) 200 [private] protocol => '1.1' [private] stream => object(Zend\Diactoros\Stream) { [protected] resource => resource [protected] stream => 'php://memory' } }
$server = new Server(new Application(dirname(__DIR__) . '/config')); |
|
|
|
// Run the request/response through the application |
|
// and emit the response. |
|
$server->emit($server->run()); |
|
|
No arguments
If you want to customize this error message, create src/Template/Error/error400.ctp