ZF2-286: Cannot inject per-instance substitutions into classes implementing Aware interfaces

Description

If you have a class implementing an Aware interface, the only way to inject setters it defines is via DI preferences. You cannot specify alternates on a per class basis, such as the following:


$di->configure(new Configuration(array(
    'instance' => array(
        'Foo\Bar\Baz' => array(
            'foo' => 'Foo\Bar\Foo', // where the "foo" parameter is defined in an "Aware" interface
        ),
    ),
));

Comments

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2476