laminas-api-tools / api-tools

Laminas API Tools module for Laminas
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
37 stars 19 forks source link

access zf2 container in RestAPI #45

Open michalbundyra opened 4 years ago

michalbundyra commented 4 years ago

Hi, i try to access a value stored in a zf2 session container. In my ressource class (extends AbstractResourceListener) it is unfortunately NULL;

Why does this not work? Why is the container stored value empty?

fetchAll($params = array()): $container = new Container("store_login"); $container->value = NOT NULL

create($data) $container = new Container("store_login"); $container->value = NULL

thanks for help ternes3


Originally posted by @ternes3 at https://github.com/zfcampus/zf-apigility/issues/134

michalbundyra commented 4 years ago

This behavior depends on the php version, with 5.5.28 is everything fine, with the newest php (6.6.13) version, i get the described behavior.


Originally posted by @ternes3 at https://github.com/zfcampus/zf-apigility/issues/134#issuecomment-143245634