Skip to content

Instantly share code, notes, and snippets.

@uneak
Created January 24, 2018 14:22
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 uneak/3cd8e2c54a761d61dd1d7ccaeab1411d to your computer and use it in GitHub Desktop.
Save uneak/3cd8e2c54a761d61dd1d7ccaeab1411d to your computer and use it in GitHub Desktop.
<?php
namespace ProspectMessageBundle\Controller;
use Cocur\Slugify\Slugify;
use FOS\RestBundle\Controller\Annotations\Route;
use ProspectMessageBundle\Entity\ProspectMoMessage;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
class DefaultController extends Controller {
/**
* @Route("/_message/campaign/sms", name="ret_campaign_sms")
*/
public function campaignSmsAction(Request $request) {
$cache = new \Memcached();
$cache->addServer('localhost', 11211);
$all = $request->query->all();
$cache->set($all['push_id'], serialize($all));
return new Response("add ".$all['push_id']);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment