Skip to content

Emoticon support for console component #12859

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

Closed
ghost opened this issue Dec 4, 2014 · 6 comments
Closed

Emoticon support for console component #12859

ghost opened this issue Dec 4, 2014 · 6 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 4, 2014

Is there any support for emoticons in Symfony console component?

@javiereguiluz
Copy link
Member

@BardiaAfshin in the Console component there is nothing to support emoticons explicitly ... but there isn't either anything to prevent showing them.

In fact, in the #10356 issue you can see an example of a "weird" progress bar created with the Symfony Console component to show all its features and it uses an emoticon.

@fabpot fabpot added the Console label Dec 7, 2014
@ghost
Copy link
Author

ghost commented Dec 7, 2014

Have you seen a Nyan Cat progress bar?

@weaverryan
Copy link
Member

Yea, is that possible right now? It's so unnecessary, but that would make me so happy 😸

@connorhu
Copy link
Contributor

I made a helper class, you can use it if you want.
https://github.com/connorhu/php-emoticons/blob/master/Emoticons.php

on OSX:
include_once('Emoticons.php');
echo Emoticons::BEER_MUG . "\n";

@fabpot
Copy link
Member

fabpot commented Dec 21, 2014

Closing as it is possible already and because "Simplifying" this with nice constants (like demonstrated by @connorhu) is out of the scope of Symfony.

@fabpot fabpot closed this as completed Dec 21, 2014
@connorhu
Copy link
Contributor

or in symfony:

use EmoticonHelper\Emoticons;
....
$output->writeLn(Emoticons::BEER_MUG);

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

No branches or pull requests

4 participants