Skip to content

Commit

Permalink
Fixing incorrect references to CException.
Browse files Browse the repository at this point in the history
  • Loading branch information
shiki committed Jul 7, 2014
1 parent c87d41d commit 8c39c3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/YAPNS.php
Expand Up @@ -55,7 +55,7 @@ class YAPNS extends \CApplicationComponent

/**
*
* @var ApnsPHP_Push
* @var \ApnsPHP_Push
*/
protected $_pushProvider;

Expand All @@ -66,9 +66,9 @@ class YAPNS extends \CApplicationComponent
public function init()
{
if (empty($this->providerCertificateFilePath))
throw new CException('Push SSL certificate is required.');
throw new \CException('Push SSL certificate is required.');
if (!in_array($this->environment, array(self::ENV_PRODUCTION, self::ENV_SANDBOX)))
throw new CException('Environment is invalid.');
throw new \CException('Environment is invalid.');

$this->initAutoloader();

Expand All @@ -86,7 +86,7 @@ public function getPushProvider()
return $this->_pushProvider;

$push = new \ApnsPHP_Push(
$this->environment == self::ENV_PRODUCTION ? \ApnsPHP_Push::ENVIRONMENT_PRODUCTION : \ApnsPHP_Push::ENVIRONMENT_SANDBOX,
($this->environment == self::ENV_PRODUCTION) ? \ApnsPHP_Push::ENVIRONMENT_PRODUCTION : \ApnsPHP_Push::ENVIRONMENT_SANDBOX,
$this->providerCertificateFilePath
);
if ($this->rootCertificationAuthorityFilePath)
Expand Down

0 comments on commit 8c39c3a

Please sign in to comment.