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

Purgeable trait #679

Closed
tomaszstrojny opened this issue May 26, 2022 · 2 comments
Closed

Purgeable trait #679

tomaszstrojny opened this issue May 26, 2022 · 2 comments

Comments

@tomaszstrojny
Copy link
Contributor

Hi guys,

In line 96 of Plugin.php file I see that File and ThemeData is extended with Purgeable behavior which from October 2 is deprecated. I would suggest adding the Purgeable trait to these two models and removing the extending part from here. Do you agree? I could prepare PRs for both changes, just wanted to ensure that you agree with me.

Thanks!

@daftspunk
Copy link
Member

Hi @tomaszstrojny

Thanks for taking the time to discuss this. In this case: the logic has already been removed. As in line 96, this logic does not run for October v2 and up. Take note of the method name extendLegacyPlatform and comment above the calling code:

// Extension logic for October CMS v1.0
if (!class_exists('System')) {
    $this->extendLegacyPlatform();
}

The translate plugin has been improved to not depend on these behaviours.

@tomaszstrojny
Copy link
Contributor Author

Hi @daftspunk

My bad, you're 100% right!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants