[fw-general] Zend hostname route doesn't match when it has child routes

2014-04-14 Thread talisker
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',

[fw-general] Re: Abstract Factory for custom Validators - options discarded?

2014-04-14 Thread Saeven
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

[fw-general] Abstract Factory for custom Validators - options discarded?

2014-04-14 Thread Saeven
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