PHP code example of chocofamilyme / restapi-exception
1. Go to this page and download the library: Download chocofamilyme/restapi-exception library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chocofamilyme / restapi-exception example snippets
return [
$di = new Phalcon\Di\FactoryDefault()
$app = new Phalcon\Mvc\Micro($di);
$apiExceptions = new ApiExceptions($app, true);
$apiExceptions->register();
];
return [
'showInProduction' => [
\PDOException::class,
\Chocofamily\Exception\NoticeException::class
],
];
return [
# Ваша конфигурация
'dontReport' => [
\PDOException::class,
\Chocofamily\Exception\NoticeException::class
],
];