Skip to content

Commit

Permalink
Uses Neo4j storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sroze committed Feb 7, 2016
1 parent cc118f7 commit dba2928
Show file tree
Hide file tree
Showing 7 changed files with 731 additions and 16 deletions.
3 changes: 3 additions & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public function registerBundles()
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Csa\Bundle\GuzzleBundle\CsaGuzzleBundle(),
new FOS\ElasticaBundle\FOSElasticaBundle(),
new Tolerance\Bridge\Symfony\Bundle\ToleranceBundle\ToleranceBundle(),
new JMS\SerializerBundle\JMSSerializerBundle(),
new AppBundle\AppBundle(),
];

Expand Down
10 changes: 10 additions & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,13 @@ csa_guzzle:
timeout: 2.0
headers:
Accept: application/vnd.github.v3+json

# Tolerance configuration
tolerance:
message_profile:
current_peer:
service: ExampleSymfony
environment: %kernel.environment%

storage:
neo4j: app.neo4j.client
8 changes: 5 additions & 3 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ parameters:
database_name: symfony
database_user: root
database_password: ~
# You should uncomment this if you want use pdo_sqlite
# database_path: "%kernel.root_dir%/data.db3"

mailer_transport: smtp
mailer_host: 127.0.0.1
mailer_user: ~
mailer_password: ~

# A secret key that's used to generate certain security-related tokens
secret: ThisTokenIsNotSoSecretChangeIt

neo4j_host: neo4j
neo4j_port: 7474
neo4j_username: neo4j
neo4j_password: neo4j
26 changes: 18 additions & 8 deletions app/config/services.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# Learn more about services, parameters and containers at
# http://symfony.com/doc/current/book/service_container.html
parameters:
# parameter_name: value

services:
# service_name:
# class: AppBundle\Directory\ClassName
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
app.neo4j.client_builder:
class: Neoxygen\NeoClient\ClientBuilder
factory: [Neoxygen\NeoClient\ClientBuilder, create]
calls:
-
- addConnection
-
- 'default'
- 'http'
- %neo4j_host%
- %neo4j_port%
- true
- %neo4j_username%
- %neo4j_password%

app.neo4j.client:
class: Neoxygen\NeoClient\Client
factory: ["@app.neo4j.client_builder", build]
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"csa/guzzle-bundle": "^2.0",
"sroze/tolerance": "dev-message-profile"
"sroze/tolerance": "dev-message-profile",
"friendsofsymfony/elastica-bundle": "3.2.x-dev",
"jms/serializer-bundle": "^1.1",
"graphaware/neo4j-php-client": "^3.3",
"zendframework/zend-diactoros": "^1.3",
"symfony/psr-http-message-bridge": "^0.2.0"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
Expand Down
Loading

0 comments on commit dba2928

Please sign in to comment.