phptek / silverstripe-sentry

Flexible Sentry compatible bug aggregation client for Silverstripe applications.
BSD 3-Clause "New" or "Revised" License
12 stars 22 forks source link

Add PSR-4 autoload directives #50

Closed tractorcow closed 4 years ago

tractorcow commented 4 years ago

This would help when autoloading (e.g. with sspak).

https://github.com/silverstripe/sspak/issues/76

I noticed some of the namespaces are a bit inconsistent, but I could get it working with these in my local composer.json

"psr-4": {
            "PhpTek\\Sentry\\": "vendor/phptek/sentry/src/",
            "PhpTek\\Sentry\\Monolog\\": "vendor/phptek/sentry/src/"
        },
tractorcow commented 4 years ago

Fix at https://github.com/phptek/silverstripe-sentry/pull/51 @phptek :)