-
Notifications
You must be signed in to change notification settings - Fork 10
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
Showing
8 changed files
with
183 additions
and
74 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
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
59 changes: 59 additions & 0 deletions
59
src/Biopen/CoreBundle/Document/Configuration/ConfigurationApi.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace Biopen\CoreBundle\Document\Configuration; | ||
|
||
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB; | ||
|
||
/** @MongoDB\EmbeddedDocument */ | ||
class ConfigurationApi | ||
{ | ||
/** @MongoDB\Field(type="string") */ | ||
protected $internalApiAuthorizedDomains = null; | ||
|
||
/** @MongoDB\Field(type="bool") */ | ||
protected $protectPublicApiWithToken = true; | ||
|
||
/** | ||
* Set internalApiAuthorizedDomains | ||
* | ||
* @param string $internalApiAuthorizedDomains | ||
* @return $this | ||
*/ | ||
public function setInternalApiAuthorizedDomains($internalApiAuthorizedDomains) | ||
{ | ||
$this->internalApiAuthorizedDomains = $internalApiAuthorizedDomains; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Get internalApiAuthorizedDomains | ||
* | ||
* @return string $internalApiAuthorizedDomains | ||
*/ | ||
public function getInternalApiAuthorizedDomains() | ||
{ | ||
return $this->internalApiAuthorizedDomains; | ||
} | ||
|
||
/** | ||
* Set protectPublicApiWithToken | ||
* | ||
* @param bool $protectPublicApiWithToken | ||
* @return $this | ||
*/ | ||
public function setProtectPublicApiWithToken($protectPublicApiWithToken) | ||
{ | ||
$this->protectPublicApiWithToken = $protectPublicApiWithToken; | ||
return $this; | ||
} | ||
|
||
/** | ||
* Get protectPublicApiWithToken | ||
* | ||
* @return bool $protectPublicApiWithToken | ||
*/ | ||
public function getProtectPublicApiWithToken() | ||
{ | ||
return $this->protectPublicApiWithToken; | ||
} | ||
} |
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.