-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payum\Core\Storage\FilesystemStorage::__set_state() with ZendCache enabled #8
Comments
Is this working without Module Cache? |
With 'module_map_cache_enabled' enabled it works, but not with 'config_cache_enabled'. |
I am not sure where the bag comes from... you can try to move the logic of storage and payment creation to the services and use in config only service names. Hope it helps. |
Cuz as I see it tries to cache the config, and serialize it. The Storage is not designed to be serialized. |
When I add the factories tot the config file, I still got the error ... 'factories' => array(
'payum' => 'Payum\PayumModule\Registry\RegistryFactory',
'payum.options' => 'Payum\PayumModule\Options\PayumOptionsFactory',
'payum.security.token_storage' => 'Payum\PayumModule\Security\TokenStorageFactory',
'payum.security.http_request_verifier' => 'Payum\PayumModule\Security\HttpRequestVerifierFactory',
), I followed this configuration steps |
you have to add factories for storage and payment, objects created in the config. The idea is not have a config with simple types, strings, scalars, arrays but not objects. So it could be easy serialized and cached |
I understand that, so there is no example/possibility to have 'factory classes' and not 'factory closures' in the config file? |
if you configure it will work, the payum support such use case, but yes there is not an example how to setup.... should be easy though. |
something like this, add a factory (you can also use a closure):
and add it to payum config:
|
Not sure about token_storage, if it does not it has to be fixed. |
You have to change the 'createService' functions, for now, I will disabled it and I hope it will be solved in the future. |
Since I've been moved to SpeckPaypal and created a wip/demo app of it, this can be closed. |
When I have this as my config file
And I enabled the Zend Config & Module Cache, I get this error
How can I solve this?
The text was updated successfully, but these errors were encountered: