8000 Fix namespace not properly cased · UltraSimplified/codebird-php@e1bbfa9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1bbfa9

Browse files
committed
Fix namespace not properly cased
1 parent 07ad363 commit e1bbfa9

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
codebird-php - changelog
22
========================
33

4+
2.3.4 (not yet released)
5+
+ Fix namespace to be properly cased
6+
47
2.3.3 (2013-04-26)
58
+ Detect API error responses as XML, see #1
69
+ OAuth: add support for force_login, screen_name parameters, see #14

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ To authenticate your API requests on behalf of a certain Twitter user
3232

3333
```php
3434
require_once ('codebird.php');
35-
Codebird::setConsumerKey('YOURKEY', 'YOURSECRET'); // static, see 'Using multiple Codebird instances'
35+
\Codebird\Codebird::setConsumerKey('YOURKEY', 'YOURSECRET'); // static, see 'Using multiple Codebird instances'
3636

37-
$cb = Codebird::getInstance();
37+
$cb = \Codebird\Codebird::getInstance();
3838
```
3939

4040
You may either set the OAuth token and secret, if you already have them:
@@ -96,7 +96,7 @@ only when you call the ```oauth2/invalidate_token``` method.
9696

9797
If you already have your token, tell Codebird to use it:
9898
```php
99-
Codebird::setBearerToken('YOURBEARERTOKEN');
99+
\Codebird\Codebird::setBearerToken('YOURBEARERTOKEN');
100100
```
101101

102102
For sending an API request with app-only auth, see the ‘Usage examples’ section.
@@ -224,16 +224,16 @@ called a *singleton*.
224224
Getting the main Codebird object is done like this:
225225

226226
```php
227-
$cb = Codebird::getInstance();
227+
$cb = \Codebird\Codebird::getInstance();
228228
```
229229

230230
If you need to run requests to the Twitter API for multiple users at once,
231231
Codebird supports this as well. Instead of getting the instance like shown above,
232232
create a new object:
233233

234234
```php
235-
$cb1 = new Codebird;
236-
$cb2 = new Codebird;
235+
$cb1 = new \Codebird\Codebird;
236+
$cb2 = new \Codebird\Codebird;
237237
```
238238

239239
Please note that your OAuth consumer key and secret is shared within

src/codebird.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace CodeBird;
3+
namespace Codebird;
44

55
/**
66
* A Twitter library in PHP.
77
*
88
* @package codebird
9-
* @version 2.3.3
9+
* @version 2.3.4-dev
1010
* @author J.M. <me@mynetx.net>
1111
* @copyright 2010-2013 J.M. <me@mynetx.net>
1212
*
@@ -96,7 +96,7 @@ class Codebird
9696
/**
9797
* The current Codebird version
9898
*/
99-
protected $_version = '2.3.3';
99+
protected $_version = '2.3.3-dev';
100100

101101
/**
102102
* Returns singleton class instance

0 commit comments

Comments
 (0)
0