Created
January 24, 2018 14:22
-
-
Save uneak/3cd8e2c54a761d61dd1d7ccaeab1411d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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