docs: Port "Factory" service page to 7.2#586
Open
promptless-for-oss wants to merge 1 commit into
Open
Conversation
|
|
||
| ``Mautic\Factory\MauticFactory`` is removed in Mautic 7. It was deprecated in Mautic 2.0 and removed in Mautic 3.0. Use dependency injection instead. | ||
|
|
||
| Earlier Mautic versions exposed a single ``MauticFactory`` service - available as ``$this->factory`` in controllers and models - that aggregated many dependencies. Mautic 7 relies on autowired dependency injection, so you inject the specific services you need directly through the constructor: |
Contributor
Author
There was a problem hiding this comment.
Legacy source page for this port; it states \Mautic\Factory\MauticFactory was "deprecated as of 2.0 and will be phased out through 2.x release cycles and completely removed in 3.0," and that direct dependency injection should be used instead — the basis for the removal warning and DI guidance on this page.
|
|
||
| .. warning:: | ||
|
|
||
| ``Mautic\Factory\MauticFactory`` is removed in Mautic 7. It was deprecated in Mautic 2.0 and removed in Mautic 3.0. Use dependency injection instead. |
Contributor
Author
There was a problem hiding this comment.
Confirms MauticFactory was fully removed rather than merely deprecated — the 3.0 upgrade guide lists "Removed MauticFactory, should use the service container and proper DI" — verifying the warning that it is gone in Mautic 7 and that DI replaces it.
Source: https://github.com/mautic/mautic/blob/7.x/UPGRADE-3.0.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Open this suggestion in Promptless to view citations and reasoning process
Ports the legacy "Factory Service" developer-docs page into RST at docs/plugin_services/factory.rst on the 7.2 base branch. Documents that MauticFactory was deprecated in 2.0 and removed in 3.0 (gone in Mautic 7), and directs developers to autowired dependency injection with a constructor example, cross-linking the Model factory page for runtime model resolution.
Trigger Events
blockedlabel is to set content, structure, and tone in one branch, then backport/cherry pick i...Tip: Leave inline comments with
@Promptlesson suggestion diffs in the Promptless dashboard for targeted refinements 💬