@@ 108-120 (lines=13) @@ | ||
105 | $container->setParameter('kunstmaan_search.password', $searchPassword); |
|
106 | } |
|
107 | ||
108 | private function addSearchIndexPrefixParameter(ContainerBuilder $container, array $config) |
|
109 | { |
|
110 | $indexPrefix = $container->hasParameter('searchindexprefix') ? $container->getParameter('searchindexprefix') : null; |
|
111 | if (null === $config['index_prefix'] && null !== $indexPrefix) { |
|
112 | @trigger_error('Not providing a value for the "kunstmaan_search.index_prefix" config while setting the "searchindexprefix" parameter is deprecated since KunstmaanDashboardBundle 5.2, this config value will replace the "searchindexprefix" parameter in KunstmaanDashboardBundle 6.0.', E_USER_DEPRECATED); |
|
113 | } |
|
114 | ||
115 | if (null !== $config['index_prefix']) { |
|
116 | $indexPrefix = $config['index_prefix']; |
|
117 | } |
|
118 | ||
119 | $container->setParameter('kunstmaan_search.index_prefix', $indexPrefix); |
|
120 | } |
|
121 | } |
|
122 |
@@ 140-152 (lines=13) @@ | ||
137 | return 'kunstmaan_media'; |
|
138 | } |
|
139 | ||
140 | private function addAvairyApiKeyParameter(ContainerBuilder $container, array $config) |
|
141 | { |
|
142 | // NEXT_MAJOR: Remove parameter, config option and all aviary related files (twig, js, etc) |
|
143 | $aviaryApiKey = $container->hasParameter('aviary_api_key') ? $container->getParameter('aviary_api_key') : null; |
|
144 | if (null === $config['aviary_api_key'] && null !== $aviaryApiKey) { |
|
145 | @trigger_error('Not providing a value for the "kunstmaan_media.aviary_api_key" config while setting the "aviary_api_key" parameter is deprecated since KunstmaanMediaBundle 5.2, this config value will replace the "aviary_api_key" parameter in KunstmaanMediaBundle 6.0.', E_USER_DEPRECATED); |
|
146 | } |
|
147 | ||
148 | if (null !== $config['aviary_api_key']) { |
|
149 | $aviaryApiKey = $config['aviary_api_key']; |
|
150 | } |
|
151 | ||
152 | $container->setParameter('kunstmaan_media.aviary_api_key', $aviaryApiKey); |
|
153 | } |
|
154 | } |
|
155 |