private function findDynamicCallbacks(array $map = null, ?string $controller = null): void
    {
        if (!$map) {
            return;
        }

        // try to find global callback for this controller slug
        if (array_key_exists($controller, $map)) {
            $class = (string)$map[$controller];
            if (!Str::likeEmpty($class)) {
                $this->callbackClass = $class;
            }
        }
    }
private function findDynamicCallbacks(array $map = null, ?string $controller = null): void
    {
        if (!$map) {
            return;
        }

        // try to find global callback for this controller slug
        if (array_key_exists($controller, $map)) {
            $class = (string)$map[$controller];
            if (!Str::likeEmpty($class)) {
                $this->callbackClass = $class;
            }
        }
    }
private function findDynamicCallbacks ( array $ map = null , ? string $ controller = null ) : void { if ( ! $ map ) { return ; } // try to find global callback for this controller slug if ( array_key_exists ( $ controller , $ map ) ) { $ class = ( string ) $ map [ $ controller ] ; if ( ! Str :: likeEmpty ( $ class ) ) { $ this -> callbackClass = $ class ; } } }
Prepare dynamic callback data for routing
@param array|null $map
@param string|null $controller
@return void
Prepare dynamic callback data for routing