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" => [
"location" => [
"shared" => true,
"callback" => function () {
$curl = $this->get("curl");
$this
$cfg = $this->get("configuration");
$location = new \Anax\LocationProvider\Ipstack($curl, $cfg);
return $location;
}
],
];