Skip to content

Commit f86c124

Browse files
authored
Updated namespace (#1)
* Update namespace * Using namespace Neo4j\Neo4jBundle
1 parent f559064 commit f86c124

20 files changed

+62
-62
lines changed

Collector/DebugLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Neo4jCommunity\Neo4jBundle\Collector;
5+
namespace Neo4j\Neo4jBundle\Collector;
66

77
use GraphAware\Common\Cypher\StatementInterface;
88
use GraphAware\Common\Result\Result;

Collector/Neo4jDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Neo4jCommunity\Neo4jBundle\Collector;
5+
namespace Neo4j\Neo4jBundle\Collector;
66

77
use Symfony\Component\HttpFoundation\Request;
88
use Symfony\Component\HttpFoundation\Response;

Collector/Twig/Neo4jResultExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Neo4jCommunity\Neo4jBundle\Collector\Twig;
5+
namespace Neo4j\Neo4jBundle\Collector\Twig;
66

77
use GraphAware\Neo4j\Client\Formatter\Type\Node;
88

DependencyInjection/Configuration.php

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

33
declare(strict_types=1);
44

5-
namespace Neo4jCommunity\Neo4jBundle\DependencyInjection;
5+
namespace Neo4j\Neo4jBundle\DependencyInjection;
66

77
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
88
use Symfony\Component\Config\Definition\ConfigurationInterface;
@@ -40,7 +40,7 @@ public function __construct($debug)
4040
public function getConfigTreeBuilder()
4141
{
4242
$treeBuilder = new TreeBuilder();
43-
$root = $treeBuilder->root('community_neo4j');
43+
$root = $treeBuilder->root('neo4j');
4444

4545
$root->children()
4646
->arrayNode('profiling')

DependencyInjection/CommunityNeo4jExtension.php renamed to DependencyInjection/Neo4jExtension.php

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

33
declare(strict_types=1);
44

5-
namespace Neo4jCommunity\Neo4jBundle\DependencyInjection;
5+
namespace Neo4j\Neo4jBundle\DependencyInjection;
66

77
use GraphAware\Neo4j\Client\Connection\Connection;
88
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
@@ -17,7 +17,7 @@
1717
/**
1818
* @author Tobias Nyholm <[email protected]>
1919
*/
20-
class CommunityNeo4jExtension extends Extension
20+
class Neo4jExtension extends Extension
2121
{
2222
/**
2323
* {@inheritdoc}
@@ -181,6 +181,6 @@ public function getConfiguration(array $config, ContainerBuilder $container): Co
181181

182182
public function getAlias(): string
183183
{
184-
return 'community_neo4j';
184+
return 'neo4j';
185185
}
186186
}

Factory/ClientFactory.php

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

33
declare(strict_types=1);
44

5-
namespace Neo4jCommunity\Neo4jBundle\Factory;
5+
namespace Neo4j\Neo4jBundle\Factory;
66

77
use GraphAware\Neo4j\Client\ClientBuilder;
88
use GraphAware\Neo4j\Client\ClientInterface;
99
use GraphAware\Neo4j\Client\Event\FailureEvent;
1010
use GraphAware\Neo4j\Client\Event\PostRunEvent;
1111
use GraphAware\Neo4j\Client\Event\PreRunEvent;
1212
use GraphAware\Neo4j\Client\Neo4jClientEvents;
13-
use Neo4jCommunity\Neo4jBundle\Collector\DebugLogger;
13+
use Neo4j\Neo4jBundle\Collector\DebugLogger;
1414

1515
/**
1616
* @author Tobias Nyholm <[email protected]>

Neo4jBundle.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Neo4j\Neo4jBundle;
4+
5+
use Neo4j\Neo4jBundle\DependencyInjection\Neo4jExtension;
6+
use Symfony\Component\HttpKernel\Bundle\Bundle;
7+
8+
/**
9+
* @author Tobias Nyholm <[email protected]>
10+
*/
11+
class Neo4jBundle extends Bundle
12+
{
13+
public function getContainerExtension()
14+
{
15+
return new Neo4jExtension();
16+
}
17+
}

Neo4jCommunityNeo4jBundle.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Neo4j Symfony Bundle
22

3-
[![Latest Version](https://img.shields.io/github/release/neo4j-community/Neo4jBundle.svg?style=flat-square)](https://github.com/neo4j-community/Neo4jBundle/releases)
4-
[![Build Status](https://img.shields.io/travis/neo4j-community/Neo4jBundle.svg?style=flat-square)](https://travis-ci.org/neo4j-community/Neo4jBundle)
5-
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/neo4j-community/Neo4jBundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/neo4j-community/Neo4jBundle)
6-
[![Quality Score](https://img.shields.io/scrutinizer/g/neo4j-community/Neo4jBundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/neo4j-community/Neo4jBundle)
7-
[![Total Downloads](https://img.shields.io/packagist/dt/neo4j-community/neo4j-bundle.svg?style=flat-square)](https://packagist.org/packages/neo4j-community/neo4j-bundle)
3+
[![Latest Version](https://img.shields.io/github/release/neo4j-contrib/neo4j-symfony.svg?style=flat-square)](https://github.com/neo4j-contrib/neo4j-symfony/releases)
4+
[![Build Status](https://img.shields.io/travis/neo4j-contrib/neo4j-symfony.svg?style=flat-square)](https://travis-ci.org/neo4j-contrib/neo4j-symfony)
5+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/neo4j-contrib/neo4j-symfony.svg?style=flat-square)](https://scrutinizer-ci.com/g/neo4j-contrib/neo4j-symfony)
6+
[![Quality Score](https://img.shields.io/scrutinizer/g/neo4j-contrib/neo4j-symfony.svg?style=flat-square)](https://scrutinizer-ci.com/g/neo4j-contrib/neo4j-symfony)
7+
[![Total Downloads](https://img.shields.io/packagist/dt/neo4j/neo4j-bundle.svg?style=flat-square)](https://packagist.org/packages/neo4j/neo4j-bundle)
88

99

1010
## Install
1111

1212
Via Composer
1313

1414
``` bash
15-
$ composer require neo4j-community/neo4j-bundle
15+
$ composer require neo4j/neo4j-bundle
1616
```
1717

1818
At the moment we have a hard dependency on GraphAware OGM. You need to install that as well
@@ -31,7 +31,7 @@ public function registerBundles()
3131
{
3232
$bundles = array(
3333
// ...
34-
new Neo4jCommunity\Neo4jBundle\Neo4jCommunityNeo4jBundle(),
34+
new Neo4j\Neo4jBundle\Neo4jBundle(),
3535
);
3636
}
3737
```
@@ -49,7 +49,7 @@ The bundle is a convenient way of registering services. We register `Connections
4949
### Minimal configuration
5050

5151
```yaml
52-
community_neo4j:
52+
neo4j:
5353
connections:
5454
default: ~
5555
```
@@ -62,7 +62,7 @@ With the minimal configuration we have services named:
6262
### Full configuration
6363
6464
```yaml
65-
community_neo4j:
65+
neo4j:
6666
profiling:
6767
enabled: true
6868
connections:

Resources/config/data-collector.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
55

66
<services>
7-
<service id="neo4j.collector.debug_collector" class="Neo4jCommunity\Neo4jBundle\Collector\Neo4jDataCollector" public="false">
7+
<service id="neo4j.collector.debug_collector" class="Neo4j\Neo4jBundle\Collector\Neo4jDataCollector" public="false">
88
<argument type="service" id="neo4j.client_logger"/>
99

10-
<tag name="data_collector" template="Neo4jCommunityNeo4jBundle::webprofiler.html.twig" priority="200" id="neo4j"/>
10+
<tag name="data_collector" template="Neo4jBundle::webprofiler.html.twig" priority="200" id="neo4j"/>
1111
</service>
1212

13-
<service id="neo4j.client_logger" class="Neo4jCommunity\Neo4jBundle\Collector\DebugLogger" public="false">
13+
<service id="neo4j.client_logger" class="Neo4j\Neo4jBundle\Collector\DebugLogger" public="false">
1414
</service>
1515

16-
<service id="neo4j.collector.twig.result" class="Neo4jCommunity\Neo4jBundle\Collector\Twig\Neo4jResultExtension" public="false">
16+
<service id="neo4j.collector.twig.result" class="Neo4j\Neo4jBundle\Collector\Twig\Neo4jResultExtension" public="false">
1717
<tag name="twig.extension" />
1818
</service>
1919
</services>

0 commit comments

Comments
 (0)