Skip to content

Commit

Permalink
Merge pull request #45 from ripaclub/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
leogr committed Mar 26, 2016
2 parents 7e3cb1d + c415a10 commit 22db688
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ Add the following to your `composer.json` file:

```json
"require": {
"php": ">=5.5",
"ripaclub/sphinxsearch": "~0.8.0",
}
```

###### Note

Starting from **0.8.x** series the minimum requirements are upgraded to PHP >= 5.5 and to the few Zend Framework dependencies >= 2.4.
Since version **0.8.1**, PHP 7 and Zend Framework's components of 3.x series are fully supported.

Starting from **0.8.x** series the minimum requirements are PHP >= 5.5 and Zend Framework dependencies >= 2.4.

When forced to use a PHP version less (or equal) than 5.4 and/or a Zend Framework dependencies less (or equal) then 2.3 you can use **0.7.1** version.

Expand All @@ -78,15 +79,16 @@ In order to work with library components you need an adapter instance. You can s
use Zend\ServiceManager\ServiceManager;
use Zend\ServiceManager\Config;

$serviceManager = new ServiceManager(new Config([
$serviceManagerConfig = new Config([
'factories' => [
'SphinxSearch\Db\Adapter\Adapter' => 'SphinxSearch\Db\Adapter\AdapterServiceFactory'
],
'aliases' => [
'sphinxql' => 'SphinxSearch\Db\Adapter\Adapter'
]
]));

]);
$serviceManager = new ServiceManager();
$serviceManagerConfig->configureServiceManager($serviceManager);
$serviceManager->setService('Config', [
'sphinxql' => [
'driver' => 'pdo_mysql',
Expand Down

0 comments on commit 22db688

Please sign in to comment.