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

Disable Decoda's default emoticons #135

Open
jrmyio opened this issue Jan 20, 2016 · 2 comments
Open

Disable Decoda's default emoticons #135

jrmyio opened this issue Jan 20, 2016 · 2 comments

Comments

@jrmyio
Copy link

jrmyio commented Jan 20, 2016

I configured my own emoticons.yml but it seems that the decoda's emoticons listed in:
vendor\mjohnson\decoda\src\config\emoticons.php are still parsed...

How to configure FMBbCodeBundle to completely overwrite the decoda's emoticons?

@alquerci
Copy link
Contributor

Currently there is only one solution to disable Decoda's default emoticons.

Extends FM\BbcodeBundle\Decoda\Hook\EmoticonHook class and override getEmoticonCollection method without the code between line 157 and line 176 and sets the parameter fm_bbcode.decoda.hook.emoticon.class with your extended class name (ref).

@sauls
Copy link

sauls commented May 2, 2016

This would work if only extened class could access private function used in

$this->resolveParameters($this->collection);
😞

private function resolveParameters(EmoticonCollection $collection)
, can you make it protected?

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

3 participants