version8 override class not found

Permalink
Hi all,

Just trying out version 8 and having some problems with building a custom session storrage. The custom file is not loaded by the autoloader...

I have added the following to application/bootstrap/app.php
Core::bind('\Concrete\Core\Session\SessionFactory', function(){
   return new \Application\Src\Session\SessionFactory();
});


The error if got is as follows:
Class 'Application\Src\Session\SessionFactory' not found

There is a file is placed in Application\Src\Session\SessionFactory.php
namespace Application\Src\Session;
class SessionFactory implements SessionFactoryInterface
{
}


There is something that i'm missing but can't find out what it is.
in version 7 i got this working with a provider override. But as i understood this is not working anymore in version 8

Thanks in advance!

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi rvdbedum,

Class autoloading has changed in v8. In v8 you have the option of enabling the "enable_legacy_src_namespace" or create a custom autoloader.
https://documentation.concrete5.org/developers/extending-concrete5-w...