Missing Method in AppController 📋

Cake\Controller\Exception\MissingActionException
Toggle Vendor Stack Frames

Error The action webroot is not defined in AppController

        if ($result instanceof ResponseInterface) {
            return $result;
        }
        $action $controller->getAction();
        $args $this->getActionArgs(
            $action,
            array_values((array)$controller->getRequest()->getParam('pass'))
        );

Error Create AppController::webroot() in file: src/Controller/AppController.php.

<?php
namespace App\Controller;

use 
App\Controller\AppController;

class 
AppController extends AppController
{

    public function 
webroot()
    {

    }
}

If you want to customize this error message, create templates/Error/missing_action.php