Skip to content

Instantly share code, notes, and snippets.

@nachopants
Created November 3, 2014 06:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nachopants/26906c3aff61c66c10e6 to your computer and use it in GitHub Desktop.
Save nachopants/26906c3aff61c66c10e6 to your computer and use it in GitHub Desktop.
#MyBarBundle\Controller\EmailController
class NotifyAFagController extends FOSRestController
{
public function getTellMeSomethingAction($fag)
{
$EmailController->getDeliverAction('you are a fag');
}
}
#MyFooBundle\Controller\EmailController
class EmailController extends FOSRestController
{
public function getDeliverAction($fag)
{
$aws = $this->get('platinum_pixs_aws.ses');
$awsClient = $aws->get('Ses');
$result = $awsClient->sendEmail('deros@deros.com', $fag)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment