friendica/src/Module/HTTPException/MethodNotAllowed.php
Hypolite Petovan 4ee9e21a4f Make Router::getModuleClass throw exceptions
- Add new MethodNotAllowedModule
- Add new Module->determineClass catch blocks
- Update Module and Router tests
2019-10-11 19:59:05 -04:00

16 lines
310 B
PHP

<?php
namespace Friendica\Module\HTTPException;
use Friendica\BaseModule;
use Friendica\Core\L10n;
use Friendica\Network\HTTPException;
class MethodNotAllowed extends BaseModule
{
public static function content()
{
throw new HTTPException\MethodNotAllowedException(L10n::t('Method Not Allowed.'));
}
}