-
Notifications
You must be signed in to change notification settings - Fork 4
/
ldc-user-profile.global.php.dist
58 lines (50 loc) · 1.33 KB
/
ldc-user-profile.global.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* LdcUserProfile Configuration
*
* If you have a ./config/autoload/ directory set up for your project, you can
* drop this config file in it and change the values as you wish.
*/
$settings = array(
/**
* Switch to enable/disable profile page
*/
'is_enabled' => true,
/**
* URL path at which to mount the profile controller
*/
'url_path' => '/user/profile',
/**
* Override of default validation groups to switch editing on/off for specific fields
*/
'validation_group_overrides' => array(),
/**
* Register extensions by adding them with their service manager key and
* TRUE as value. Unregister an extension by setting the value to FALSE.
*/
'registered_extensions' => array(
'ldc-user-profile_extension_zfcuser' => true,
)
);
/**
* You do not need to edit below this line
*/
return array(
'ldc-user-profile' => $settings,
'router' => array(
'routes' => array(
'ldc-user-profile' => array(
'options' => array(
'route' => $settings['url_path'],
),
),
),
),
'zfc_rbac' => [
'guards' => [
'ZfcRbac\Guard\RouteGuard' => [
'ldc-user-profile' => [ 'member' ],
],
],
],
);