This repository has been archived by the owner on Mar 9, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8be8848
commit 43d6c56
Showing
29 changed files
with
615 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,3 @@ build | |
/.project | ||
/deployment.properties | ||
/deployment.xml | ||
test/asset/orm-autoload/oauth2.doctrine-orm.global.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="API Skeletons" namespace="API-Skeletons\CS\Standard"> | ||
<description>v1.0 Coding Standard for API Skeletons</description> | ||
<file>src</file> | ||
<file>test</file> | ||
<exclude-pattern type="relative">Bootstrap.php</exclude-pattern> | ||
<exclude-pattern type="relative">*/data/*</exclude-pattern> | ||
<arg name="colors"/> | ||
<rule ref="PSR1"/> | ||
<rule ref="PSR2"/> | ||
<rule ref="Generic.Arrays.ArrayIndent"/> | ||
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/> | ||
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> | ||
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> | ||
<rule ref="Generic.Commenting.Fixme"/> | ||
<rule ref="Generic.Commenting.Todo"/> | ||
<rule ref="Generic.ControlStructures.InlineControlStructure"/> | ||
<rule ref="Generic.Formatting.SpaceAfterNot"/> | ||
<rule ref="Generic.Formatting.NoSpaceAfterCast"/> | ||
<rule ref="Generic.NamingConventions.ConstructorName"/> | ||
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/> | ||
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/> | ||
<rule ref="Generic.PHP.DisallowShortOpenTag"/> | ||
<rule ref="Generic.PHP.DisallowAlternativePHPTags"/> | ||
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/> | ||
<rule ref="./vendor/api-skeletons/coding-standard/phpcs/Sniffs/Strings/ConcatenationSpacingSniff.php"/> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,70 +1,70 @@ | ||
<?php | ||
|
||
namespace ZF\OAuth2\Doctrine; | ||
|
||
use Zend\ServiceManager\Factory\InvokableFactory; | ||
|
||
class ConfigProvider | ||
{ | ||
/** | ||
* Return general purpose zf-oauth2-doctrine configuration | ||
* | ||
* @return array | ||
*/ | ||
public function __invoke() | ||
{ | ||
return [ | ||
'dependencies' => $this->getDependencyConfig(), | ||
'zf-apigility-doctrine-query-create-filter' => $this->getQueryCreateFilterConfig(), | ||
'zf-apigility-doctrine-query-provider' => $this->getQueryProviderConfig(), | ||
]; | ||
} | ||
|
||
/** | ||
* Return application-level dependency configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function getDependencyConfig() | ||
{ | ||
return [ | ||
'factories' => [ | ||
Adapter\DoctrineAdapterFactory::class => InvokableFactory::class, | ||
Mapper\MapperManager::class => InvokableFactory::class, | ||
Adapter\DoctrineAdapter::class => InvokableFactory::class, | ||
], | ||
'shared' => [ | ||
Adapter\DoctrineAdapterFactory::class => false, | ||
Mapper\MapperManager::class => false, | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* Return QueryCreateFilter configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function getQueryCreateFilterConfig() | ||
{ | ||
return [ | ||
'initializers' => [ | ||
Query\OAuth2ServerInitializer::class, | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* Return QueryProvider configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function getQueryProviderConfig() | ||
{ | ||
return [ | ||
'initializers' => [ | ||
Query\OAuth2ServerInitializer::class, | ||
], | ||
]; | ||
} | ||
} | ||
<?php | ||
|
||
namespace ZF\OAuth2\Doctrine; | ||
|
||
use Zend\ServiceManager\Factory\InvokableFactory; | ||
|
||
class ConfigProvider | ||
{ | ||
/** | ||
* Return general purpose zf-oauth2-doctrine configuration | ||
* | ||
* @return array | ||
*/ | ||
public function __invoke() | ||
{ | ||
return [ | ||
'dependencies' => $this->getDependencyConfig(), | ||
'zf-apigility-doctrine-query-create-filter' => $this->getQueryCreateFilterConfig(), | ||
'zf-apigility-doctrine-query-provider' => $this->getQueryProviderConfig(), | ||
]; | ||
} | ||
|
||
/** | ||
* Return application-level dependency configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function getDependencyConfig() | ||
{ | ||
return [ | ||
'factories' => [ | ||
Adapter\DoctrineAdapterFactory::class => InvokableFactory::class, | ||
Mapper\MapperManager::class => InvokableFactory::class, | ||
Adapter\DoctrineAdapter::class => InvokableFactory::class, | ||
], | ||
'shared' => [ | ||
Adapter\DoctrineAdapterFactory::class => false, | ||
Mapper\MapperManager::class => false, | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* Return QueryCreateFilter configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function getQueryCreateFilterConfig() | ||
{ | ||
return [ | ||
'initializers' => [ | ||
Query\OAuth2ServerInitializer::class, | ||
], | ||
]; | ||
} | ||
|
||
/** | ||
* Return QueryProvider configuration. | ||
* | ||
* @return array | ||
*/ | ||
public function getQueryProviderConfig() | ||
{ | ||
return [ | ||
'initializers' => [ | ||
Query\OAuth2ServerInitializer::class, | ||
], | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.