mirror of
https://github.com/snltty/linker.git
synced 2025-10-05 09:06:54 +08:00
cdkey
This commit is contained in:
26
readme/Demo/Controller/Demo.php
Normal file
26
readme/Demo/Controller/Demo.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user