PHP code example of hotel-quickly / error-collector
1. Go to this page and download the library: Download hotel-quickly/error-collector 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/ */
hotel-quickly / error-collector example snippets
$configurator->onCompile[] = function ($configurator, $compiler) {
$compiler->addExtension('errorCollector', new \HQ\ErrorCollector\ErrorCollectorExtension);
};
class ErrorCollectorPresenter extends BasePresenter {
/** @autowire
* @var \HQ\ErrorCollector\ErrorCollector */
protected $errorCollector;
public function actionUploadErrors()
{
$exceptionCnt = $this->errorCollector->uploadFiles();
}
}