@@ 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 |
@@ 123-135 (lines=13) @@ | ||
120 | return 'kunstmaan_media'; |
|
121 | } |
|
122 | ||
123 | private function addAvairyApiKeyParameter(ContainerBuilder $container, array $config) |
|
124 | { |
|
125 | $aviaryApiKey = $container->hasParameter('aviary_api_key') ? $container->getParameter('aviary_api_key') : null; |
|
126 | if (null === $config['aviary_api_key'] && null !== $aviaryApiKey) { |
|
127 | @trigger_error('Not providing a value for the "kunstmaan_media.aviary_api_key" config while setting the "aviary_api_key" parameter is deprecated since KunstmaanDashboardBundle 5.2, this config value will replace the "aviary_api_key" parameter in KunstmaanDashboardBundle 6.0.', E_USER_DEPRECATED); |
|
128 | } |
|
129 | ||
130 | if (null !== $config['aviary_api_key']) { |
|
131 | $aviaryApiKey = $config['aviary_api_key']; |
|
132 | } |
|
133 | ||
134 | $container->setParameter('kunstmaan_media.aviary_api_key', $aviaryApiKey); |
|
135 | } |
|
136 | } |
|
137 |