Skip to content

Commit b567674

Browse files
committed
Bugfixing and migration to new namespace
1 parent 4d521bd commit b567674

File tree

7 files changed

+20
-14
lines changed

7 files changed

+20
-14
lines changed

DependencyInjection/Neo4jCommunityNeo4jExtension.php renamed to DependencyInjection/CommunityNeo4jExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @author Tobias Nyholm <[email protected]>
1919
*/
20-
class Neo4jCommunityNeo4jExtension extends Extension
20+
class CommunityNeo4jExtension extends Extension
2121
{
2222
/**
2323
* {@inheritdoc}

Neo4jCommunityNeo4jBundle.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,17 @@
22

33
namespace Neo4jCommunity\Neo4jBundle;
44

5+
use Neo4jCommunity\Neo4jBundle\DependencyInjection\CommunityNeo4jExtension;
56
use Symfony\Component\HttpKernel\Bundle\Bundle;
67

78
/**
89
* @author Tobias Nyholm <[email protected]>
910
*/
1011
class Neo4jCommunityNeo4jBundle extends Bundle
1112
{
13+
public function getContainerExtension()
14+
{
15+
return new CommunityNeo4jExtension();
16+
}
17+
1218
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function registerBundles()
2525
{
2626
$bundles = array(
2727
// ...
28-
new Neo4jCommunity\Neo4jBundle\GraphAwareNeo4jBundle(),
28+
new Neo4jCommunity\Neo4jBundle\Neo4jCommunityNeo4jBundle(),
2929
);
3030
}
3131
```
@@ -43,7 +43,7 @@ The bundle is a convenient way of registering services. We register `Connections
4343
### Minimal configuration
4444

4545
```yaml
46-
graph_aware_neo4j:
46+
community_neo4j:
4747
connections:
4848
default: ~
4949
```
@@ -56,7 +56,7 @@ With the minimal configuration we have services named:
5656
### Full configuration
5757
5858
```yaml
59-
graph_aware_neo4j:
59+
community_neo4j:
6060
profiling:
6161
enabled: true
6262
connections:

Resources/config/data-collector.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<service id="neo4j.collector.debug_collector" class="Neo4jCommunity\Neo4jBundle\Collector\Neo4jDataCollector" public="false">
88
<argument type="service" id="neo4j.client_logger"/>
99

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"/>
1111
</service>
1212

1313
<service id="neo4j.client_logger" class="Neo4jCommunity\Neo4jBundle\Collector\DebugLogger" public="false">

Resources/views/webprofiler.html.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block toolbar %}
44
{% if collector.statements > 0 %}
55
{% set icon %}
6-
{{ include('@GraphAwareNeo4j/Icon/neo4j.svg') }}
6+
{{ include('@Neo4jCommunityNeo4j/Icon/neo4j.svg') }}
77
<span class="sf-toolbar-value">{{ collector.statements|length }}</span>
88
<span class="sf-toolbar-label">stmt.</span>
99
{% endset %}
@@ -24,23 +24,23 @@
2424
{% endblock %}
2525

2626
{% 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>
2929
{{ parent() }}
3030
{% endblock %}
3131

3232
{% block menu %}
3333
{# This left-hand menu appears when using the full-screen profiler. #}
3434
<span class="label {{ collector.statements|length == 0 ? 'disabled' }}">
3535
<span class="icon">
36-
{{ include('@GraphAwareNeo4j/Icon/neo4j.svg') }}
36+
{{ include('@Neo4jCommunityNeo4j/Icon/neo4j.svg') }}
3737
</span>
3838
<strong>Neo4j</strong>
3939
</span>
4040
{% endblock %}
4141

4242
{% block panel %}
43-
<h2>GraphAware Neo4j</h2>
43+
<h2>Neo4j Bundle</h2>
4444

4545
<table class="alt queries-table">
4646
<thead>

Tests/Functional/app/AppKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function registerContainerConfiguration(LoaderInterface $loader)
4343

4444
public function getCacheDir()
4545
{
46-
return sys_get_temp_dir().'/GraphAwareNeo4jBundle';
46+
return sys_get_temp_dir().'/Neo4jCommunityNeo4jBundle';
4747
}
4848

4949
public function serialize()

Tests/Unit/DependencyInjection/GraphAwareNeo4jExtensionTest.php renamed to Tests/Unit/DependencyInjection/CommunityNeo4jExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Neo4jCommunity\Neo4jBundle\Tests\Unit\DependencyInjection;
44

5-
use Neo4jCommunity\Neo4jBundle\DependencyInjection\Neo4jCommunityNeo4jExtension;
5+
use Neo4jCommunity\Neo4jBundle\DependencyInjection\CommunityNeo4jExtension;
66
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
77

88
/**
99
* @author Tobias Nyholm <[email protected]>
1010
*/
11-
class GraphAwareNeo4jExtensionTest extends AbstractExtensionTestCase
11+
class CommunityNeo4jExtensionTest extends AbstractExtensionTestCase
1212
{
1313
protected function getMinimalConfiguration()
1414
{
@@ -42,7 +42,7 @@ public function testDataCollectorNotLoadedWhenDisabled()
4242
protected function getContainerExtensions()
4343
{
4444
return [
45-
new Neo4jCommunityNeo4jExtension(),
45+
new CommunityNeo4jExtension(),
4646
];
4747
}
4848
}

0 commit comments

Comments
 (0)