You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/administration/back_office/browser/browser.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,40 +146,42 @@ If an event listener catches additional parameters passed with context, it uses
146
146
147
147
In the example below, the `johndoe` parameter enables the user to choose multiple items from a **Browser window** by changing `multiple: false` from `my_custom_udw` configuration to `multiple: true`.
148
148
149
-
``` php {skip-validation} hl_lines="29 30 31"
149
+
``` php hl_lines="31-35"
150
+
<?php
151
+
152
+
use Ibexa\AdminUi\UniversalDiscovery\Event\ConfigResolveEvent;
153
+
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
154
+
150
155
class JohnDoeCanSelectMore implements EventSubscriberInterface
Copy file name to clipboardExpand all lines: docs/administration/configuration/dynamic_configuration.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,11 @@ parameters:
27
27
myapp.default.my_param: Default value
28
28
```
29
29
30
-
Inside a controller, in `site_group` SiteAccess, you can use the parameters in the following way (the same applies for `hasParameter()`):
30
+
Inside a controller extending the `Ibexa\Core\MVC\Symfony\Controller\Controller` class, in `site_group` SiteAccess, you can use the parameters in the following way (the same applies for `hasParameter()`):
31
31
32
32
``` php {skip-validation}
33
33
$configResolver = $this->getConfigResolver();
34
-
34
+
35
35
// ibexa.site_access.config is the default namespace, so no need to specify it
36
36
// The following will resolve ibexa.site_access.config.<siteaccessName>.content.default_ttl
37
37
// In the case of site_group, it will return 3600.
@@ -77,24 +77,18 @@ For more information about dependency injection, see [Service container](php_api
77
77
Don't store the retrieved config value unless you know what you're doing.
78
78
SiteAccess can change during code execution, which means you might work on the wrong value.
79
79
80
-
``` php {skip-validation}
80
+
``` php
81
81
namespace App;
82
82
83
83
use Ibexa\Contracts\Core\SiteAccess\ConfigResolverInterface;
0 commit comments