Commit 8e8ae1f9 authored by okhin's avatar okhin 🚴
Browse files

Merge branch '30-ajout-de-sentry' into 'preprod'

Resolve "Ajout de sentry"

Closes #30

See merge request lqdn-interne/don!1
parents 141882db f2dc0478
......@@ -31,6 +31,10 @@ doctor: ## Check that everything is installed to use this application
@which msgfmt >/dev/null 2>&1 && echo "\033[32mmsgfmt installed\033[0m" || echo "\033[31mmsgfmt not installed\033[0m"
@which xgettext >/dev/null 2>&1 && echo "\033[32mxgettext installed\033[0m" || echo "\033[31mxgettext not installed\033[0m"
@which pdftk >/dev/null 2>&1 && echo "\033[32mpdftk installed\033[0m" || echo "\033[31mpdftk not installed\033[0m"
@test -s /usr/share/php7.0-xml/xml/dom.ini && echo "\033[032mphp-ext-dom installed\033[0m" || echo "\033[31mphp-ext-dom not installed (php-xml)\033[0m"
@test -s /usr/share/php7.0-zip/zip/zip.ini && echo "\033[032mphp-zip installed\033[0m" || echo "\033[31mphp-zip not installed\033[0m"
@test -s /usr/share/php7.0-mbstring/mbstring/mbstring.ini && echo "\033[032mphp-mbstring installed\033[0m" || echo "\033[31mphp-mbstring not installed\033[0m"
@test -s /usr/share/php7.0-curl/curl/curl.ini && echo "\033[032mphp-curl installed\033[0m" || echo "\033[31mphp-curl not installed\033[0m"
install: ## Install the application
@echo "\033[1m\033[36m==> Install Composer dependencies\033[0m\033[21m"
......
......@@ -46,6 +46,13 @@ define("SMTP_PW", getenv('SMTP_PW'));
define("DEBUG", getenv('DEBUG'));
define("SENTRY", getenv('SENTRY'));
$error_handler = new Raven_ErrorHandler($client);
$error_handler->registerExceptionHandler();
$error_handler->registerErrorHandler();
$error_handler->registerShutdownFunction();
if ('prod' !== $env) {
error_reporting(E_ALL|E_WARNING);
ini_set("display_errors", true);
......
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "9b5fbcec3580ad2d9a2645656bd3e875",
"hash": "edd15e67b3a00deeba773a575a3b276d",
"content-hash": "ece126552c48f94571113296890f60fa",
"packages": [
{
"name": "bcosca/fatfree",
......@@ -35,7 +36,7 @@
],
"description": "A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!",
"homepage": "http://fatfreeframework.com/",
"time": "2018-04-19T17:23:25+00:00"
"time": "2018-04-19 17:23:25"
},
{
"name": "doctrine/annotations",
......@@ -103,7 +104,7 @@
"docblock",
"parser"
],
"time": "2017-02-24T16:22:25+00:00"
"time": "2017-02-24 16:22:25"
},
{
"name": "doctrine/cache",
......@@ -173,7 +174,7 @@
"cache",
"caching"
],
"time": "2017-07-22T12:49:21+00:00"
"time": "2017-07-22 12:49:21"
},
{
"name": "doctrine/collections",
......@@ -240,7 +241,7 @@
"collections",
"iterator"
],
"time": "2017-01-03T10:49:41+00:00"
"time": "2017-01-03 10:49:41"
},
{
"name": "doctrine/common",
......@@ -313,7 +314,7 @@
"persistence",
"spl"
],
"time": "2017-07-22T08:35:12+00:00"
"time": "2017-07-22 08:35:12"
},
{
"name": "doctrine/dbal",
......@@ -384,7 +385,7 @@
"persistence",
"queryobject"
],
"time": "2017-07-22T20:44:48+00:00"
"time": "2017-07-22 20:44:48"
},
{
"name": "doctrine/inflector",
......@@ -451,7 +452,7 @@
"singularize",
"string"
],
"time": "2015-11-06T14:35:42+00:00"
"time": "2015-11-06 14:35:42"
},
{
"name": "doctrine/lexer",
......@@ -505,7 +506,7 @@
"lexer",
"parser"
],
"time": "2014-09-09T13:34:57+00:00"
"time": "2014-09-09 13:34:57"
},
{
"name": "paragonie/random_compat",
......@@ -554,7 +555,7 @@
"pseudorandom",
"random"
],
"time": "2018-07-04T16:31:37+00:00"
"time": "2018-07-04 16:31:37"
},
{
"name": "pimple/pimple",
......@@ -604,7 +605,7 @@
"container",
"dependency injection"
],
"time": "2018-01-21T07:42:36+00:00"
"time": "2018-01-21 07:42:36"
},
{
"name": "psr/container",
......@@ -653,7 +654,7 @@
"container-interop",
"psr"
],
"time": "2017-02-14T16:28:37+00:00"
"time": "2017-02-14 16:28:37"
},
{
"name": "psr/log",
......@@ -700,7 +701,7 @@
"psr",
"psr-3"
],
"time": "2016-10-10T12:19:37+00:00"
"time": "2016-10-10 12:19:37"
},
{
"name": "robmorgan/phinx",
......@@ -766,7 +767,71 @@
"migrations",
"phinx"
],
"time": "2017-01-23T08:53:20+00:00"
"time": "2017-01-23 08:53:20"
},
{
"name": "sentry/sentry",
"version": "1.9.2",
"source": {
"type": "git",
"url": "https://github.com/getsentry/sentry-php.git",
"reference": "6b4c80ee1f5d9d5ab5bae949f4eb5d758a0bf64b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/getsentry/sentry-php/zipball/6b4c80ee1f5d9d5ab5bae949f4eb5d758a0bf64b",
"reference": "6b4c80ee1f5d9d5ab5bae949f4eb5d758a0bf64b",
"shasum": ""
},
"require": {
"ext-curl": "*",
"php": "^5.3|^7.0"
},
"conflict": {
"raven/raven": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^1.8.0",
"monolog/monolog": "*",
"phpunit/phpunit": "^4.8.35 || ^5.7"
},
"suggest": {
"ext-hash": "*",
"ext-json": "*",
"ext-mbstring": "*",
"monolog/monolog": "Automatically capture Monolog events as breadcrumbs"
},
"bin": [
"bin/sentry"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.10.x-dev"
}
},
"autoload": {
"psr-0": {
"Raven_": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "David Cramer",
"email": "dcramer@gmail.com"
}
],
"description": "A PHP client for Sentry (http://getsentry.com)",
"homepage": "http://getsentry.com",
"keywords": [
"log",
"logging"
],
"time": "2018-08-18 19:41:03"
},
{
"name": "symfony/config",
......@@ -830,7 +895,7 @@
],
"description": "Symfony Config Component",
"homepage": "https://symfony.com",
"time": "2018-06-19T14:02:58+00:00"
"time": "2018-06-19 14:02:58"
},
{
"name": "symfony/console",
......@@ -899,7 +964,7 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
"time": "2018-05-23T05:02:55+00:00"
"time": "2018-05-23 05:02:55"
},
{
"name": "symfony/debug",
......@@ -955,7 +1020,7 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
"time": "2018-06-25T11:10:40+00:00"
"time": "2018-06-25 11:10:40"
},
{
"name": "symfony/filesystem",
......@@ -1005,7 +1070,7 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
"time": "2018-06-21T11:10:19+00:00"
"time": "2018-06-21 11:10:19"
},
{
"name": "symfony/http-foundation",
......@@ -1059,7 +1124,7 @@
],
"description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com",
"time": "2018-06-21T11:10:19+00:00"
"time": "2018-06-21 11:10:19"
},
{
"name": "symfony/polyfill-ctype",
......@@ -1114,7 +1179,7 @@
"polyfill",
"portable"
],
"time": "2018-04-30T19:57:29+00:00"
"time": "2018-04-30 19:57:29"
},
{
"name": "symfony/polyfill-mbstring",
......@@ -1173,7 +1238,7 @@
"portable",
"shim"
],
"time": "2018-04-26T10:06:28+00:00"
"time": "2018-04-26 10:06:28"
},
{
"name": "symfony/polyfill-php70",
......@@ -1232,7 +1297,7 @@
"portable",
"shim"
],
"time": "2018-04-26T10:06:28+00:00"
"time": "2018-04-26 10:06:28"
},
{
"name": "symfony/yaml",
......@@ -1291,7 +1356,7 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
"time": "2018-05-03T23:18:14+00:00"
"time": "2018-05-03 23:18:14"
},
{
"name": "vlucas/phpdotenv",
......@@ -1341,7 +1406,7 @@
"env",
"environment"
],
"time": "2018-07-01T10:25:50+00:00"
"time": "2018-07-01 10:25:50"
}
],
"packages-dev": [
......@@ -1402,7 +1467,7 @@
"gherkin",
"parser"
],
"time": "2017-08-30T11:04:43+00:00"
"time": "2017-08-30 11:04:43"
},
{
"name": "codeception/codeception",
......@@ -1493,7 +1558,7 @@
"functional testing",
"unit testing"
],
"time": "2018-07-16T08:14:50+00:00"
"time": "2018-07-16 08:14:50"
},
{
"name": "codeception/phpunit-wrapper",
......@@ -1539,7 +1604,7 @@
}
],
"description": "PHPUnit classes used by Codeception",
"time": "2018-06-20T20:08:14+00:00"
"time": "2018-06-20 20:08:14"
},
{
"name": "codeception/stub",
......@@ -1572,7 +1637,7 @@
"MIT"
],
"description": "Flexible Stub wrapper for PHPUnit's Mock Builder",
"time": "2018-05-18T14:33:08+00:00"
"time": "2018-05-18 14:33:08"
},
{
"name": "composer/semver",
......@@ -1634,7 +1699,7 @@
"validation",
"versioning"
],
"time": "2016-08-30T16:08:34+00:00"
"time": "2016-08-30 16:08:34"
},
{
"name": "composer/xdebug-handler",
......@@ -1678,7 +1743,7 @@
"Xdebug",
"performance"
],
"time": "2018-04-11T15:42:36+00:00"
"time": "2018-04-11 15:42:36"
},
{
"name": "doctrine/instantiator",
......@@ -1732,7 +1797,7 @@
"constructor",
"instantiate"
],
"time": "2015-06-14T21:17:01+00:00"
"time": "2015-06-14 21:17:01"
},
{
"name": "facebook/webdriver",
......@@ -1792,7 +1857,7 @@
"selenium",
"webdriver"
],
"time": "2018-05-16T17:37:13+00:00"
"time": "2018-05-16 17:37:13"
},
{
"name": "friendsofphp/php-cs-fixer",
......@@ -1883,7 +1948,7 @@
}
],
"description": "A tool to automatically fix PHP code style",
"time": "2018-07-06T10:37:40+00:00"
"time": "2018-07-06 10:37:40"
},
{
"name": "guzzlehttp/guzzle",
......@@ -1948,7 +2013,7 @@
"rest",
"web service"
],
"time": "2018-04-22T15:46:56+00:00"
"time": "2018-04-22 15:46:56"
},
{
"name": "guzzlehttp/promises",
......@@ -1999,7 +2064,7 @@
"keywords": [
"promise"
],
"time": "2016-12-20T10:07:11+00:00"
"time": "2016-12-20 10:07:11"
},
{
"name": "guzzlehttp/psr7",
......@@ -2064,7 +2129,7 @@
"uri",
"url"
],
"time": "2017-03-20T17:10:46+00:00"
"time": "2017-03-20 17:10:46"
},
{
"name": "myclabs/deep-copy",
......@@ -2109,7 +2174,7 @@
"object",
"object graph"
],
"time": "2017-10-19T19:58:43+00:00"
"time": "2017-10-19 19:58:43"
},
{
"name": "php-cs-fixer/diff",
......@@ -2160,7 +2225,7 @@
"keywords": [
"diff"
],
"time": "2018-02-15T16:58:55+00:00"
"time": "2018-02-15 16:58:55"
},
{
"name": "phpdocumentor/reflection-common",
......@@ -2214,7 +2279,7 @@
"reflection",
"static analysis"
],
"time": "2017-09-11T18:02:19+00:00"
"time": "2017-09-11 18:02:19"
},
{
"name": "phpdocumentor/reflection-docblock",
......@@ -2259,7 +2324,7 @@
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
"time": "2017-11-10T14:09:06+00:00"
"time": "2017-11-10 14:09:06"
},
{
"name": "phpdocumentor/type-resolver",
......@@ -2306,7 +2371,7 @@
"email": "me@mikevanriel.com"
}
],
"time": "2017-07-14T14:27:02+00:00"
"time": "2017-07-14 14:27:02"
},
{
"name": "phpspec/prophecy",
......@@ -2369,7 +2434,7 @@
"spy",
"stub"
],
"time": "2018-04-18T13:57:24+00:00"
"time": "2018-04-18 13:57:24"
},
{
"name": "phpunit/php-code-coverage",
......@@ -2432,7 +2497,7 @@
"testing",
"xunit"
],
"time": "2017-04-02T07:44:40+00:00"
"time": "2017-04-02 07:44:40"
},
{
"name": "phpunit/php-file-iterator",
......@@ -2479,7 +2544,7 @@
"filesystem",
"iterator"
],
"time": "2017-11-27T13:52:08+00:00"
"time": "2017-11-27 13:52:08"
},
{
"name": "phpunit/php-text-template",
......@@ -2520,7 +2585,7 @@
"keywords": [
"template"
],
"time": "2015-06-21T13:50:34+00:00"
"time": "2015-06-21 13:50:34"
},
{
"name": "phpunit/php-timer",
......@@ -2569,7 +2634,7 @@
"keywords": [
"timer"
],
"time": "2017-02-26T11:10:40+00:00"
"time": "2017-02-26 11:10:40"
},
{
"name": "phpunit/php-token-stream",
......@@ -2618,7 +2683,7 @@
"keywords": [
"tokenizer"
],
"time": "2017-12-04T08:55:13+00:00"
"time": "2017-12-04 08:55:13"
},
{
"name": "phpunit/phpunit",
......@@ -2700,7 +2765,7 @@
"testing",
"xunit"
],
"time": "2018-02-01T05:50:59+00:00"
"time": "2018-02-01 05:50:59"
},
{
"name": "phpunit/phpunit-mock-objects",
......@@ -2759,7 +2824,7 @@
"mock",
"xunit"
],
"time": "2017-06-30T09:13:00+00:00"
"time": "2017-06-30 09:13:00"
},
{
"name": "psr/http-message",
......@@ -2809,7 +2874,7 @@
"request",
"response"
],
"time": "2016-08-06T14:39:51+00:00"
"time": "2016-08-06 14:39:51"
},
{
"name": "sebastian/code-unit-reverse-lookup",
......@@ -2854,7 +2919,7 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
"time": "2017-03-04T06:30:41+00:00"
"time": "2017-03-04 06:30:41"
},
{
"name": "sebastian/comparator",
......@@ -2918,7 +2983,7 @@
"compare",
"equality"
],
"time": "2017-01-29T09:50:25+00:00"
"time": "2017-01-29 09:50:25"
},
{
"name": "sebastian/diff",
......@@ -2970,7 +3035,7 @@
"keywords": [
"diff"
],
"time": "2017-05-22T07:24:03+00:00"
"time": "2017-05-22 07:24:03"
},
{
"name": "sebastian/environment",
......@@ -3020,7 +3085,7 @@
"environment",
"hhvm"
],
"time": "2016-11-26T07:53:53+00:00"
"time": "2016-11-26 07:53:53"
},
{
"name": "sebastian/exporter",
......@@ -3087,7 +3152,7 @@
"export",
"exporter"
],
"time": "2016-11-19T08:54:04+00:00"
"time": "2016-11-19 08:54:04"
},
{
"name": "sebastian/global-state",
......@@ -3138,7 +3203,7 @@
"keywords": [
"global state"
],
"time": "2015-10-12T03:26:01+00:00"
"time": "2015-10-12 03:26:01"
},
{
"name": "sebastian/object-enumerator",
......@@ -3184,7 +3249,7 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
"time": "2017-02-18T15:18:39+00:00"
"time": "2017-02-18 15:18:39"
},
{
"name": "sebastian/recursion-context",
......@@ -3237,7 +3302,7 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
"time": "2016-11-19T07:33:16+00:00"
"time": "2016-11-19 07:33:16"
},
{
"name": "sebastian/resource-operations",
......@@ -3279,7 +3344,7 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
"time": "2015-07-28T20:34:47+00:00"
"time": "2015-07-28 20:34:47"
},
{
"name": "sebastian/version",
......@@ -3322,7 +3387,7 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
"time": "2016-10-03T07:35:21+00:00"
"time": "2016-10-03 07:35:21"
},
{
"name": "symfony/browser-kit",
......@@ -3379,7 +3444,7 @@
],
"description": "Symfony BrowserKit Component",
"homepage": "https://symfony.com",
"time": "2018-03-19T22:32:39+00:00"
"time": "2018-03-19 22:32:39"
},
{
"name": "symfony/css-selector",
......@@ -3432,7 +3497,7 @@
],
"description": "Symfony CssSelector Component",
"homepage": "https://symfony.com",
"time": "2018-05-16T12:49:49+00:00"
"time": "2018-05-16 12:49:49"
},
{
"name": "symfony/dom-crawler",
......@@ -3489,7 +3554,7 @@
],
"description": "Symfony DomCrawler Component",
"homepage": "https://symfony.com",
"time": "2018-05-01T22:53:27+00:00"
"time": "2018-05-01 22:53:27"
},
{
"name": "symfony/event-dispatcher",
......@@ -3552,7 +3617,7 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
"time": "2018-04-06T07:35:25+00:00"
"time": "2018-04-06 07:35:25"
},
{
"name": "symfony/finder",
......@@ -3601,7 +3666,7 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
"time": "2018-06-19T20:52:10+00:00"
"time": "2018-06-19 20:52:10"
},
{
"name": "symfony/options-resolver",
......@@ -3655,7 +3720,7 @@
"configuration",
"options"
],
"time": "2018-05-30T04:26:49+00:00"
"time": "2018-05-30 04:26:49"
},
{
"name": "symfony/polyfill-php72",
......@@ -3710,7 +3775,7 @@
"portable",
"shim"
],
"time": "2018-04-26T10:06:28+00:00"
"time": "2018-04-26 10:06:28"
},
{
"name": "symfony/process",
......@@ -3759,7 +3824,7 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",