mirror of
https://github.com/snltty/linker.git
synced 2025-10-03 00:12:15 +08:00
26 lines
516 B
PHP
26 lines
516 B
PHP
<?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);
|
|
}
|
|
} |