Skip to content

Commit 0e0dd69

Browse files
committed
Merge branch 'new_config'
2 parents acf1b42 + f8c4e22 commit 0e0dd69

25 files changed

+381
-64
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/vendor
2+
/.idea
23
composer.phar
34
composer.lock
45
.DS_Store
6+
.idea/*

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Begin reading [the full documentation](https://github.com/mitchellvanw/laravel-d
2929
At the moment Doctrine\ORM version 2.5 is still in beta. As a result the composer install may require you to change
3030
the `minimum-stability` in your `composer.json` to `dev`.
3131

32+
If you don't want to affect the stability of the rest of the packages, you can add the following property in your `composer.json`:
33+
34+
"prefer-stable": true
35+
3236
## Installation
3337

3438
Begin by installing the package through Composer. Edit your project's `composer.json` to require `mitchellvanw/laravel-doctrine`.

composer.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mitchellvanw/laravel-doctrine",
33
"description": "The Doctrine 2 implementation that melts with Laravel 4",
4-
"version": "0.4.2",
4+
"version": "0.4.3",
55
"keywords": ["doctrine", "doctrine 2", "orm", "laravel"],
66
"license": "MIT",
77
"authors": [
@@ -11,14 +11,19 @@
1111
}
1212
],
1313
"require": {
14-
"php": ">=5.4.0",
15-
"illuminate/support": "4.*",
14+
"php": ">=5.5.0",
15+
"illuminate/support": "4.*|5.*",
1616
"doctrine/orm": "2.5.*",
1717
"doctrine/migrations": "1.*"
1818
},
19+
"require-dev": {
20+
"mockery/mockery": "dev-master",
21+
"phpunit/phpunit": "3.7.*"
22+
},
1923
"autoload": {
2024
"psr-4": {
21-
"Mitch\\LaravelDoctrine\\": "src/"
25+
"Mitch\\LaravelDoctrine\\": "src/",
26+
"Tests\\": "tests/"
2227
}
2328
},
2429
"minimum-stability": "dev"

config/doctrine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@
3030

3131
'repository' => 'Doctrine\ORM\EntityRepository',
3232

33+
'repositoryFactory' => null,
34+
3335
'logger' => null
3436
];

phpunit.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false"
12+
>
13+
<testsuites>
14+
<testsuite name="all">
15+
<directory suffix="Test.php">./tests/</directory>
16+
</testsuite>
17+
</testsuites>
18+
</phpunit>

src/CacheProviders/ApcProvider.php renamed to src/Cache/ApcProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Mitch\LaravelDoctrine\CacheProviders;
1+
<?php namespace Mitch\LaravelDoctrine\Cache;
22

33
use Doctrine\Common\Cache\ApcCache;
44

src/CacheProviders/MemcacheProvider.php renamed to src/Cache/MemcacheProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Mitch\LaravelDoctrine\CacheProviders;
1+
<?php namespace Mitch\LaravelDoctrine\Cache;
22

33
use Doctrine\Common\Cache\MemcacheCache;
44
use Memcache;

src/CacheProviders/NullProvider.php renamed to src/Cache/NullProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Mitch\LaravelDoctrine\CacheProviders;
1+
<?php namespace Mitch\LaravelDoctrine\Cache;
22

33
class NullProvider implements Provider
44
{

src/CacheProviders/Provider.php renamed to src/Cache/Provider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Mitch\LaravelDoctrine\CacheProviders;
1+
<?php namespace Mitch\LaravelDoctrine\Cache;
22

33
interface Provider
44
{

src/CacheProviders/RedisProvider.php renamed to src/Cache/RedisProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace Mitch\LaravelDoctrine\CacheProviders;
1+
<?php namespace Mitch\LaravelDoctrine\Cache;
22

33
use Doctrine\Common\Cache\RedisCache;
44
use Redis;

0 commit comments

Comments
 (0)