Uncaught ReflectionException after composer update #55
Comments
I ran into this problem because my controllers had ...Except in one case: The 404 template. I get the same reflection error, which I would fix in the same way...but it expects a class named |
@rolandp Check your composer.json file. It should be along the lines of: "autoload": {
"psr-4": {
"App\\": "app/"
}
},
"require": {
"php": ">=7",
"composer/installers": "~1.0",
"illuminate/support": "~5.4",
"roots/sage-lib": "~9.0.0-beta.4",
"soberwp/controller": "~9.0.0-beta.4"
}, @alwaysblank I kind of addressed how to get around this here #49 (comment) which should allow you to declare 404 templates. |
There is a difference between dev-master and beta.4. dev-master uses PSR4, so @alwaysblank is correct. The class names need to be PSR4 complaint and the namespace needs to be @alwaysblank interesting note on the 404, I'm doing a template override option (which will also address underscores in filenames) so that will be the best workaround. I believe PSR4 loading is worth that caveat. |
After running a composer update on my root sage theme
The entire theme stopped working. In the error log it is output this error
Any idea what's causing this?
The text was updated successfully, but these errors were encountered: