On this page, we test multiple plugins and Markdown Extra features.
FEN chess
这是标准的西班牙开局(Ruy Lopez)。
graph TD;
a-->B;
a-->C;
Markdown Notices
A notice!
Another notice!!
The 3rd notice!!!
Math Equations
\(a^2+b^2=c^2\)
Code Highlight
<?php
namespace App\Controller;
use App\Service\BookService;
use App\Service\ContentService;
use Psr\Log\LoggerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
/**
* ApiController - AJAX 控制器
* 处理动态内容更新的 AJAX 请求
*
* 需求覆盖:
* - 4.3, 4.4: 每日内容刷新的 JSON API
* - 2.3: 随机图书刷新功能
*/
class ApiController extends AbstractController
{
private BookService $bookService;
private ContentService $contentService;
private LoggerInterface $logger;
public function __construct(
BookService $bookService,
ContentService $contentService,
LoggerInterface $logger
) {
$this->bookService = $bookService;
$this->contentService = $contentService;
$this->logger = $logger;
}