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

Commit

Permalink
Merge pull request #176 from zfcampus/develop
Browse files Browse the repository at this point in the history
Develop merge
  • Loading branch information
TomHAnderson committed Apr 27, 2015
2 parents b5c79b2 + 20d2ecd commit 2318beb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Server/Resource/DoctrineResourceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ protected function loadQueryCreateFilter(ServiceLocatorInterface $serviceLocator
// Load the oAuth2 server
$oAuth2Server = false;
try {
$oAuth2Server = $serviceLocator->get('ZF\OAuth2\Service\OAuth2Server');
$oAuth2ServerFactory = $serviceLocator->get('ZF\OAuth2\Service\OAuth2Server');
$oAuth2Server = $oAuth2ServerFactory();
$queryCreateFilter->setOAuth2Server($oAuth2Server);
} catch (Exception $e) {
// If no oAuth2 server that's just fine.
Expand Down Expand Up @@ -264,7 +265,8 @@ protected function loadQueryProviders(ServiceLocatorInterface $serviceLocator, $
// Load the oAuth2 server
$oAuth2Server = false;
try {
$oAuth2Server = $serviceLocator->get('ZF\OAuth2\Service\OAuth2Server');
$oAuth2ServerFactory = $serviceLocator->get('ZF\OAuth2\Service\OAuth2Server');
$oAuth2Server = $oAuth2ServerFactory();
} catch (Exception $e) {
// If no oAuth2 server that's just fine.
}
Expand Down

0 comments on commit 2318beb

Please sign in to comment.