Error: FilesController could not be found.
public function create(ServerRequest $request, Response $response) |
|
{ |
|
$className = $this->getControllerClass($request); |
|
if (!$className) { |
|
$this->missingController($request); |
|
} |
|
$reflection = new ReflectionClass($className); |
|
if ($reflection->isAbstract() || $reflection->isInterface()) { |
|
$this->missingController($request); |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ (int) 0 => 'gallery', (int) 1 => 'pozzo_fiorito.jpg' ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/files/image/gallery/pozzo_fiorito.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null }
protected function _getController($request, $response) |
|
{ |
|
$factory = new ControllerFactory(); |
|
|
|
return $factory->create($request, $response); |
|
} |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ (int) 0 => 'gallery', (int) 1 => 'pozzo_fiorito.jpg' ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/files/image/gallery/pozzo_fiorito.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
public function beforeDispatch(Event $event) |
|
{ |
|
$request = $event->getData('request'); |
|
$response = $event->getData('response'); |
|
$event->setData('controller', $this->_getController($request, $response)); |
|
} |
|
|
|
/** |
|
* Gets controller to use, either plugin or application controller. |
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ (int) 0 => 'gallery', (int) 1 => 'pozzo_fiorito.jpg' ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/files/image/gallery/pozzo_fiorito.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
{ |
|
$name = $event->getName(); |
|
list(, $method) = explode('.', $name); |
|
if (empty($this->_config['for']) && empty($this->_config['when'])) { |
|
return $this->{$method}($event); |
|
} |
|
if ($this->matches($event)) { |
|
return $this->{$method}($event); |
|
} |
object(Cake\Event\Event) { result => null [protected] _name => 'Dispatcher.beforeDispatch' [protected] _subject => object(Cake\Http\ActionDispatcher) { [protected] filters => [ [maximum depth reached] ] [protected] factory => object(Cake\Http\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' } [protected] _data => [ 'request' => object(Cake\Http\ServerRequest) {}, 'response' => object(Cake\Http\Response) {} ] [protected] _stopped => false }
protected function _callListener(callable $listener, Event $event) |
|
{ |
|
$data = $event->getData(); |
|
|
|
return $listener($event, ...array_values($data)); |
|
} |
|
|
|
/** |
|
* Returns a list of all listeners for an eventKey in the order they should be called |
object(Cake\Event\Event) { result => null [protected] _name => 'Dispatcher.beforeDispatch' [protected] _subject => object(Cake\Http\ActionDispatcher) { [protected] filters => [ [maximum depth reached] ] [protected] factory => object(Cake\Http\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' } [protected] _data => [ 'request' => object(Cake\Http\ServerRequest) {}, 'response' => object(Cake\Http\Response) {} ] [protected] _stopped => false } object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ (int) 0 => 'gallery', (int) 1 => 'pozzo_fiorito.jpg' ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/files/image/gallery/pozzo_fiorito.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
foreach ($listeners as $listener) { |
|
if ($event->isStopped()) { |
|
break; |
|
} |
|
$result = $this->_callListener($listener['callable'], $event); |
|
if ($result === false) { |
|
$event->stopPropagation(); |
|
} |
|
if ($result !== null) { |
[ (int) 0 => object(Cake\Routing\Filter\ControllerFactoryFilter) { [protected] _priority => (int) 50 [protected] _defaultConfig => [ 'when' => null, 'for' => null, 'priority' => null ] [protected] _config => [ 'when' => null, 'for' => null, 'priority' => (int) 50 ] [protected] _configInitialized => true }, (int) 1 => 'handle' ] object(Cake\Event\Event) { result => null [protected] _name => 'Dispatcher.beforeDispatch' [protected] _subject => object(Cake\Http\ActionDispatcher) { [protected] filters => [ [maximum depth reached] ] [protected] factory => object(Cake\Http\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' } [protected] _data => [ 'request' => object(Cake\Http\ServerRequest) {}, 'response' => object(Cake\Http\Response) {} ] [protected] _stopped => false }
$subject = $this; |
|
} |
|
|
|
$event = new $this->_eventClass($name, $subject, $data); |
|
$this->getEventManager()->dispatch($event); |
|
|
|
return $event; |
|
} |
|
} |
object(Cake\Event\Event) { result => null [protected] _name => 'Dispatcher.beforeDispatch' [protected] _subject => object(Cake\Http\ActionDispatcher) { [protected] filters => [ [maximum depth reached] ] [protected] factory => object(Cake\Http\ControllerFactory) {} [protected] _eventManager => object(Cake\Event\EventManager) {} [protected] _eventClass => '\Cake\Event\Event' } [protected] _data => [ 'request' => object(Cake\Http\ServerRequest) {}, 'response' => object(Cake\Http\Response) {} ] [protected] _stopped => false }
{ |
|
if (Router::getRequest(true) !== $request) { |
|
Router::pushRequest($request); |
|
} |
|
$beforeEvent = $this->dispatchEvent('Dispatcher.beforeDispatch', compact('request', 'response')); |
|
|
|
$request = $beforeEvent->getData('request'); |
|
if ($beforeEvent->getResult() instanceof Response) { |
|
return $beforeEvent->getResult(); |
'Dispatcher.beforeDispatch' [ 'request' => object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ [maximum depth reached] ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ [maximum depth reached] ], 'post' => [ [maximum depth reached] ], 'put' => [ [maximum depth reached] ], 'patch' => [ [maximum depth reached] ], 'delete' => [ [maximum depth reached] ], 'head' => [ [maximum depth reached] ], 'options' => [ [maximum depth reached] ], 'ssl' => [ [maximum depth reached] ], 'ajax' => [ [maximum depth reached] ], 'flash' => [ [maximum depth reached] ], 'requested' => [ [maximum depth reached] ], 'json' => [ [maximum depth reached] ], 'xml' => [ [maximum depth reached] ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Network\Session) {} [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null }, 'response' => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ [maximum depth reached] ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [], 'body' => '' } ]
*/ |
|
public function dispatch(ServerRequest $request, Response $response) |
|
{ |
|
$actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if (isset($request->params['return'])) { |
|
return $response->body(); |
|
} |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ (int) 0 => 'gallery', (int) 1 => 'pozzo_fiorito.jpg' ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/files/image/gallery/pozzo_fiorito.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
|
|
object(Cake\Http\ServerRequest) { params => [ 'plugin' => null, 'controller' => 'Files', 'action' => 'image', '_ext' => null, 'pass' => [ (int) 0 => 'gallery', (int) 1 => 'pozzo_fiorito.jpg' ], '_matchedRoute' => '/:controller/:action/*', 'isAjax' => false ] data => [] query => [] cookies => [] url => 'files/image/gallery/pozzo_fiorito.jpg' base => '' webroot => '/' here => '/files/image/gallery/pozzo_fiorito.jpg' trustProxy => false [protected] _environment => [ 'REDIRECT_REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_REDIRECT_HTTPS' => 'on', 'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_REDIRECT_STATUS' => '200', 'REDIRECT_UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'REDIRECT_HTTPS' => 'on', 'REDIRECT_SSL_TLS_SNI' => 'lepradine.it', 'REDIRECT_STATUS' => '200', 'UNIQUE_ID' => 'ZgX1jH8AAQEAAA4W1KEAAAAG', 'HTTPS' => 'on', 'SSL_TLS_SNI' => 'lepradine.it', 'HTTP_ACCEPT' => '*/*', 'HTTP_USER_AGENT' => 'claudebot', 'HTTP_REFERER' => 'http://lepradine.it/files/image/gallery/pozzo_fiorito.jpg', 'HTTP_HOST' => 'lepradine.it', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.7 (Ubuntu) Server at lepradine.it Port 443</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.7 (Ubuntu)', 'SERVER_NAME' => 'lepradine.it', 'SERVER_ADDR' => '45.55.160.216', 'SERVER_PORT' => '443', 'REMOTE_ADDR' => '18.213.110.162', 'DOCUMENT_ROOT' => '/var/www/lepradine', 'REQUEST_SCHEME' => 'https', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/var/www/lepradine', 'SERVER_ADMIN' => 'info@core41.com', 'SCRIPT_FILENAME' => '/var/www/lepradine/webroot/index.php', 'REMOTE_PORT' => '37482', 'REDIRECT_URL' => '/webroot/files/image/gallery/pozzo_fiorito.jpg', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/image/gallery/pozzo_fiorito.jpg', 'SCRIPT_NAME' => '/webroot/index.php', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711666572.231, 'REQUEST_TIME' => (int) 1711666572, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null, 'HTTP_IF_NONE_MATCH' => null, 'HTTP_IF_MODIFIED_SINCE' => null ] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'https' [private] userInfo => '' [private] host => 'lepradine.it' [private] port => null [private] path => '/files/image/gallery/pozzo_fiorito.jpg' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Network\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => '1440' [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
In the case you tried to access a plugin controller make sure you added it to your composer file or you use the autoload option for the plugin.
Error: Create the class FilesController below in file: src/Controller/FilesController.php
<?php
namespace App\Controller;
use App\Controller\AppController;
class FilesController extends AppController
{
}
If you want to customize this error message, create src/Template/Error/missing_controller.ctp