src/Yggdrasil/Core/Routing/RestRouter.php
public static function getInstance(RoutingConfiguration $configuration, Request $request): RestRouter
    {
        if (null === self::$instance) {
            self::$instance = new RestRouter($configuration, $request);
        }

        return self::$instance;
    }
public static function getInstance(RoutingConfiguration $configuration, Request $request): RestRouter
    {
        if (null === self::$instance) {
            self::$instance = new RestRouter($configuration, $request);
        }

        return self::$instance;
    }
public static function getInstance ( RoutingConfiguration $ configuration , Request $ request ) : RestRouter { if ( null === self :: $ instance ) { self :: $ instance = new RestRouter ( $ configuration , $ request ) ; } return self :: $ instance ; }
Returns instance of router

@param RoutingConfiguration $configuration
@param Request $request
@return RestRouter
Returns instance of router