標誌
探索 說明
登入
GNUsocial/gnu-social
4
0
Fork 1
您已經 fork 過 gnu-social
程式碼 問題 版本發布 Wiki 動態
gnu-social/config/routes.php

10 行
197 B
PHP
原始文件 永久連結 標準檢視 歷史記錄

[CORE][ROUTES] Example route
2020-03-12 17:59:13 +00:00
<?php
[TOOLS][CS-FIXER] Run new PHP CS Fixer config. Notably, adds strict_types
2021-10-10 09:26:18 +01:00
declare(strict_types = 1);
[DOCTRINE][SCHEMADEF] Create a new metadata driver to allow us to continue using static schemaDef functions This has the benefit of requiring fewer code changes, as well as providing a better isolation between GNU social and symfony, useful in case the framework needs to be changed
2020-03-15 21:21:11 +00:00
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
[CORE][ROUTES] Example route
2020-03-12 17:59:13 +00:00
return function (RoutingConfigurator $routes) {
[CORE][ROUTES] Implemented custom router, with an interface similar to the old one, which allows routes to be seperated into files
2020-03-21 18:53:25 +00:00
$routes->import('.', 'GNUsocial');
[CORE][ROUTES] Example route
2020-03-12 17:59:13 +00:00
};
複製固定連結
技術提供: Gitea 頁面: 79ms 模板: 2ms
繁體中文(台灣)
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
授權條款 API