Permalink
Browse files

minor #3770 Update factories.rst (AlaaAttya)

This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3770).

Discussion
----------

Update factories.rst

your factory method should be static to work!

Commits
-------

97ed5ce Update factories.rst
aefc36c Update factories.rst
a9cfdb2 Update factories.rst
  • Loading branch information...
weaverryan committed May 2, 2014
2 parents 14b9f14 + c818065 commit 127beedf880e51965ee723f2896c010c7906b339
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/dependency_injection/factories.rst
@@ -79,8 +79,8 @@ class:
When you specify the class to use for the factory (via ``factory_class``)
the method will be called statically. If the factory itself should be instantiated
and the resulting object's method called (as in this example), configure the
factory itself as a service:
and the resulting object's method called, configure the factory itself as a service.
In this case, the method (e.g. get) should be changed to be non-static:
.. configuration-block::

0 comments on commit 127beed

Please sign in to comment.