Skip to content
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

Follow singleton pattern for DcaExtractor #126

Merged
merged 1 commit into from
Apr 9, 2018
Merged

Follow singleton pattern for DcaExtractor #126

merged 1 commit into from
Apr 9, 2018

Conversation

bezin
Copy link

@bezin bezin commented Mar 25, 2018

Hello there,

while working with Haste I stumbled upon a tiny issue in the ModelData class. It instantiated a new DcaExtractor object rather than getting an instance via getInstance. DcaExtractors constructor is private, hence a fatal error when using this class.

Cheerio

@aschempp
Copy link
Collaborator

Is the getInstance() method available in all Contao versions?

@Toflar
Copy link
Collaborator

Toflar commented Mar 26, 2018

Yes, I have noticed and asked for a change back in 3.4 for performance reasons. See contao/core#7324

@bezin
Copy link
Author

bezin commented Mar 26, 2018

It is available since 3.5.
Edit: The constructor is protected since 3.5. getInstance() is available since 3.4 as @Toflar mentioned :)

@aschempp aschempp changed the base branch from master to hotfix/4.19.1 April 9, 2018 14:54
@aschempp aschempp merged commit 487f6a1 into codefog:hotfix/4.19.1 Apr 9, 2018
@aschempp aschempp added the bug label Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants