Asf_Dispatcher


Introduction

Asf_Dispatcher 负责路由分发

The framework automatically initializes the 'dispatcher' when the 'Application' is running.

在开启命名空间情况下(asf.use_namespace=1)类名为 Asf\Dispatcher

Class synopsis

<?php
final class Asf_Dispatcher
{
    public static Asf_Dispatcher getInstance(void)
    public Asf_Router getRouter(void)
    public Asf_Http_Request getRequest(void)
    public Asf_Dispatcher setDefaultModule(string $name)
    public Asf_Dispatcher setDefaultService(string $name)
    public Asf_Dispatcher setDefaultAction(string $name)
}

Link