Skip to content
This repository has been archived by the owner on Mar 9, 2020. It is now read-only.

Commit

Permalink
Tidy for ORM only use
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Anderson committed May 1, 2015
1 parent dc53bfd commit f847c98
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 21 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ OAuth2 Doctrine Adapter for Apigility
About
-----

This provides the database structure and interaction for all aspects of OAuth2 including Authorization Code, Access Tokens, Refresh Tokens, JWT & JTI, and Scopes.


Requirements
------------

For ORM you will require `doctrine/doctrine-orm-module` through composer.
ODM is not supported at this time.
This provides the ORM entity definitions for all aspects of OAuth2 including Authorization Code, Access Tokens, Refresh Tokens, JWT & JTI, and Scopes.


Installation
Expand All @@ -25,7 +18,7 @@ Installation
Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```sh
$ php composer.phar require zfcampus/zf-oauth2-doctrine "~0.1"
$ php composer.phar require zfcampus/zf-oauth2-doctrine "~0.2"
```

Add this module to your application's configuration:
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"require": {
"php": ">=5.3.23",
"zfcampus/zf-oauth2": "~1",
"doctrine/doctrine-module": "~0.8"
"doctrine/doctrine-module": "~0.8",
"doctrine/doctrine-orm-module": "*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"squizlabs/php_codesniffer": "~2",
"doctrine/doctrine-orm-module": "*",
"zendframework/zend-config": "~2.3",
"zendframework/zend-form": "~2.3",
"zendframework/zend-loader": "~2.3",
Expand Down
2 changes: 1 addition & 1 deletion test/ORM/AccessTokenTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\AccessTokenInterface;

Expand Down
2 changes: 1 addition & 1 deletion test/ORM/AuthorizationCodeTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\AuthorizationCodeInterface;
use OAuth2\Storage\AccessTokenInterface;
Expand Down
2 changes: 1 addition & 1 deletion test/ORM/BaseTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use Doctrine\ORM\Tools\SchemaTool;
use ZF\OAuth2\Doctrine\Entity;
Expand Down
2 changes: 1 addition & 1 deletion test/ORM/ClientCredentialsTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\ClientCredentialsInterface;

Expand Down
2 changes: 1 addition & 1 deletion test/ORM/ClientTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\ClientInterface;

Expand Down
2 changes: 1 addition & 1 deletion test/ORM/JwtBearerTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\JwtBearerInterface;

Expand Down
2 changes: 1 addition & 1 deletion test/ORM/PublicKeyTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\PublicKeyInterface;

Expand Down
2 changes: 1 addition & 1 deletion test/ORM/RefreshTokenTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\RefreshTokenInterface;

Expand Down
2 changes: 1 addition & 1 deletion test/ORM/ScopeTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Scope;
use OAuth2\Storage\ScopeInterface;
Expand Down
2 changes: 1 addition & 1 deletion test/ORM/UserCredentialsTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ZFTest\OAuth2\Doctrine\Orm;
namespace ZFTest\OAuth2\Doctrine\ORM;

use OAuth2\Storage\UserCredentialsInterface;

Expand Down

0 comments on commit f847c98

Please sign in to comment.