File tree Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Expand file tree Collapse file tree 7 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 17
17
/**
18
18
* @author Tobias Nyholm <[email protected] >
19
19
*/
20
- class Neo4jCommunityNeo4jExtension extends Extension
20
+ class CommunityNeo4jExtension extends Extension
21
21
{
22
22
/**
23
23
* {@inheritdoc}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Neo4jCommunity \Neo4jBundle ;
4
4
5
+ use Neo4jCommunity \Neo4jBundle \DependencyInjection \CommunityNeo4jExtension ;
5
6
use Symfony \Component \HttpKernel \Bundle \Bundle ;
6
7
7
8
/**
8
9
* @author Tobias Nyholm <[email protected] >
9
10
*/
10
11
class Neo4jCommunityNeo4jBundle extends Bundle
11
12
{
13
+ public function getContainerExtension ()
14
+ {
15
+ return new CommunityNeo4jExtension ();
16
+ }
17
+
12
18
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public function registerBundles()
25
25
{
26
26
$bundles = array(
27
27
// ...
28
- new Neo4jCommunity\Neo4jBundle\GraphAwareNeo4jBundle (),
28
+ new Neo4jCommunity\Neo4jBundle\Neo4jCommunityNeo4jBundle (),
29
29
);
30
30
}
31
31
```
@@ -43,7 +43,7 @@ The bundle is a convenient way of registering services. We register `Connections
43
43
### Minimal configuration
44
44
45
45
``` yaml
46
- graph_aware_neo4j :
46
+ community_neo4j :
47
47
connections :
48
48
default : ~
49
49
` ` `
@@ -56,7 +56,7 @@ With the minimal configuration we have services named:
56
56
### Full configuration
57
57
58
58
` ` ` yaml
59
- graph_aware_neo4j :
59
+ community_neo4j :
60
60
profiling :
61
61
enabled : true
62
62
connections :
Original file line number Diff line number Diff line change 7
7
<service id =" neo4j.collector.debug_collector" class =" Neo4jCommunity\Neo4jBundle\Collector\Neo4jDataCollector" public =" false" >
8
8
<argument type =" service" id =" neo4j.client_logger" />
9
9
10
- <tag name =" data_collector" template =" GraphAwareNeo4jBundle ::webprofiler.html.twig" priority =" 200" id =" neo4j" />
10
+ <tag name =" data_collector" template =" Neo4jCommunityNeo4jBundle ::webprofiler.html.twig" priority =" 200" id =" neo4j" />
11
11
</service >
12
12
13
13
<service id =" neo4j.client_logger" class =" Neo4jCommunity\Neo4jBundle\Collector\DebugLogger" public =" false" >
Original file line number Diff line number Diff line change 3
3
{% block toolbar %}
4
4
{% if collector .statements > 0 %}
5
5
{% set icon %}
6
- {{ include (' @GraphAwareNeo4j /Icon/neo4j.svg' ) }}
6
+ {{ include (' @Neo4jCommunityNeo4j /Icon/neo4j.svg' ) }}
7
7
<span class =" sf-toolbar-value" >{{ collector .statements | length }}</span >
8
8
<span class =" sf-toolbar-label" >stmt.</span >
9
9
{% endset %}
24
24
{% endblock %}
25
25
26
26
{% block head %}
27
- <link rel =" stylesheet" href =" {{ asset(' bundles/graphawareneo4j /style/neo4j.css' ) }}" />
28
- <script type =" text/javascript" src =" {{ asset(" bundles/graphawareneo4j /script/neo4j.js" ) }}" ></script >
27
+ <link rel =" stylesheet" href =" {{ asset(' bundles/neo4jcommunityneo4j /style/neo4j.css' ) }}" />
28
+ <script type =" text/javascript" src =" {{ asset(" bundles/neo4jcommunityneo4j /script/neo4j.js" ) }}" ></script >
29
29
{{ parent () }}
30
30
{% endblock %}
31
31
32
32
{% block menu %}
33
33
{# This left-hand menu appears when using the full-screen profiler. #}
34
34
<span class =" label {{ collector .statements | length == 0 ? ' disabled' }}" >
35
35
<span class =" icon" >
36
- {{ include (' @GraphAwareNeo4j /Icon/neo4j.svg' ) }}
36
+ {{ include (' @Neo4jCommunityNeo4j /Icon/neo4j.svg' ) }}
37
37
</span >
38
38
<strong >Neo4j</strong >
39
39
</span >
40
40
{% endblock %}
41
41
42
42
{% block panel %}
43
- <h2 >GraphAware Neo4j</h2 >
43
+ <h2 >Neo4j Bundle </h2 >
44
44
45
45
<table class =" alt queries-table" >
46
46
<thead >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
43
43
44
44
public function getCacheDir ()
45
45
{
46
- return sys_get_temp_dir ().'/GraphAwareNeo4jBundle ' ;
46
+ return sys_get_temp_dir ().'/Neo4jCommunityNeo4jBundle ' ;
47
47
}
48
48
49
49
public function serialize ()
Original file line number Diff line number Diff line change 2
2
3
3
namespace Neo4jCommunity \Neo4jBundle \Tests \Unit \DependencyInjection ;
4
4
5
- use Neo4jCommunity \Neo4jBundle \DependencyInjection \Neo4jCommunityNeo4jExtension ;
5
+ use Neo4jCommunity \Neo4jBundle \DependencyInjection \CommunityNeo4jExtension ;
6
6
use Matthias \SymfonyDependencyInjectionTest \PhpUnit \AbstractExtensionTestCase ;
7
7
8
8
/**
9
9
* @author Tobias Nyholm <[email protected] >
10
10
*/
11
- class GraphAwareNeo4jExtensionTest extends AbstractExtensionTestCase
11
+ class CommunityNeo4jExtensionTest extends AbstractExtensionTestCase
12
12
{
13
13
protected function getMinimalConfiguration ()
14
14
{
@@ -42,7 +42,7 @@ public function testDataCollectorNotLoadedWhenDisabled()
42
42
protected function getContainerExtensions ()
43
43
{
44
44
return [
45
- new Neo4jCommunityNeo4jExtension (),
45
+ new CommunityNeo4jExtension (),
46
46
];
47
47
}
48
48
}
You can’t perform that action at this time.
0 commit comments