Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

FactoryProvider breaks name-only factories #12

Open
groner opened this issue Sep 2, 2015 · 0 comments
Open

FactoryProvider breaks name-only factories #12

groner opened this issue Sep 2, 2015 · 0 comments

Comments

@groner
Copy link
Collaborator

groner commented Sep 2, 2015

The following no longer works since FactoryProvider was written.

@Injector.factory('foo')
def get_foo(name):
    return 'foo '+name

The fix is to call the nameless form lazily (and write a test).

As a workaround, make name optional.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant