Closed weierophinney closed 4 years ago
the possible solution probably unset the zend-view from templates option when container is not zend-servicemanager?
Originally posted by @samsonasik at https://github.com/zendframework/zend-expressive-skeleton/issues/253#issuecomment-385224328
I just tried all containers. zend-view works with Aura.Di and zend-servicemanager (and it used to work with the old pimple container adapter used in v1 and v2).
Disabling template options is complicated. It's easier to add a hint to the container config:
Which container do you want to use for dependency injection?
[1] Aura.Di
[2] Pimple
[3] zend-servicemanager (required for zend-view)
[4] Auryn
[5] Symfony DI Container
Make your selection or type a composer package name and version (zend-servicemanager):
Would that work for you?
Originally posted by @geerteltink at https://github.com/zendframework/zend-expressive-skeleton/issues/253#issuecomment-385255883
Ok, that's seems fine, just wondering if "remember the selected container" is can be applied to be checked when view options shown
Originally posted by @samsonasik at https://github.com/zendframework/zend-expressive-skeleton/issues/253#issuecomment-385525448
I had the same issue with PHP-DI. I created a wrapper to enable Interop/Container. Check this link for more details: #25
Originally posted by @elie29 at https://github.com/zendframework/zend-expressive-skeleton/issues/253#issuecomment-436187212
@elie29 I don't think wrapping all containers to enable a deprecated interface is the right solution. It's better to update zend-view. Although I think the actual problem is with zend-servicemanager and its plugin manager. Once that is updated zend-view can be updated if it's still needed.
Originally posted by @geerteltink at https://github.com/zendframework/zend-expressive-skeleton/issues/253#issuecomment-436323600
@samsonasik is is still an issue?
@michalbundyra I will check again in a few
Just tried re-install it, and it seems working now. I'm closing. thank you ;)
Provide a narrative description of what you are trying to accomplish.
Code to reproduce the issue
with choose the following options:
Expected results
Works.
Actual results
The issue seems in
zend-view
part with the following full call stack :Originally posted by @samsonasik at https://github.com/zendframework/zend-expressive-skeleton/issues/253