Skip to content

Commit a968b49

Browse files
authored
[BC Break] Remove capital V from namespace and bundle/extension to fix issue with Symfony configurator (#4)
1 parent 917ec50 commit a968b49

15 files changed

+31
-31
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle;
3+
namespace Bobv\EntityHistoryBundle;
44

55
use Symfony\Component\HttpKernel\Bundle\Bundle;
66

@@ -9,7 +9,7 @@
99
*
1010
* @author BobV
1111
*/
12-
class BobVEntityHistoryBundle extends Bundle
12+
class BobvEntityHistoryBundle extends Bundle
1313
{
1414

1515
}

Configuration/HistoryConfiguration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Configuration;
3+
namespace Bobv\EntityHistoryBundle\Configuration;
44

55
use Symfony\Component\DependencyInjection\ContainerInterface;
66

DependencyInjection/BobVEntityHistoryExtension.php renamed to DependencyInjection/BobvEntityHistoryExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\DependencyInjection;
3+
namespace Bobv\EntityHistoryBundle\DependencyInjection;
44

55
use Symfony\Component\Config\FileLocator;
66
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -17,7 +17,7 @@
1717
*
1818
* @author BobV
1919
*/
20-
class BobVEntityHistoryExtension extends Extension
20+
class BobvEntityHistoryExtension extends Extension
2121
{
2222
public function load(array $configs, ContainerBuilder $container) {
2323
$config = $this->processConfiguration(new Configuration(), $configs);

DependencyInjection/Configuration.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\DependencyInjection;
3+
namespace Bobv\EntityHistoryBundle\DependencyInjection;
44

55
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
66
use Symfony\Component\Config\Definition\ConfigurationInterface;

EventSubscriber/CreateSchemaSubscriber.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\EventSubscriber;
3+
namespace Bobv\EntityHistoryBundle\EventSubscriber;
44

5-
use BobV\EntityHistoryBundle\Configuration\HistoryConfiguration;
5+
use Bobv\EntityHistoryBundle\Configuration\HistoryConfiguration;
66
use Doctrine\Common\EventSubscriber;
77
use Doctrine\DBAL\Schema\Column;
88
use Doctrine\ORM\Tools\Event\GenerateSchemaTableEventArgs;

EventSubscriber/LogHistorySubscriber.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\EventSubscriber;
3+
namespace Bobv\EntityHistoryBundle\EventSubscriber;
44

5-
use BobV\EntityHistoryBundle\Configuration\HistoryConfiguration;
5+
use Bobv\EntityHistoryBundle\Configuration\HistoryConfiguration;
66
use Doctrine\Common\EventSubscriber;
77
use Doctrine\DBAL\Connection;
88
use Doctrine\DBAL\DBALException;

Exception/IncorrectCriteriaException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Exception;
3+
namespace Bobv\EntityHistoryBundle\Exception;
44

55
/**
66
* Class IncorrectCriteriaException

Exception/NotFoundException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Exception;
3+
namespace Bobv\EntityHistoryBundle\Exception;
44

55
/**
66
* Class NotFoundException

Exception/NotLoggedException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Exception;
3+
namespace Bobv\EntityHistoryBundle\Exception;
44

55
/**
66
* Class NotLoggedException

Exception/TooManyFoundException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Exception;
3+
namespace Bobv\EntityHistoryBundle\Exception;
44

55
/**
66
* Class NotFoundException

Reader/HistoryCollection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Reader;
3+
namespace Bobv\EntityHistoryBundle\Reader;
44

55
/**
66
* Class HistoryCollection

Reader/HistoryReader.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Reader;
3+
namespace Bobv\EntityHistoryBundle\Reader;
44

5-
use BobV\EntityHistoryBundle\Configuration\HistoryConfiguration;
6-
use BobV\EntityHistoryBundle\Exception\IncorrectCriteriaException;
7-
use BobV\EntityHistoryBundle\Exception\NotFoundException;
8-
use BobV\EntityHistoryBundle\Exception\NotLoggedException;
9-
use BobV\EntityHistoryBundle\Exception\TooManyFoundException;
5+
use Bobv\EntityHistoryBundle\Configuration\HistoryConfiguration;
6+
use Bobv\EntityHistoryBundle\Exception\IncorrectCriteriaException;
7+
use Bobv\EntityHistoryBundle\Exception\NotFoundException;
8+
use Bobv\EntityHistoryBundle\Exception\NotLoggedException;
9+
use Bobv\EntityHistoryBundle\Exception\TooManyFoundException;
1010
use Doctrine\Common\Collections\ArrayCollection;
1111
use Doctrine\DBAL\Types\Type;
1212
use Doctrine\ORM\EntityManager;

Reader/HistoryRevision.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace BobV\EntityHistoryBundle\Reader;
3+
namespace Bobv\EntityHistoryBundle\Reader;
44

55
/**
66
* Class HistoryRevision

Resources/config/services.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,34 @@ parameters:
66
bobv.entityhistory.entities: {}
77

88
services:
9-
BobV\EntityHistoryBundle\Configuration\HistoryConfiguration:
9+
Bobv\EntityHistoryBundle\Configuration\HistoryConfiguration:
1010
arguments:
1111
- "@service_container"
1212
calls:
1313
- [injectVars, [ "%bobv.entityhistory.table_prefix%", "%bobv.entityhistory.table_suffix%", "%bobv.entityhistory.revision_field_name%", "%bobv.entityhistory.revision_type_field_name%", "%bobv.entityhistory.entities%", "%bobv.entityhistory.deleted_at_field%", "%bobv.entityhistory.deleted_by_field%", "%bobv.entityhistory.deleted_by_method%" ]]
1414

1515
bobv.entityhistory.configuration:
16-
alias: BobV\EntityHistoryBundle\Configuration\HistoryConfiguration
16+
alias: Bobv\EntityHistoryBundle\Configuration\HistoryConfiguration
1717

18-
BobV\EntityHistoryBundle\EventSubscriber\CreateSchemaSubscriber:
18+
Bobv\EntityHistoryBundle\EventSubscriber\CreateSchemaSubscriber:
1919
arguments:
2020
- "@bobv.entityhistory.configuration"
2121

2222
bobv.entityhistory.create_schema_subscriber:
23-
alias: BobV\EntityHistoryBundle\EventSubscriber\CreateSchemaSubscriber
23+
alias: Bobv\EntityHistoryBundle\EventSubscriber\CreateSchemaSubscriber
2424

25-
BobV\EntityHistoryBundle\EventSubscriber\LogHistorySubscriber:
25+
Bobv\EntityHistoryBundle\EventSubscriber\LogHistorySubscriber:
2626
arguments:
2727
- "@bobv.entityhistory.configuration"
2828

2929
bobv.entityhistory.log_history_subscriber:
30-
alias: BobV\EntityHistoryBundle\EventSubscriber\LogHistorySubscriber
30+
alias: Bobv\EntityHistoryBundle\EventSubscriber\LogHistorySubscriber
3131

32-
BobV\EntityHistoryBundle\Reader\HistoryReader:
32+
Bobv\EntityHistoryBundle\Reader\HistoryReader:
3333
lazy: true
3434
arguments:
3535
- "@doctrine.orm.entity_manager"
3636
- "@bobv.entityhistory.configuration"
3737

3838
bobv.entitybundle.history_reader:
39-
alias: BobV\EntityHistoryBundle\Reader\HistoryReader
39+
alias: Bobv\EntityHistoryBundle\Reader\HistoryReader

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"BobV\\EntityHistoryBundle\\": ""
20+
"Bobv\\EntityHistoryBundle\\": ""
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)