protected function setDynamicRoute(Route $route): void
    {
        // Parse the path
        $parsedRoute = $this->app->pathParser()->parse($route->getPath());

        // Set the properties
        $route->setRegex($parsedRoute['regex']);
        $route->setParams($parsedRoute['params']);
        $route->setSegments($parsedRoute['segments']);
    }
protected function setDynamicRoute(Route $route): void
    {
        // Parse the path
        $parsedRoute = $this->app->pathParser()->parse($route->getPath());

        // Set the properties
        $route->setRegex($parsedRoute['regex']);
        $route->setParams($parsedRoute['params']);
        $route->setSegments($parsedRoute['segments']);
    }
protected function setDynamicRoute ( Route $ route ) : void { // Parse the path $ parsedRoute = $ this -> app -> pathParser ( ) -> parse ( $ route -> getPath ( ) ) ; // Set the properties $ route -> setRegex ( $ parsedRoute [ 'regex' ] ) ; $ route -> setParams ( $ parsedRoute [ 'params' ] ) ; $ route -> setSegments ( $ parsedRoute [ 'segments' ] ) ; }
Set a dynamic route's properties.

@param Route $route The route

@return void
Set a dynamic route s properties .