Skip to content

Commit

Permalink
Merge pull request #13 from prooph/restructure_docs
Browse files Browse the repository at this point in the history
Restructure docs
  • Loading branch information
codeliner authored Oct 15, 2017
2 parents 95e13a5 + 1e43992 commit a39dcad
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"prefer-stable": true,
"require": {
"php": "^7.1",
"prooph/snapshot-store" : "^1.1"
"prooph/snapshot-store" : "^1.1",
"mongodb/mongodb": "^1.1.0"
},
"require-dev": {
Expand Down Expand Up @@ -66,10 +66,12 @@
"scripts": {
"check": [
"@cs",
"@test"
"@test",
"docheader"
],
"cs": "php-cs-fixer fix -v --diff --dry-run",
"cs-fix": "php-cs-fixer fix -v --diff",
"docheader": "docheader check src/ tests/",
"test": "phpunit"
}
}
6 changes: 4 additions & 2 deletions docs/bookdown.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"title": "Prooph PDO SnapshotStore",
"title": "MongoDB Snapshot Store",
"content": [
{"intro": "../README.md"},
{"intro": "introduction.md"},
{"interop_factories": "interop_factories.md"}
],
"tocDepth": 1,
"numbering": false,
"target": "./html",
"template": "../vendor/prooph/bookdown-template/templates/main.php"
}
15 changes: 15 additions & 0 deletions docs/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Overview

MongoDB implementation of snapshot store

## Installation

```bash
composer require prooph/mongodb-snapshot-store
```

## Requirements

- PHP 7.1
- MongoDB >= 3.4
- PHP MongoDB Extension
4 changes: 3 additions & 1 deletion tests/Container/MongoDbSnapshotStoreFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public function it_gets_serializer_from_container_when_not_instanceof_serializer

$container->get('my_connection')->willReturn($client)->shouldBeCalled();
$container->get('config')->willReturn($config)->shouldBeCalled();
$container->get('serializer_servicename')->willReturn(new CallbackSerializer(function() {}, function() {}))->shouldBeCalled();
$container->get('serializer_servicename')->willReturn(new CallbackSerializer(function () {
}, function () {
}))->shouldBeCalled();

$factory = new MongoDbSnapshotStoreFactory();
$snapshotStore = $factory($container->reveal());
Expand Down

0 comments on commit a39dcad

Please sign in to comment.