mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:50:12 +00:00
Make Router::getModuleClass throw exceptions
- Add new MethodNotAllowedModule - Add new Module->determineClass catch blocks - Update Module and Router tests
This commit is contained in:
parent
bfcae2f79a
commit
4ee9e21a4f
6 changed files with 122 additions and 41 deletions
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Network\HTTPException;
|
||||
|
||||
class PageNotFound extends BaseModule
|
||||
{
|
||||
public static function content()
|
||||
{
|
||||
throw new HTTPException\NotFoundException(L10n::t('Page not found.'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue