Skip to content

Commit eeb8f35

Browse files
committed
docs: add method visibility
1 parent 4ddb1ff commit eeb8f35

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

user_guide_src/source/incoming/controllers.rst

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ class so that it can inherit all its methods.
230230
Methods
231231
=======
232232

233+
Method Visibility
234+
-----------------
235+
236+
When you define a method that is executable via HTTP request, the method must be
237+
declared as ``public``.
238+
239+
.. warning:: For security reasons be sure to declare any new utility methods as ``protected`` or ``private``.
233240

234241
Default Method
235242
--------------
@@ -253,8 +260,6 @@ Now load the following URL to see the ``getComment()`` method::
253260

254261
You should see your new message.
255262

256-
.. warning:: For security reasons be sure to declare any new utility methods as ``protected`` or ``private``.
257-
258263
Passing URI Segments to Your Methods
259264
====================================
260265

0 commit comments

Comments
 (0)