@@ 11-34 (lines=24) @@ | ||
8 | /** |
|
9 | * @internal |
|
10 | */ |
|
11 | final class DeprecateClassParametersPass implements CompilerPassInterface |
|
12 | { |
|
13 | public function process(ContainerBuilder $container) |
|
14 | { |
|
15 | $expectedValues = [ |
|
16 | 'kunstmaan_menu.menu.adaptor.class' => \Kunstmaan\MenuBundle\Service\MenuAdaptor::class, |
|
17 | 'kunstmaan_menu.menu.service.class' => \Kunstmaan\MenuBundle\Service\MenuService::class, |
|
18 | 'kunstmaan_menu.menu.twig.extension.class' => \Kunstmaan\MenuBundle\Twig\MenuTwigExtension::class, |
|
19 | 'kunstmaan_menu.menu.repository.class' => \Kunstmaan\MenuBundle\Repository\MenuItemRepository::class, |
|
20 | 'kunstmaan_menu.menu.render_service.class' => \Kunstmaan\MenuBundle\Service\RenderService::class, |
|
21 | ]; |
|
22 | ||
23 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
24 | if (false === $container->hasParameter($parameter)) { |
|
25 | continue; |
|
26 | } |
|
27 | ||
28 | $currentValue = $container->getParameter($parameter); |
|
29 | if ($currentValue !== $expectedValue) { |
|
30 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanMenuBundle 5.2 and will be removed in KunstmaanMenuBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
31 | } |
|
32 | } |
|
33 | } |
|
34 | } |
|
35 |
@@ 11-35 (lines=25) @@ | ||
8 | /** |
|
9 | * @internal |
|
10 | */ |
|
11 | final class DeprecateClassParametersPass implements CompilerPassInterface |
|
12 | { |
|
13 | public function process(ContainerBuilder $container) |
|
14 | { |
|
15 | $expectedValues = [ |
|
16 | 'kunstmaan_node.slugrouter.class' => \Kunstmaan\NodeBundle\Router\SlugRouter::class, |
|
17 | 'kunstmaan_node.sluglistener.class' => \Kunstmaan\NodeBundle\EventListener\SlugListener::class, |
|
18 | 'kunstmaan_node.helper.url.class' => \Kunstmaan\NodeBundle\Helper\URLHelper::class, |
|
19 | 'kunstmaan_node.url_replace.twig.class' => \Kunstmaan\NodeBundle\Twig\UrlReplaceTwigExtension::class, |
|
20 | 'kunstmaan_multi_domain.url_replace.controller.class' => \Kunstmaan\NodeBundle\Controller\UrlReplaceController::class, |
|
21 | 'kunstmaan_node.toolbar.collector.node.class' => \Kunstmaan\NodeBundle\Toolbar\NodeDataCollector::class, |
|
22 | ]; |
|
23 | ||
24 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
25 | if (false === $container->hasParameter($parameter)) { |
|
26 | continue; |
|
27 | } |
|
28 | ||
29 | $currentValue = $container->getParameter($parameter); |
|
30 | if ($currentValue !== $expectedValue) { |
|
31 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanNodeBundle 5.2 and will be removed in KunstmaanNodeBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
32 | } |
|
33 | } |
|
34 | } |
|
35 | } |
|
36 |
@@ 11-33 (lines=23) @@ | ||
8 | /** |
|
9 | * @internal |
|
10 | */ |
|
11 | final class DeprecateClassParametersPass implements CompilerPassInterface |
|
12 | { |
|
13 | public function process(ContainerBuilder $container) |
|
14 | { |
|
15 | $expectedValues = [ |
|
16 | 'kunstmaan_node_search.search_configuration.node.class' => \Kunstmaan\NodeSearchBundle\Configuration\NodePagesConfiguration::class, |
|
17 | 'kunstmaan_node_search.search.node.class' => \Kunstmaan\NodeSearchBundle\Search\NodeSearcher::class, |
|
18 | 'kunstmaan_node_search.search_service.class' => \Kunstmaan\NodeSearchBundle\Services\SearchService::class, |
|
19 | 'kunstmaan_node_search.node_index_update.listener.class' => \Kunstmaan\NodeSearchBundle\EventListener\NodeIndexUpdateEventListener::class, |
|
20 | ]; |
|
21 | ||
22 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
23 | if (false === $container->hasParameter($parameter)) { |
|
24 | continue; |
|
25 | } |
|
26 | ||
27 | $currentValue = $container->getParameter($parameter); |
|
28 | if ($currentValue !== $expectedValue) { |
|
29 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanNodeSearchBundle 5.2 and will be removed in KunstmaanNodeSearchBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
30 | } |
|
31 | } |
|
32 | } |
|
33 | } |
|
34 |
@@ 11-34 (lines=24) @@ | ||
8 | /** |
|
9 | * @internal |
|
10 | */ |
|
11 | final class DeprecateClassParametersPass implements CompilerPassInterface |
|
12 | { |
|
13 | public function process(ContainerBuilder $container) |
|
14 | { |
|
15 | $expectedValues = [ |
|
16 | 'kunstmaan_pagepart.page_part_configuration_reader.class' => \Kunstmaan\PagePartBundle\PagePartConfigurationReader\PagePartConfigurationReader::class, |
|
17 | 'kunstmaan_pagepart.page_part_configuration_parser.class' => \Kunstmaan\PagePartBundle\PagePartConfigurationReader\PagePartConfigurationParser::class, |
|
18 | 'kunstmaan_pagepart.page_template_configuration_reader.class' => \Kunstmaan\PagePartBundle\PageTemplate\PageTemplateConfigurationReader::class, |
|
19 | 'kunstmaan_pagepart.page_template_configuration_parser.class' => \Kunstmaan\PagePartBundle\PageTemplate\PageTemplateConfigurationParser::class, |
|
20 | 'kunstmaan_page_part.page_template.page_template_configuration_service.class' => \Kunstmaan\PagePartBundle\PageTemplate\PageTemplateConfigurationService::class, |
|
21 | ]; |
|
22 | ||
23 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
24 | if (false === $container->hasParameter($parameter)) { |
|
25 | continue; |
|
26 | } |
|
27 | ||
28 | $currentValue = $container->getParameter($parameter); |
|
29 | if ($currentValue !== $expectedValue) { |
|
30 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanPagePartBundle 5.2 and will be removed in KunstmaanPagePartBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
31 | } |
|
32 | } |
|
33 | } |
|
34 | } |
|
35 |
@@ 11-34 (lines=24) @@ | ||
8 | /** |
|
9 | * @internal |
|
10 | */ |
|
11 | final class DeprecateClassParametersPass implements CompilerPassInterface |
|
12 | { |
|
13 | public function process(ContainerBuilder $container) |
|
14 | { |
|
15 | $expectedValues = [ |
|
16 | 'kunstmaan_search.search_configuration_chain.class' => \Kunstmaan\SearchBundle\Configuration\SearchConfigurationChain::class, |
|
17 | 'kunstmaan_search.search_provider_chain.class' => \Kunstmaan\SearchBundle\Provider\SearchProviderChain::class, |
|
18 | 'kunstmaan_search.search.class' => \Kunstmaan\SearchBundle\Search\Search::class, |
|
19 | 'kunstmaan_search.search_provider.elastica.class' => \Kunstmaan\SearchBundle\Provider\ElasticaProvider::class, |
|
20 | 'kunstmaan_search.search.factory.analysis.class' => \Kunstmaan\SearchBundle\Search\LanguageAnalysisFactory::class, |
|
21 | ]; |
|
22 | ||
23 | foreach ($expectedValues as $parameter => $expectedValue) { |
|
24 | if (false === $container->hasParameter($parameter)) { |
|
25 | continue; |
|
26 | } |
|
27 | ||
28 | $currentValue = $container->getParameter($parameter); |
|
29 | if ($currentValue !== $expectedValue) { |
|
30 | @trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanSearchBundle 5.2 and will be removed in KunstmaanSearchBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
|
31 | } |
|
32 | } |
|
33 | } |
|
34 | } |
|
35 |