-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,23 +11,22 @@ | |
<description> | ||
Plugin to include the Sentry PHP library in Joomla | ||
|
||
<![CDATA[ | ||
<![CDATA[ | ||
<p>Example Content of PHP Settings File: (note that variable names MUST match exactly)</p> | ||
<pre> | ||
<?php | ||
<?php | ||
class customConfig { | ||
public $sentry_dsn = 'https://[email protected]/987654'; // Change to your Sentry DSN | ||
public $sentry_environment = 'production'; // Change your environment label | ||
} | ||
?> | ||
</pre> | ||
<p>To prepend Sentry execution to .htaccess file (bypassing this plugin):</p> | ||
<ol> | ||
<li>Create settings file as detailed above</li> | ||
<li> | ||
Create a PHP file to call Sentry: | ||
<pre> | ||
<?php | ||
<?php | ||
require_once dirname(__DIR__) . '/foldername/settings-file.php'; // Change to location of settings file | ||
require_once dirname(__DIR__) . '/plugins/system/kernelsentry/vendor/autoload.php'; | ||
$settings_class = new customConfig(); // Change class name to match the class name in your settings file | ||
|
@@ -38,7 +37,6 @@ Sentry\init( | |
'environment' => $settings_class->sentry_environment | ||
] | ||
); | ||
?> | ||
</pre> | ||
</li> | ||
<li> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters