|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* This file is part of the Spryker Commerce OS. |
|
5
|
|
|
* For full license information, please view the LICENSE file that was distributed with this source code. |
|
6
|
|
|
*/ |
|
7
|
|
|
|
|
8
|
|
|
declare(strict_types = 1); |
|
9
|
|
|
|
|
10
|
|
|
namespace Pyz\Zed\User; |
|
11
|
|
|
|
|
12
|
|
|
use Spryker\Zed\Acl\Communication\Plugin\GroupPlugin; |
|
13
|
|
|
use Spryker\Zed\AgentGui\Communication\Plugin\UserAgentFormExpanderPlugin; |
|
14
|
|
|
use Spryker\Zed\AgentGui\Communication\Plugin\UserAgentTableConfigExpanderPlugin; |
|
15
|
|
|
use Spryker\Zed\AgentGui\Communication\Plugin\UserAgentTableDataExpanderPlugin; |
|
16
|
|
|
use Spryker\Zed\CustomerUserConnectorGui\Communication\Plugin\UserTableActionExpanderPlugin; |
|
17
|
|
|
use Spryker\Zed\Kernel\Container; |
|
18
|
|
|
use Spryker\Zed\User\UserDependencyProvider as SprykerUserDependencyProvider; |
|
19
|
|
|
use Spryker\Zed\UserLocale\Communication\Plugin\User\AssignUserLocalePreSavePlugin; |
|
20
|
|
|
use Spryker\Zed\UserLocale\Communication\Plugin\User\UserLocaleTransferExpanderPlugin; |
|
21
|
|
|
use Spryker\Zed\UserLocaleGui\Communication\Plugin\UserLocaleFormExpanderPlugin; |
|
22
|
|
|
|
|
23
|
|
|
class UserDependencyProvider extends SprykerUserDependencyProvider |
|
24
|
|
|
{ |
|
25
|
|
|
protected function addGroupPlugin(Container $container): Container |
|
26
|
|
|
{ |
|
27
|
|
|
$container->set(static::PLUGIN_GROUP, function (Container $container) { // phpcs:ignore SlevomatCodingStandard.Functions.UnusedParameter |
|
|
|
|
|
|
28
|
|
|
return new GroupPlugin(); |
|
29
|
|
|
}); |
|
30
|
|
|
|
|
31
|
|
|
return $container; |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableActionExpanderPluginInterface> |
|
36
|
|
|
*/ |
|
37
|
|
|
protected function getUserTableActionExpanderPlugins(): array |
|
38
|
|
|
{ |
|
39
|
|
|
return [ |
|
40
|
|
|
new UserTableActionExpanderPlugin(), |
|
41
|
|
|
]; |
|
42
|
|
|
} |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserFormExpanderPluginInterface> |
|
46
|
|
|
*/ |
|
47
|
|
|
protected function getUserFormExpanderPlugins(): array |
|
48
|
|
|
{ |
|
49
|
|
|
return [ |
|
50
|
|
|
new UserAgentFormExpanderPlugin(), |
|
51
|
|
|
new UserLocaleFormExpanderPlugin(), |
|
52
|
|
|
]; |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableConfigExpanderPluginInterface> |
|
57
|
|
|
*/ |
|
58
|
|
|
protected function getUserTableConfigExpanderPlugins(): array |
|
59
|
|
|
{ |
|
60
|
|
|
return [ |
|
61
|
|
|
new UserAgentTableConfigExpanderPlugin(), |
|
62
|
|
|
]; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
/** |
|
66
|
|
|
* @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTableDataExpanderPluginInterface> |
|
67
|
|
|
*/ |
|
68
|
|
|
protected function getUserTableDataExpanderPlugins(): array |
|
69
|
|
|
{ |
|
70
|
|
|
return [ |
|
71
|
|
|
new UserAgentTableDataExpanderPlugin(), |
|
72
|
|
|
]; |
|
73
|
|
|
} |
|
74
|
|
|
|
|
75
|
|
|
/** |
|
76
|
|
|
* @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserPreSavePluginInterface> |
|
77
|
|
|
*/ |
|
78
|
|
|
protected function getUserPreSavePlugins(): array |
|
79
|
|
|
{ |
|
80
|
|
|
return [ |
|
81
|
|
|
new AssignUserLocalePreSavePlugin(), |
|
82
|
|
|
]; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* @return array<\Spryker\Zed\UserExtension\Dependency\Plugin\UserTransferExpanderPluginInterface> |
|
87
|
|
|
*/ |
|
88
|
|
|
protected function getUserTransferExpanderPlugins(): array |
|
89
|
|
|
{ |
|
90
|
|
|
return [ |
|
|
|
|
|
|
91
|
|
|
new UserLocaleTransferExpanderPlugin(), |
|
|
|
|
|
|
92
|
|
|
]; |
|
93
|
|
|
} |
|
94
|
|
|
} |
|
95
|
|
|
|
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.