Skip to content

Commit

Permalink
Merge pull request #26 from urakozz/master
Browse files Browse the repository at this point in the history
Enabled Transfers, Loaded Doctrine annotations in CLI mode
  • Loading branch information
jlinn committed Oct 23, 2014
2 parents 0498cc9 + cb728c3 commit e171cb6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/Stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Time: 12:56 PM
*/

namespace Stripe;

namespace Stripe;

use Stripe\Api\AbstractApi;
use Stripe\Api\Accounts;
Expand All @@ -25,6 +25,8 @@
use Stripe\Api\Refunds;
use Stripe\Api\Subscriptions;
use Stripe\Api\Tokens;
use Stripe\Api\Transfers;


/**
* Class Stripe
Expand Down Expand Up @@ -64,6 +66,7 @@ class Stripe
*/
public function __construct($apiKey)
{
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
$this->client = new Client($apiKey);
}

Expand Down Expand Up @@ -230,6 +233,14 @@ public function tokens()
return $this->getApi('Tokens');
}

/**
* @return Transfers
*/
public function transfers()
{
return $this->getApi('Transfers');
}

/**
* @param string $class
* @return AbstractApi
Expand Down

0 comments on commit e171cb6

Please sign in to comment.