taktik-nette
This commit is contained in:
20
app/UI/Error/Error4xx/Error4xxPresenter.php
Normal file
20
app/UI/Error/Error4xx/Error4xxPresenter.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\UI\Error\Error4xx;
|
||||
|
||||
use Nette;
|
||||
use Nette\Application\Attributes\Requires;
|
||||
|
||||
/**
|
||||
* Handles 4xx HTTP error responses.
|
||||
*/
|
||||
#[Requires(methods: '*', forward: true)]
|
||||
final class Error4xxPresenter extends Nette\Application\UI\Presenter
|
||||
{
|
||||
public function renderDefault(Nette\Application\BadRequestException $exception): void
|
||||
{
|
||||
$this->redirect(':Survey:default');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user