for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Configuration file for DI container.
*/
return [
// Services to add to the container.
"services" => [
"darksky" => [
"shared" => true,
"callback" => function () {
$darksky = new \Anax\Controller\WeatherCurl();
$cfg = $this->get("configuration");
$this
$config = $cfg->load("api_keys.php");
$darksky->setKey($config['config']['key']);
return $darksky;
}
],
];