Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Create transport from class which don't has prefix name Elastica\Transport #1169
Assume we define configuration of Elastica in JSON format.
We can simply call
<?php $data = file_get_contents('/path/to/config.json'); $config = json_decode($data, true); $client = new Elastica\Client($config);