Open tractorcow opened 4 years ago
I can get around this for the time being by manually adding psr-4 loading to my project root.
"autoload": {
"psr-4": {
"App\\": "app/src/",
"PhpTek\\Sentry\\": "vendor/phptek/sentry/src/",
"PhpTek\\Sentry\\Monolog\\": "vendor/phptek/sentry/src/"
},
"classmap": [
"app/src/Page.php",
"app/src/PageController.php"
]
}
By the way, if you encounter this issue, sometimes you can "flush" it by running vendor/bin/sake dev/build flush=all
When doing the below command
sspak will crash if you are using any injected dependencies which require the class manifest to load.
This is because sspak will invoke autoload.php, but it will NOT call
CoreKernel::bootManifests
.In my case it errors when loading monolog, due to this class not loading.
https://github.com/phptek/silverstripe-sentry/blob/master/_config/config.yml