Skip to content

Commit 00a3f17

Browse files
committed
added base for OAuthListener ; @note: implementation delayed until upstream merges needed changes in OAuth library
1 parent e9e815b commit 00a3f17

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the bitbucket-api package.
5+
*
6+
* (c) Alexandru G. <alex@gentle.ro>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Bitbucket\API\Http\Listener;
13+
14+
use Buzz\Message\MessageInterface;
15+
use Buzz\Message\RequestInterface;
16+
17+
/**
18+
* @author Alexandru G. <alex@gentle.ro>
19+
*/
20+
class OAuthListener implements ListenerInterface
21+
{
22+
/**
23+
* {@inheritDoc}
24+
*/
25+
public function getName()
26+
{
27+
return 'oauth';
28+
}
29+
30+
/**
31+
* {@inheritDoc}
32+
*/
33+
public function preSend(RequestInterface $request)
34+
{}
35+
36+
/**
37+
* {@inheritDoc}
38+
*/
39+
public function postSend(RequestInterface $request, MessageInterface $response)
40+
{}
41+
}

0 commit comments

Comments
 (0)