Skip to content
Merged
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
4 changes: 2 additions & 2 deletions form/form_dependencies.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
How to Access Services or Config from Inside a Form
===================================================

Sometimes, you may need to access a :doc:`services </service_container>` or other
Sometimes, you may need to access a :doc:`service </service_container>` or other
configuration from inside of your form class. To do this, you have 2 options:

1) Pass Options to your Form
Expand Down Expand Up @@ -45,7 +45,7 @@ create your form::
}

Finally, the ``entity_manager`` option is accessible in the ``$options`` argument
if your ``buildForm`` method::
of your ``buildForm`` method::

// src/AppBundle/Form/TaskType.php
// ...
Expand Down