diff --git a/app/AppKernel.php b/app/AppKernel.php index f56b8db..1059660 100644 --- a/app/AppKernel.php +++ b/app/AppKernel.php @@ -22,6 +22,7 @@ class AppKernel extends Kernel new Ob\HighchartsBundle\ObHighchartsBundle(), new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(), new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(), + new Sentry\SentryBundle\SentryBundle(), new Skobkin\Bundle\PointToolsBundle\SkobkinPointToolsBundle(), ]; diff --git a/app/config/config.yml b/app/config/config.yml index 3b8eaa3..afd105c 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -91,4 +91,7 @@ knp_paginator: pagination: KnpPaginatorBundle:Pagination:twitter_bootstrap_v3_pagination.html.twig csa_guzzle: - profiler: '%kernel.debug%' \ No newline at end of file + profiler: '%kernel.debug%' + +sentry: + dsn: "%sentry_dsn%" diff --git a/app/config/parameters.yml.dist b/app/config/parameters.yml.dist index 03dd404..3151dc3 100644 --- a/app/config/parameters.yml.dist +++ b/app/config/parameters.yml.dist @@ -37,3 +37,6 @@ parameters: telegram_max_connections: 2 # Telegram monolog handler telegram_log_chat_id: ~ + + # Sentry + sentry_dsn: ~ diff --git a/composer.json b/composer.json index b2b6ac2..3945333 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,8 @@ "unreal4u/telegram-api": "^2.2", "csa/guzzle-bundle": "3.0.x-dev", "unreal4u/monolog-telegram": "^0.2.0", - "symfony/web-server-bundle": "^3.3" + "symfony/web-server-bundle": "^3.3", + "sentry/sentry-symfony": "^2.2" }, "require-dev": { "symfony/phpunit-bridge": "^3.0", diff --git a/composer.lock b/composer.lock index 9efe344..19e28f0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c5bced083ddf69c7026e5c449d1a23eb", + "content-hash": "10d3223769281352a2e14abac2049d6d", "packages": [ { "name": "composer/ca-bundle", @@ -1785,6 +1785,57 @@ ], "time": "2014-01-12T16:20:24+00:00" }, + { + "name": "jean85/pretty-package-versions", + "version": "1.2", + "source": { + "type": "git", + "url": "https://github.com/Jean85/pretty-package-versions.git", + "reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Jean85/pretty-package-versions/zipball/75c7effcf3f77501d0e0caa75111aff4daa0dd48", + "reference": "75c7effcf3f77501d0e0caa75111aff4daa0dd48", + "shasum": "" + }, + "require": { + "ocramius/package-versions": "^1.2.0", + "php": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^6.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Jean85\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "A wrapper for ocramius/package-versions to get pretty versions strings", + "keywords": [ + "composer", + "package", + "release", + "versions" + ], + "time": "2018-06-13T13:22:40+00:00" + }, { "name": "jms/metadata", "version": "1.7.0", @@ -3169,6 +3220,139 @@ "description": "A security checker for your composer.lock", "time": "2018-12-19T17:14:59+00:00" }, + { + "name": "sentry/sentry", + "version": "1.10.0", + "source": { + "type": "git", + "url": "https://github.com/getsentry/sentry-php.git", + "reference": "b2b8ffe1560b9fb0110b02993594a4b04a511959" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/getsentry/sentry-php/zipball/b2b8ffe1560b9fb0110b02993594a4b04a511959", + "reference": "b2b8ffe1560b9fb0110b02993594a4b04a511959", + "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-11-09T12:27:19+00:00" + }, + { + "name": "sentry/sentry-symfony", + "version": "2.2.0", + "source": { + "type": "git", + "url": "https://github.com/getsentry/sentry-symfony.git", + "reference": "b36df3632e944d49d81599410a5c85edff2972a9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/getsentry/sentry-symfony/zipball/b36df3632e944d49d81599410a5c85edff2972a9", + "reference": "b36df3632e944d49d81599410a5c85edff2972a9", + "shasum": "" + }, + "require": { + "jean85/pretty-package-versions": "^1.0", + "php": "^7.1", + "sentry/sentry": "^1.9", + "symfony/config": "^3.0||^4.0", + "symfony/console": "^3.3||^4.0", + "symfony/dependency-injection": "^3.0||^4.0", + "symfony/event-dispatcher": "^3.0||^4.0", + "symfony/http-kernel": "^3.0||^4.0", + "symfony/security-core": "^3.0||^4.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.8", + "phpstan/phpstan": "^0.10", + "phpstan/phpstan-phpunit": "^0.10", + "phpunit/phpunit": "^7", + "scrutinizer/ocular": "^1.4", + "symfony/expression-language": "^3.0||^4.0" + }, + "type": "symfony-bundle", + "extra": { + "branch-alias": { + "master": "2.1.x-dev", + "releases/1.x": "1.1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Sentry\\SentryBundle\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "David Cramer", + "email": "dcramer@gmail.com" + }, + { + "name": "Alessandro Lai", + "email": "alessandro.lai85@gmail.com" + } + ], + "description": "Symfony integration for Sentry (http://getsentry.com)", + "homepage": "http://getsentry.com", + "keywords": [ + "errors", + "logging", + "sentry", + "symfony" + ], + "time": "2019-01-05T13:33:24+00:00" + }, { "name": "swiftmailer/swiftmailer", "version": "v5.4.12",