Skip to content

Commit 71f3111

Browse files
committed
change base namespace to XApi\Repository\Doctrine
1 parent 1704e7d commit 71f3111

File tree

8 files changed

+28
-14
lines changed

8 files changed

+28
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
CHANGELOG
22
=========
33

4+
0.2.0
5+
-----
6+
7+
* changed base namespace of all classes from `Xabbuh\XApi\Storage\Doctrine` to
8+
`XApi\Repository\Doctrine`
9+
410
* added compatibility for version 0.2 of `php-xapi/repository-api`
511

612
0.1.0

Repository/MappedStatementRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Storage\Doctrine\Repository;
12+
namespace XApi\Repository\Doctrine\Repository;
1313

1414
use XApi\Repository\Api\Mapping\MappedStatement;
1515

Repository/StatementRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Storage\Doctrine\Repository;
12+
namespace XApi\Repository\Doctrine\Repository;
1313

1414
use XApi\Repository\Api\StatementRepository as BaseStatementRepository;
1515
use XApi\Repository\Api\Mapping\MappedStatement;

Tests/Functional/StatementRepositoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Storage\Doctrine\Tests\Functional;
12+
namespace XApi\Repository\Doctrine\Tests\Functional;
1313

1414
use Doctrine\Common\Persistence\ObjectManager;
15-
use Xabbuh\XApi\Storage\Doctrine\Repository\MappedStatementRepository;
16-
use Xabbuh\XApi\Storage\Doctrine\Repository\StatementRepository;
1715
use XApi\Repository\Api\Test\Functional\StatementRepositoryTest as BaseStatementRepositoryTest;
16+
use XApi\Repository\Doctrine\Repository\MappedStatementRepository;
17+
use XApi\Repository\Doctrine\Repository\StatementRepository;
1818

1919
/**
2020
* @author Christian Flothmann <[email protected]>

Tests/Unit/Repository/MappedStatementRepositoryTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Storage\Doctrine\Tests\Unit\Repository;
12+
namespace XApi\Repository\Doctrine\Tests\Unit\Repository;
1313

1414
use Xabbuh\XApi\DataFixtures\StatementFixtures;
15-
use Xabbuh\XApi\Storage\Doctrine\Repository\MappedStatementRepository;
1615
use XApi\Repository\Api\Mapping\MappedStatement;
16+
use XApi\Repository\Doctrine\Repository\MappedStatementRepository;
1717

1818
/**
1919
* @author Christian Flothmann <[email protected]>
@@ -54,7 +54,7 @@ public function testStatementDocumentIsPersisted()
5454
->objectManager
5555
->expects($this->once())
5656
->method('persist')
57-
->with($this->isInstanceOf('\Xabbuh\XApi\Storage\Api\Mapping\MappedStatement'))
57+
->with($this->isInstanceOf('\XApi\Repository\Api\Mapping\MappedStatement'))
5858
;
5959

6060
$mappedStatement = MappedStatement::createFromModel(StatementFixtures::getMinimalStatement());

Tests/Unit/Repository/StatementRepositoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Xabbuh\XApi\Storage\Doctrine\Tests\Unit\Repository;
12+
namespace XApi\Repository\Doctrine\Tests\Unit\Repository;
1313

1414
use Xabbuh\XApi\DataFixtures\StatementFixtures;
1515
use Xabbuh\XApi\DataFixtures\VerbFixtures;
1616
use Xabbuh\XApi\Model\StatementsFilter;
17-
use Xabbuh\XApi\Storage\Doctrine\Repository\StatementRepository;
1817
use XApi\Repository\Api\Mapping\MappedStatement;
18+
use XApi\Repository\Doctrine\Repository\StatementRepository;
1919

2020
/**
2121
* @author Christian Flothmann <[email protected]>
2222
*/
2323
class StatementRepositoryTest extends \PHPUnit_Framework_TestCase
2424
{
2525
/**
26-
* @var \PHPUnit_Framework_MockObject_MockObject|\Xabbuh\XApi\Storage\Doctrine\Repository\MappedStatementRepository
26+
* @var \PHPUnit_Framework_MockObject_MockObject|\XApi\Repository\Doctrine\Repository\MappedStatementRepository
2727
*/
2828
private $mappedStatementRepository;
2929

@@ -110,11 +110,11 @@ public function testSaveWithoutFlush()
110110
}
111111

112112
/**
113-
* @return \PHPUnit_Framework_MockObject_MockObject|\Xabbuh\XApi\Storage\Doctrine\Repository\MappedStatementRepository
113+
* @return \PHPUnit_Framework_MockObject_MockObject|\XApi\Repository\Doctrine\Repository\MappedStatementRepository
114114
*/
115115
protected function createMappedStatementRepositoryMock()
116116
{
117-
return $this->getMock('\Xabbuh\XApi\Storage\Doctrine\Repository\MappedStatementRepository');
117+
return $this->getMock('\XApi\Repository\Doctrine\Repository\MappedStatementRepository');
118118
}
119119

120120
/**

UPGRADE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
UPGRADE
2+
=======
3+
4+
Upgrading from 0.1 to 0.2
5+
-------------------------
6+
7+
The base namespace was changed from `Xabbuh\XApi\Storage\Doctrine` to
8+
`XApi\Repository\Doctrine`.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"autoload": {
2525
"psr-4": {
26-
"Xabbuh\\XApi\\Storage\\Doctrine\\": ""
26+
"XApi\\Repository\\Doctrine\\": ""
2727
}
2828
},
2929
"extra": {

0 commit comments

Comments
 (0)