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

Change self::makeCacheKey and self::makeMessageCode to static:: #649

Merged
merged 1 commit into from
Aug 12, 2021
Merged

Change self::makeCacheKey and self::makeMessageCode to static:: #649

merged 1 commit into from
Aug 12, 2021

Conversation

panki3a
Copy link
Contributor

@panki3a panki3a commented Aug 11, 2021

Change calling protected method makeCacheKey and makeMessageCode with static, to enable call override method from custom Message class.
example:
class Message extends \RainLab\Translate\Models\Message
{
/**
* @param string $messageId
* @return string
*/
protected static function makeMessageCode($messageId)
{
return $messageId;
}
}

Change calling protected method makeCacheKey and makeMessageCode with static, to enable call override method from custom Message class.
example:
class Message extends \RainLab\Translate\Models\Message
{
    /**
     * @param string $messageId
     * @return string
     */
    protected static function makeMessageCode($messageId)
    {
        return $messageId;
    }
}
@daftspunk daftspunk merged commit b8adabc into rainlab:master Aug 12, 2021
@daftspunk
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants