zcrm-php-sdk icon indicating copy to clipboard operation
zcrm-php-sdk copied to clipboard

Inject an instantiated persistence handler.

Open mogilvie opened this issue 6 years ago • 3 comments

Hi, the current method of creating a custom persistence handler doest allow the developer access to the constructor or setter methods.

Instead, consider injecting a custom persistence handler. I've done this by adding the custom handler to the config array at run time.

Although better yet would be a setter method.

mogilvie avatar Feb 25 '20 15:02 mogilvie

Hi,

This is exactly the feature I was searching for but couldn't find in the current code. This would allow properly integrating the PHP-SDK into frameworks with Dependency Injection / their own ORM. It's a simple addition to this codebase which would make integrating this library into our own projects so much easier and cleaner.

I hope this feature is merged into this library soon!

dansionGit avatar Sep 07 '20 13:09 dansionGit

Is there any way we can support to get this merged?

phil-schreiber avatar Sep 29 '20 07:09 phil-schreiber

Do I need to do anything else here?

mogilvie avatar Sep 30 '20 08:09 mogilvie