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
Обо мне | |
Twitter - https://twitter.com/ovrweb | |
UnderJS Podcast https://underjs.ru/ | |
Доклад - https://www.icloud.com/keynote/0gKSWDvy_lmWLQDUUJjt5wqwA#async | |
Ссылки по докладу | |
- Библиотека - https://github.com/ovr/async-std | |
- Кольцо-защиты https://ru.wikipedia.org/wiki/%D0%9A%D0%BE%D0%BB%D1%8C%D1%86%D0%B0_%D0%B7%D0%B0%D1%89%D0%B8%D1%82%D1%8B |
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
<?php | |
class RequestBuilder | |
{ | |
/** | |
* @var HttpStack | |
*/ | |
private $httpStack; | |
/** |
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
<?php | |
$client = new SimpleClient( | |
new HttpStack( | |
new \Zend\Diactoros\RequestFactory(), | |
new \Zend\Diactoros\StreamFactory() | |
) | |
); | |
$request = $client->createRequest('GET', 'https://api.github.com/users/ovr'); |
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
<?php | |
use Psr\Http\Message\RequestFactoryInterface; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\StreamFactoryInterface; | |
use Psr\Http\Message\StreamInterface; | |
class HttpStack implements RequestFactoryInterface, StreamFactoryInterface | |
{ | |
/** |
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
<?php | |
use Psr\Http\Client\ClientInterface; | |
use Psr\Http\Message\RequestInterface; | |
use Psr\Http\Message\ResponseFactoryInterface; | |
use Psr\Http\Message\ResponseInterface; | |
class Client implements ClientInterface { | |
/** | |
* @var ResponseFactoryInterface |
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
<project name="Uniqhand" default="build" basedir="."> | |
<property name="source" value="${basedir}/.."/> | |
<property name="appsource" value="${source}/application"/> | |
<property name="libsource" value="${source}/library"/> | |
<target name="clean" | |
description="Clean up artifact directories"> | |
<delete dir="${basedir}/build"/> | |
</target> |
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
04e67d1d577dd6bafbf379104598ad801730dcfddcb3b26e3758bffb7f28db3ac9c8df8eb5949fb0f57f8a5200c357c55c245c51630238d94e77eaed5aabb8159b |
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
<?php | |
class OauthCbController extends AbstractController | |
{ | |
/** | |
* @Inject("SocialConnect\Auth\Service") | |
* | |
* @var \SocialConnect\Auth\Service | |
*/ | |
protected $oauth; |
NewerOlder