src/Kunstmaan/AdminListBundle/DependencyInjection/Compiler/DeprecateClassParametersPass.php 1 location
|
@@ 11-30 (lines=20) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_adminlist.service.export.class' => \Kunstmaan\AdminListBundle\Service\ExportService::class, |
17 |
|
]; |
18 |
|
|
19 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
20 |
|
if (false === $container->hasParameter($parameter)) { |
21 |
|
continue; |
22 |
|
} |
23 |
|
|
24 |
|
$currentValue = $container->getParameter($parameter); |
25 |
|
if ($currentValue !== $expectedValue) { |
26 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanAdminListBundle 5.2 and will be removed in KunstmaanAdminListBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
27 |
|
} |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
|
src/Kunstmaan/CacheBundle/DependencyInjection/Compiler/DeprecateClassParametersPass.php 1 location
|
@@ 11-31 (lines=21) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_cache.menu_adaptor.varnish.class' => \Kunstmaan\CacheBundle\Helper\Menu\VarnishMenuAdaptor::class, |
17 |
|
'kunstmaan_cache.helper.varnish.class' => \Kunstmaan\CacheBundle\Helper\VarnishHelper::class, |
18 |
|
]; |
19 |
|
|
20 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
21 |
|
if (false === $container->hasParameter($parameter)) { |
22 |
|
continue; |
23 |
|
} |
24 |
|
|
25 |
|
$currentValue = $container->getParameter($parameter); |
26 |
|
if ($currentValue !== $expectedValue) { |
27 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanCacheBundle 5.2 and will be removed in KunstmaanCacheBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/Kunstmaan/DashboardBundle/DependencyInjection/Compiler/DeprecateClassParametersPass.php 1 location
|
@@ 11-30 (lines=20) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_dashboard.googleclient.class' => 'Google_Client', |
17 |
|
]; |
18 |
|
|
19 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
20 |
|
if (false === $container->hasParameter($parameter)) { |
21 |
|
continue; |
22 |
|
} |
23 |
|
|
24 |
|
$currentValue = $container->getParameter($parameter); |
25 |
|
if ($currentValue !== $expectedValue) { |
26 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanDashboardBundle 5.2 and will be removed in KunstmaanDashboardBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
27 |
|
} |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
|
src/Kunstmaan/FormBundle/DependencyInjection/Compiler/DeprecateClassParametersPass.php 1 location
|
@@ 11-31 (lines=21) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_form.form_mailer.class' => \Kunstmaan\FormBundle\Helper\FormMailer::class, |
17 |
|
'kunstmaan_form.form_handler.class' => \Kunstmaan\FormBundle\Helper\FormHandler::class, |
18 |
|
]; |
19 |
|
|
20 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
21 |
|
if (false === $container->hasParameter($parameter)) { |
22 |
|
continue; |
23 |
|
} |
24 |
|
|
25 |
|
$currentValue = $container->getParameter($parameter); |
26 |
|
if ($currentValue !== $expectedValue) { |
27 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanFormBundle 5.2 and will be removed in KunstmaanFormBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/Kunstmaan/MultiDomainBundle/DependencyInjection/CompilerPass/DeprecateClassParametersPass.php 1 location
|
@@ 11-30 (lines=20) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_multi_domain.domain_configuration.class' => \Kunstmaan\MultiDomainBundle\Helper\DomainConfiguration::class, |
17 |
|
]; |
18 |
|
|
19 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
20 |
|
if (false === $container->hasParameter($parameter)) { |
21 |
|
continue; |
22 |
|
} |
23 |
|
|
24 |
|
$currentValue = $container->getParameter($parameter); |
25 |
|
if ($currentValue !== $expectedValue) { |
26 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanMultiDomainBundle 5.2 and will be removed in KunstmaanMultiDomainBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
27 |
|
} |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
|
src/Kunstmaan/RedirectBundle/DependencyInjection/Compiler/DeprecateClassParametersPass.php 1 location
|
@@ 11-31 (lines=21) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_redirect.menu.adaptor.class' => \Kunstmaan\RedirectBundle\Helper\Menu\RedirectMenuAdaptor::class, |
17 |
|
'kunstmaan_redirect.redirect_repository.class' => \Kunstmaan\RedirectBundle\Repository\RedirectRepository::class, |
18 |
|
]; |
19 |
|
|
20 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
21 |
|
if (false === $container->hasParameter($parameter)) { |
22 |
|
continue; |
23 |
|
} |
24 |
|
|
25 |
|
$currentValue = $container->getParameter($parameter); |
26 |
|
if ($currentValue !== $expectedValue) { |
27 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanRedirectBundle 5.2 and will be removed in KunstmaanRedirectBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
} |
32 |
|
|
src/Kunstmaan/UserManagementBundle/DependencyInjection/Compiler/DeprecateClassParametersPass.php 1 location
|
@@ 11-30 (lines=20) @@
|
8 |
|
/** |
9 |
|
* @internal |
10 |
|
*/ |
11 |
|
final class DeprecateClassParametersPass implements CompilerPassInterface |
12 |
|
{ |
13 |
|
public function process(ContainerBuilder $container) |
14 |
|
{ |
15 |
|
$expectedValues = [ |
16 |
|
'kunstmaan_user_management.menu.adaptor.class' => \Kunstmaan\UserManagementBundle\Helper\Menu\UserManagementMenuAdaptor::class, |
17 |
|
]; |
18 |
|
|
19 |
|
foreach ($expectedValues as $parameter => $expectedValue) { |
20 |
|
if (false === $container->hasParameter($parameter)) { |
21 |
|
continue; |
22 |
|
} |
23 |
|
|
24 |
|
$currentValue = $container->getParameter($parameter); |
25 |
|
if ($currentValue !== $expectedValue) { |
26 |
|
@trigger_error(sprintf('Using the "%s" parameter to change the class of the service definition is deprecated in KunstmaanUserManagementBundle 5.2 and will be removed in KunstmaanUserManagementBundle 6.0. Use service decoration or a service alias instead.', $parameter), E_USER_DEPRECATED); |
27 |
|
} |
28 |
|
} |
29 |
|
} |
30 |
|
} |
31 |
|
|