for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Configuration file for request service.
*/
return [
// Services to add to the container.
"services" => [
"geocoder" => [
"shared" => true,
"callback" => function () {
$cfg = $this->get("configuration");
$this
$config = $cfg->load("api_sample.php");
$obj = new \OpenCage\Geocoder\Geocoder($config["config"]["opencage"]);
return $obj;
}
],
];