Skip to content

Commit 8e8c874

Browse files
committed
[TASK] Add extension specific config
1 parent 53e68cb commit 8e8c874

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Documentation/TopLevelObjects/Plugin.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,24 +231,35 @@ plugins.
231231
:Default: `false`
232232

233233
**Only for Extbase plugins**. By default, when calling an extbase controller action
234-
that is not registered for an Extbase plugin, a fatal exception is thrown
234+
that is not registered for an Extbase plugin, a fatal exception
235+
:php:`TargetNotFoundException` is thrown
235236
(usually an internal error message is shown).
236237

237238
When this configuration option is set to `1` (true), instead the default
238239
"Page not Found" page will be shown instead (with a 404 HTTP header by default).
239240

241+
The configuration option can be either set on the global `config.tx_extbase`
242+
scope, or also plugin-specific via
243+
`plugin.tx_yourextension.mvc.showPageNotFoundIfTargetNotFoundException` /
244+
`plugin.tx_yourextension_pluginName.mvc.showPageNotFoundIfTargetNotFoundException`.
245+
240246
.. confval:: mvc.showPageNotFoundIfRequiredArgumentIsMissingException
241247
:name: plugin-mvc-showPageNotFoundIfRequiredArgumentIsMissingException
242248
:type: :ref:`data-type-boolean`
243249
:Default: `false`
244250

245251
**Only for Extbase plugins**. By default, when calling an extbase controller action
246-
with unsupported arguments a fatal exception is thrown (usually an internal error
247-
message is shown).
252+
with missing/invalid required arguments a fatal exception :php:`RequiredArgumentMissingException`
253+
is thrown (usually an internal error message is shown).
248254

249255
When this configuration option is set to `1` (true), instead the default
250256
"Page not Found" page will be shown instead (with a 404 HTTP header by default).
251257

258+
The configuration option can be either set on the global `config.tx_extbase`
259+
scope, or also plugin-specific via
260+
`plugin.tx_yourextension.mvc.showPageNotFoundIfRequiredArgumentIsMissingException` /
261+
`plugin.tx_yourextension_pluginName.mvc.showPageNotFoundIfRequiredArgumentIsMissingException`.
262+
252263
Note that extension authors can also implement the Controller method
253264
:php:`ActionController->handleArgumentMappingExceptions()` to individually operate
254265
on invalid arguments.

0 commit comments

Comments
 (0)