@@ 80-92 (lines=13) @@ | ||
77 | $container->setParameter('kunstmaan_search.port', $searchPort); |
|
78 | } |
|
79 | ||
80 | private function addUserParameter(ContainerBuilder $container, array $config) |
|
81 | { |
|
82 | $searchUsername = $container->hasParameter('kunstmaan_search.username') ? $container->getParameter('kunstmaan_search.username') : null; |
|
83 | if (null === $config['connection']['username'] && null !== $searchUsername) { |
|
84 | @trigger_error('Not providing a value for the "kunstmaan_search.connection.username" config while setting the "kunstmaan_search.username" parameter is deprecated since KunstmaanDashboardBundle 5.2, this config value will replace the "kunstmaan_search.username" parameter in KunstmaanDashboardBundle 6.0.', E_USER_DEPRECATED); |
|
85 | } |
|
86 | ||
87 | if (null !== $config['connection']['username']) { |
|
88 | $searchUsername = $config['connection']['username']; |
|
89 | } |
|
90 | ||
91 | $container->setParameter('kunstmaan_search.username', $searchUsername); |
|
92 | } |
|
93 | ||
94 | private function addPasswordParameter(ContainerBuilder $container, array $config) |
|
95 | { |
|
@@ 94-106 (lines=13) @@ | ||
91 | $container->setParameter('kunstmaan_search.username', $searchUsername); |
|
92 | } |
|
93 | ||
94 | private function addPasswordParameter(ContainerBuilder $container, array $config) |
|
95 | { |
|
96 | $searchPassword = $container->hasParameter('kunstmaan_search.password') ? $container->getParameter('kunstmaan_search.password') : null; |
|
97 | if (null === $config['connection']['password'] && null !== $searchPassword) { |
|
98 | @trigger_error('Not providing a value for the "kunstmaan_search.connection.password" config while setting the "kunstmaan_search.password" parameter is deprecated since KunstmaanDashboardBundle 5.2, this config value will replace the "kunstmaan_search.password" parameter in KunstmaanDashboardBundle 6.0.', E_USER_DEPRECATED); |
|
99 | } |
|
100 | ||
101 | if (null !== $config['connection']['password']) { |
|
102 | $searchPassword = $config['connection']['password']; |
|
103 | } |
|
104 | ||
105 | $container->setParameter('kunstmaan_search.password', $searchPassword); |
|
106 | } |
|
107 | ||
108 | private function addSearchIndexPrefixParameter(ContainerBuilder $container, array $config) |
|
109 | { |