This commit is contained in:
snltty
2025-03-08 01:56:41 +08:00
parent c6eeab74b9
commit 0d1e62f07d
24 changed files with 2247 additions and 213 deletions

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace App\Plugin\Demo\Controller;
use App\Controller\Base\View\ManagePlugin;
use App\Interceptor\ManageSession;
use Kernel\Annotation\Interceptor;
/**
* Class Demo
* @package App\Plugin\Demo\Controller
*/
#[Interceptor(ManageSession::class)]
class Demo extends ManagePlugin
{
/**
* @throws \Kernel\Exception\ViewException
*/
public function test(): string
{
return $this->render(title: 'Demo', template: 'Demo.html', controller: true);
}
}