function raven_libraries_info in Raven: Sentry Integration 7.3
Same name and namespace in other branches
- 7 raven.module \raven_libraries_info()
- 7.2 raven.module \raven_libraries_info()
Implements hook_libraries_info().
File
- ./
raven.module, line 31 - Allows to track errors to Sentry server.
Code
function raven_libraries_info() {
$libraries = array();
if (module_exists('xautoload')) {
$libraries['sentry-php'] = array(
'name' => 'Sentry PHP',
'vendor url' => 'https://github.com/getsentry/sentry-php',
'download url' => 'https://github.com/getsentry/sentry-php/releases',
'version arguments' => array(
'file' => 'lib/Raven/Client.php',
'pattern' => '#const\\s+VERSION\\s*=\\s*\'([0-9a-z._-]+)\';#',
'lines' => 25,
),
'xautoload' => function ($adapter) {
$adapter
->composerJson('composer.json');
},
);
}
return $libraries;
}