for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.5
*/
namespace Quantum\Middleware\Exceptions;
use Quantum\Exceptions\BaseException;
* Class MiddlewareException
* @package Quantum\Exceptions
class MiddlewareException extends BaseException
{
* @param string $name
* @return MiddlewareException
public static function notDefined(string $name): MiddlewareException
return new static(t('exception.middleware_not_defined', $name), E_WARNING);
}
public static function middlewareNotFound(string $name): MiddlewareException
return new static(t('exception.middleware_not_found', $name), E_WARNING);