略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Yaf_Route_Static

2024-04-25

The Yaf_Route_Static class

(Yaf >=1.0.0)

简介

默认的,Yaf_Router 只有一个Yaf_Route_Static 作为它默认的路由

Yaf_Route_Static 旨在处理80%的要求。

请注意:实例化 Yaf_Route_Static 是没有必要的,也没必要将它加入Yaf_Router的路由堆栈,因为在Yaf_Router的路由堆栈中总是存在它的一个实例,并且总是在最后被调用。

类摘要

class Yaf_Route_Static implements Yaf_Router {
/* 方法 */
public assemble(array $info, array $query = ?): string
public match(string $uri): void
public route(Yaf_Request_Abstract $request): bool
}

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.yaf-route-static.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3