src/Koldy/Application.php
public static function route(): AbstractRoute
    {
        if (static::$routing === null) {
            $config = static::getConfig('application');
            $routingClassName = $config->get('routing_class');
            $routeOptions = $config->get('routing_options') ?? [];

            if ($routingClassName == null) {
                static::terminateWithError('Can not init routing class when routing_class is not set in application config');
            }

            static::$routing = new $routingClassName($routeOptions);
        }

        return static::$routing;
    }
public static function route(): AbstractRoute
    {
        if (static::$routing === null) {
            $config = static::getConfig('application');
            $routingClassName = $config->get('routing_class');
            $routeOptions = $config->get('routing_options') ?? [];

            if ($routingClassName == null) {
                static::terminateWithError('Can not init routing class when routing_class is not set in application config');
            }

            static::$routing = new $routingClassName($routeOptions);
        }

        return static::$routing;
    }
public static function route ( ) : AbstractRoute { if ( static :: $ routing === null ) { $ config = static :: getConfig ( 'application' ) ; $ routingClassName = $ config -> get ( 'routing_class' ) ; $ routeOptions = $ config -> get ( 'routing_options' ) ?? [ ] ; if ( $ routingClassName == null ) { static :: terminateWithError ( 'Can not init routing class when routing_class is not set in application config' ) ; } static :: $ routing = new $ routingClassName ( $ routeOptions ) ; } return static :: $ routing ; }
Get the initialized routing class

@return \Koldy\Route\AbstractRoute
@throws Exception
Get the initialized routing class