-
Notifications
You must be signed in to change notification settings - Fork 48
Reference core services by FQCN instead of removed string service ids #626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 8.0
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,7 @@ From Symfony 3.4, the cache uses tag-aware adapters. If you want to clear all re | |
| .. code-block:: php | ||
|
|
||
| /** @var CacheProvider $cache */ | ||
| $cache = $this->get('mautic.cache.provider'); | ||
| $cache = $this->get(\Mautic\CacheBundle\Cache\CacheProvider::class); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mautic 8.x PR #17124 (merge commit dc0a515) dropped the |
||
| /** @var CacheItemInterface $item */ | ||
| $item = $cache->getItem('test_tagged_Item'); | ||
| $item->set('yesa!!!'); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -499,7 +499,7 @@ Services define the Plugin's classes and their dependencies with Mautic and Symf | |
| 'helloworld.mars.validator' => [ | ||
| 'class' => MauticPlugin\HelloWorldBundle\Form\Validator\Constraints\MarsValidator::class, | ||
| 'arguments' => [ | ||
| 'mautic.helper.core_parameters', | ||
| \Mautic\CoreBundle\Helper\CoreParametersHelper::class, | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same evidence as emails.rst:574 — PR #17124 removed the |
||
| 'helloworld.helper.world', | ||
| ], | ||
| 'tag' => 'validator.constraint_validator', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mautic 8.x PR #17124 (merge commit dc0a515) dropped the
mautic.helper.core_parametersalias from CoreBundle/Config/services.php (previously aliased at old line ~94) and switched the sole internal consumer toservice(Mautic\CoreBundle\Helper\CoreParametersHelper::class). CoreParametersHelper.php is not in MauticCoreExtension::DEFAULT_EXCLUDES nor CoreBundle's local excludes, so it remains auto-registered/autowirable under its FQCN via the bundle's services->load() call. Confirms the doc's FQCN reference is the correct current way to reference this service.Source: https://github.com/mautic/mautic/blob/dc0a5159d316dd5f0189be9aa6f158a5702ca2a0/app/bundles/CoreBundle/Config/services.php#L140