overriding src files

Permalink
Hi,

I'm up to the following challenge. I want to make some changes to the /src/session/Srorage/SessionFactory.php. I Have placed a copy of this file in my application/SessionFactory.php. How can i let concrete know that he needs to use this file instead of the original file.

Thanks in advance!

Regards, Raymond

 
jordif replied on at Permalink Best Answer Reply
jordif
Here is some documentation about overriding:

http://documentation.concrete5.org/tutorials/override-almost-any-co...

According to that page, "any files can be overridden in concrete5 simply by providing a file at a specific path. Pretty much the only exclusion to what can be overridden by path is the contents of concrete/src/"

Hope this helps,

Jordi
rvdbedum replied on at Permalink Reply
Jordi, thank you for your response. If i understand the documentation correct it isn't possible to override the files in the concrete/src folder.

Regards, Raymond
rvdbedum replied on at Permalink Reply
Hi Jordi,

Just Got it. i had to start with creating a custom ServiceProvider for Session and go on from there.

Thanks you for your help.

Regards, Raymong