for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Anax\Weather;
use Anax\Commons\ContainerInjectableInterface;
use Anax\Commons\ContainerInjectableTrait;
use Anax\Route\Exception\NotFoundException;
/**
* A controller to ease with development and debugging information.
*/
class JsonApiController implements ContainerInjectableInterface
{
use ContainerInjectableTrait;
public function indexAction() : array
$city = $this->di->request->getGet("city");
request
Psr\Container\ContainerInterface
instanceof
$cnt = $this->di->request->getGet("cnt");
$weatherModel = $this->di->get("weatherhelper");
$days = explode(" ", $cnt);
$info = $weatherModel->getUsersThroughMultiCurl($days, $city);
return [$info];
}