Skip to content

Instantly share code, notes, and snippets.

View SergioMendolia's full-sized avatar
🦑
Blurp

Sergio Mendolia SergioMendolia

🦑
Blurp
  • Lausanne, Switzerland
View GitHub Profile
@gmoqa
gmoqa / RetrieveEmailCommand.php
Last active August 25, 2017 13:37
Symfony2 command to retrieve and save, emails by IMAP, save the email, attachments and analize a email content for set a specific Entity.
<?php
namespace AppBundle\Command;
use AppBundle\Entity\Evento;
use AppBundle\Entity\EventoAdjunto;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;