[Flow] Mocking Session Classes for CLI use?
Christian Loock
chl at vkf-renzel.de
Mon Sep 23 11:42:05 CEST 2013
Hello everybody,
here is anotherone of my very special problems.
I have a class that is of scope Session which is used in some of my
Classes. Now I want to write a CommandController that uses some of those
classes that are used in my normal actionControllers.
However, since in CLI you cant use sessions, the call of the
CommandController will result in an error.
What I want to do now, is to Mock this Session Object. It implements an
Interface which is Injected everywhere. All I really need, is to change
the implementation in the Objects.yaml only for my CLI call.
Is there some way to do this?
Greetings,
Christian
More information about the Flow
mailing list