1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 08:55:53 +02:00

Make existing extensions compatible with new stack

This commit is contained in:
Franz Liedke
2019-08-09 20:42:03 +02:00
parent 1035636d0f
commit 3417f5a77e
8 changed files with 38 additions and 18 deletions

View File

@@ -12,11 +12,12 @@
namespace Flarum\Http\Exception;
use Exception;
use Flarum\Foundation\KnownError;
class RouteNotFoundException extends Exception
class RouteNotFoundException extends Exception implements KnownError
{
public function __construct($message = null, $code = 404, Exception $previous = null)
public function getType(): string
{
parent::__construct($message, $code, $previous);
return 'route_not_found';
}
}