Skip to content

Commit

Permalink
Merge pull request #162 from City-of-Helsinki/UHF-9978
Browse files Browse the repository at this point in the history
UHF-9978: Raven dependency
  • Loading branch information
tuutti authored Apr 17, 2024
2 parents ccf66eb + 09ac167 commit a4a0aaf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"prefer-stable": true,
"require": {
"drupal/entity": "^1.0",
"drupal/filelog": "^2.1",
"drupal/health_check": "^3.0",
"drupal/raven": "^4.0 || ^5.0",
"firebase/php-jwt": "^6.5",
"php": "^8.1",
"t4web/composer-lock-parser": "^1.0",
Expand Down
3 changes: 2 additions & 1 deletion helfi_api_base.info.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: HELfi api base module
type: module
package: Custom
core_version_requirement: ^9 || ^10
core_version_requirement: ^9 || ^10 || ^11
dependencies:
- drupal:migrate
- entity:entity
- health_check:health_check
- raven:raven
16 changes: 16 additions & 0 deletions helfi_api_base.install
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,19 @@ function helfi_api_base_update_9015() : void {
catch (\InvalidArgumentException) {
}
}

/**
* Install raven module.
*/
function helfi_api_base_update_9016() : void {
Drupal::service('module_installer')->install([
'raven',
]);
Drupal::configFactory()->getEditable('raven.settings')
->set('drush_error_handler', TRUE)
->set('request_tracing', TRUE)
->set('traces_sample_rate', 0.2)
->set('database_tracing', TRUE)
->set('twig_tracing', TRUE)
->save();
}
1 change: 1 addition & 0 deletions helfi_api_base.services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ services:
Drupal\helfi_api_base\EventSubscriber\DisableUserPasswordSubscriber: ~
Drupal\helfi_api_base\Features\FeatureManager: ~

Drupal\helfi_api_base\Environment\EnvironmentResolverInterface: '@helfi_api_base.environment_resolver'
Drupal\helfi_api_base\Environment\EnvironmentResolver: '@helfi_api_base.environment_resolver'
helfi_api_base.environment_resolver:
class: Drupal\helfi_api_base\Environment\EnvironmentResolver
Expand Down

0 comments on commit a4a0aaf

Please sign in to comment.