I am implementing an Admin module, which contains the following routes:
'router' => array(
'routes' => array(
'admin' => array(
'type' => 'Zend\Mvc\Router\Http\Hostname',
'options' => array(
'route'=> ':subdomain.mydomain.local',
I've just found the solution in the source. You have to make your factory
implement Zend\ServiceManager\MutableCreationOptionsInterface
You can then use whatever it passes to instantiate the "next thing". Feels
like an official band-aid hehe, but it works.
--
View this message in context:
http
My goal is to pass custom options to validators, as is done by the
ZF2-provided validators. Consider this validator config:
In this case, my validator is provided by an abstract factory which is
specified in my application's getValidatorConfig(). It seems though,
judging by lines 95+ in Abstra