Skip to content

fix wording : instantiate "class", not instantiate "object" #3073

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 2, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion book/service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ Using references is a very powerful tool that allows you to create independent s
classes with well-defined dependencies. In this example, the ``newsletter_manager``
service needs the ``my_mailer`` service in order to function. When you define
this dependency in the service container, the container takes care of all
the work of instantiating the objects.
the work of instantiating the classes.

Optional Dependencies: Setter Injection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion components/dependency_injection/factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ as well as calling methods and setting parameters. Sometimes, however, this
will not provide you with everything you need to construct your objects.
For this situation, you can use a factory to create the object and tell the
service container to call a method on the factory rather than directly instantiating
the object.
the class.

Suppose you have a factory that configures and returns a new NewsletterManager
object::
Expand Down
2 changes: 1 addition & 1 deletion cookbook/form/use_empty_data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ that constructor with no arguments::

You can instantiate your class however you want. In this example, we pass
some dependency into the ``BlogType`` when we instantiate it, then use that
to instantiate the ``Blog`` object. The point is, you can set ``empty_data``
to instantiate the ``Blog`` class. The point is, you can set ``empty_data``
to the exact "new" object that you want to use.

Option 2: Provide a Closure
Expand Down