OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
23
app/Domain/Modulemanager/Controllers/Notavailable.php
Normal file
23
app/Domain/Modulemanager/Controllers/Notavailable.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\ModuleManager\Controllers;
|
||||
|
||||
use Leantime\Core\Controller\Frontcontroller;
|
||||
use Leantime\Core\Events\DispatchesEvents;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class Notavailable
|
||||
{
|
||||
/**
|
||||
* Redirects to the error page or a filtered alternative.
|
||||
*
|
||||
* @param array $params Request parameters
|
||||
*/
|
||||
public function get(array $params): Response
|
||||
{
|
||||
$redirect = BASE_URL.'errors/error404';
|
||||
$redirect = DispatchesEvents::dispatch_filter('notAvailableRedirect', $redirect, $params);
|
||||
|
||||
return Frontcontroller::redirect($redirect);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user