Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Debug\FatalErrorHandler; Chris@0: Chris@0: use Symfony\Component\Debug\Exception\FatalErrorException; Chris@0: Chris@0: /** Chris@0: * Attempts to convert fatal errors to exceptions. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface FatalErrorHandlerInterface Chris@0: { Chris@0: /** Chris@0: * Attempts to convert an error into an exception. Chris@0: * Chris@0: * @param array $error An array as returned by error_get_last() Chris@0: * @param FatalErrorException $exception A FatalErrorException instance Chris@0: * Chris@0: * @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise Chris@0: */ Chris@0: public function handleError(array $error, FatalErrorException $exception); Chris@0: }