diff options
Diffstat (limited to 'src/AppBundle/Controller/NewDataController.php')
-rw-r--r-- | src/AppBundle/Controller/NewDataController.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/AppBundle/Controller/NewDataController.php b/src/AppBundle/Controller/NewDataController.php index 8bfda68..ecb1be9 100644 --- a/src/AppBundle/Controller/NewDataController.php +++ b/src/AppBundle/Controller/NewDataController.php @@ -11,8 +11,6 @@ namespace AppBundle\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Symfony\Component\HttpFoundation\Response; use Symfony\Bundle\FrameworkBundle\Controller\Controller; -use AppBundle\Utils\Aqi; -use AppBundle\Utils\EmailSender; class NewDataController extends Controller { @@ -20,7 +18,7 @@ class NewDataController extends Controller * @Route("/latest") */ - public function getLatestData(Aqi $aqi, EmailSender $emailSender) + public function getLatestData() { // Get cURL resource $curl = curl_init(); @@ -39,9 +37,6 @@ class NewDataController extends Controller $response = new Response($data); $response->headers->set('Content-Type', 'application/json'); - $data = json_decode($resp, true); - if($aqi >= 151) $emailSender->sendEmail($data); - return $response; } |