├── vendor ├── clue │ └── stream-filter │ │ ├── .gitignore │ │ ├── src │ │ └── functions_include.php │ │ ├── examples │ │ ├── uppercase.php │ │ ├── base64_encode.php │ │ └── base64_decode.php │ │ ├── .travis.yml │ │ ├── phpunit.xml.dist │ │ ├── composer.json │ │ ├── LICENSE │ │ ├── tests │ │ ├── FunTest.php │ │ └── FunZlibTest.php │ │ └── CHANGELOG.md ├── php-http │ ├── message │ │ ├── apigen.neon │ │ ├── src │ │ │ ├── Exception.php │ │ │ ├── filters.php │ │ │ ├── Exception │ │ │ │ └── UnexpectedValueException.php │ │ │ ├── UriFactory │ │ │ │ ├── GuzzleUriFactory.php │ │ │ │ ├── DiactorosUriFactory.php │ │ │ │ └── SlimUriFactory.php │ │ │ ├── StreamFactory │ │ │ │ ├── GuzzleStreamFactory.php │ │ │ │ ├── DiactorosStreamFactory.php │ │ │ │ └── SlimStreamFactory.php │ │ │ ├── Encoding │ │ │ │ ├── DechunkStream.php │ │ │ │ ├── ChunkStream.php │ │ │ │ ├── Filter │ │ │ │ │ └── Chunk.php │ │ │ │ ├── DeflateStream.php │ │ │ │ ├── CompressStream.php │ │ │ │ ├── InflateStream.php │ │ │ │ ├── DecompressStream.php │ │ │ │ ├── GzipDecodeStream.php │ │ │ │ └── GzipEncodeStream.php │ │ │ ├── Formatter.php │ │ │ ├── RequestMatcher.php │ │ │ ├── Authentication.php │ │ │ ├── RequestMatcher │ │ │ │ ├── CallbackRequestMatcher.php │ │ │ │ ├── RegexRequestMatcher.php │ │ │ │ └── RequestMatcher.php │ │ │ ├── Authentication │ │ │ │ ├── Bearer.php │ │ │ │ ├── BasicAuth.php │ │ │ │ ├── RequestConditional.php │ │ │ │ ├── QueryParam.php │ │ │ │ ├── AutoBasicAuth.php │ │ │ │ ├── Chain.php │ │ │ │ ├── Wsse.php │ │ │ │ └── Matching.php │ │ │ ├── Formatter │ │ │ │ └── SimpleFormatter.php │ │ │ ├── MessageFactory │ │ │ │ ├── GuzzleMessageFactory.php │ │ │ │ ├── DiactorosMessageFactory.php │ │ │ │ └── SlimMessageFactory.php │ │ │ ├── Decorator │ │ │ │ ├── ResponseDecorator.php │ │ │ │ └── RequestDecorator.php │ │ │ └── CookieUtil.php │ │ ├── LICENSE │ │ ├── composer.json │ │ └── README.md │ ├── discovery │ │ ├── src │ │ │ ├── Exception.php │ │ │ ├── Exception │ │ │ │ ├── PuliUnavailableException.php │ │ │ │ ├── ClassInstantiationFailedException.php │ │ │ │ ├── NotFoundException.php │ │ │ │ ├── StrategyUnavailableException.php │ │ │ │ ├── DiscoveryFailedException.php │ │ │ │ └── NoCandidateFoundException.php │ │ │ ├── NotFoundException.php │ │ │ ├── Strategy │ │ │ │ ├── DiscoveryStrategy.php │ │ │ │ └── MockClientStrategy.php │ │ │ ├── HttpClientDiscovery.php │ │ │ ├── Psr18ClientDiscovery.php │ │ │ ├── HttpAsyncClientDiscovery.php │ │ │ ├── UriFactoryDiscovery.php │ │ │ ├── StreamFactoryDiscovery.php │ │ │ └── MessageFactoryDiscovery.php │ │ ├── LICENSE │ │ ├── README.md │ │ └── composer.json │ ├── guzzle6-adapter │ │ ├── src │ │ │ ├── Exception │ │ │ │ └── UnexpectedValueException.php │ │ │ └── Client.php │ │ ├── puli.json │ │ ├── LICENSE │ │ ├── composer.json │ │ └── README.md │ ├── message-factory │ │ ├── src │ │ │ ├── MessageFactory.php │ │ │ ├── UriFactory.php │ │ │ ├── StreamFactory.php │ │ │ ├── RequestFactory.php │ │ │ └── ResponseFactory.php │ │ ├── composer.json │ │ ├── LICENSE │ │ ├── README.md │ │ ├── CHANGELOG.md │ │ └── puli.json │ ├── httplug │ │ ├── puli.json │ │ ├── src │ │ │ ├── Exception │ │ │ │ ├── TransferException.php │ │ │ │ ├── NetworkException.php │ │ │ │ ├── RequestException.php │ │ │ │ └── HttpException.php │ │ │ ├── Exception.php │ │ │ ├── HttpAsyncClient.php │ │ │ ├── HttpClient.php │ │ │ └── Promise │ │ │ │ ├── HttpRejectedPromise.php │ │ │ │ └── HttpFulfilledPromise.php │ │ ├── composer.json │ │ ├── LICENSE │ │ └── README.md │ └── promise │ │ ├── CHANGELOG.md │ │ ├── composer.json │ │ ├── LICENSE │ │ ├── src │ │ ├── FulfilledPromise.php │ │ ├── RejectedPromise.php │ │ └── Promise.php │ │ └── README.md ├── guzzlehttp │ ├── guzzle │ │ ├── src │ │ │ ├── Exception │ │ │ │ ├── TooManyRedirectsException.php │ │ │ │ ├── TransferException.php │ │ │ │ ├── ClientException.php │ │ │ │ ├── ServerException.php │ │ │ │ ├── GuzzleException.php │ │ │ │ ├── SeekException.php │ │ │ │ ├── ConnectException.php │ │ │ │ └── BadResponseException.php │ │ │ ├── functions_include.php │ │ │ ├── Handler │ │ │ │ ├── CurlFactoryInterface.php │ │ │ │ ├── CurlHandler.php │ │ │ │ └── Proxy.php │ │ │ └── Cookie │ │ │ │ └── SessionCookieJar.php │ │ ├── LICENSE │ │ └── composer.json │ ├── psr7 │ │ ├── src │ │ │ ├── functions_include.php │ │ │ ├── NoSeekStream.php │ │ │ ├── Rfc7230.php │ │ │ ├── LazyOpenStream.php │ │ │ ├── DroppingStream.php │ │ │ └── InflateStream.php │ │ ├── LICENSE │ │ └── composer.json │ └── promises │ │ ├── src │ │ ├── functions_include.php │ │ ├── CancellationException.php │ │ ├── PromisorInterface.php │ │ ├── AggregateException.php │ │ ├── TaskQueueInterface.php │ │ ├── RejectionException.php │ │ ├── TaskQueue.php │ │ └── FulfilledPromise.php │ │ ├── Makefile │ │ ├── composer.json │ │ ├── LICENSE │ │ └── CHANGELOG.md ├── autoload.php ├── composer │ ├── autoload_classmap.php │ ├── autoload_namespaces.php │ ├── autoload_files.php │ ├── LICENSE │ └── autoload_psr4.php ├── psr │ ├── http-client │ │ ├── src │ │ │ ├── ClientExceptionInterface.php │ │ │ ├── ClientInterface.php │ │ │ ├── RequestExceptionInterface.php │ │ │ └── NetworkExceptionInterface.php │ │ ├── CHANGELOG.md │ │ ├── README.md │ │ ├── composer.json │ │ └── LICENSE │ └── http-message │ │ ├── README.md │ │ ├── composer.json │ │ ├── LICENSE │ │ └── CHANGELOG.md ├── ralouphie │ └── getallheaders │ │ ├── composer.json │ │ ├── LICENSE │ │ ├── README.md │ │ └── src │ │ └── getallheaders.php └── vinkla │ └── instagram │ ├── src │ └── InstagramException.php │ ├── LICENSE │ └── composer.json ├── src ├── Resources │ ├── public │ │ └── administration │ │ │ ├── instagram-feed.068de44ee9066192bbe9.hot-update.js │ │ │ ├── instagram-feed.09796dc7720da7026262.hot-update.js │ │ │ ├── instagram-feed.1909fdc1a4cff5db8436.hot-update.js │ │ │ ├── instagram-feed.19b5576d360c320d0d07.hot-update.js │ │ │ ├── instagram-feed.1b0b8a479243265b0205.hot-update.js │ │ │ ├── instagram-feed.1b2ee1b6d275e1fadca2.hot-update.js │ │ │ ├── instagram-feed.2385f0fa7ee964811f20.hot-update.js │ │ │ ├── instagram-feed.23be3e680522c7e9fd2c.hot-update.js │ │ │ ├── instagram-feed.268229382a784eabbe27.hot-update.js │ │ │ ├── instagram-feed.26f8362cd23e2a9ed33c.hot-update.js │ │ │ ├── instagram-feed.2ba01d4b31aafa13abd0.hot-update.js │ │ │ ├── instagram-feed.2d065639932dc355c8f7.hot-update.js │ │ │ ├── instagram-feed.314a54dce5f02f22b88a.hot-update.js │ │ │ ├── instagram-feed.3c50ec283d8ae576f5fb.hot-update.js │ │ │ ├── instagram-feed.49c27e82694c527b9305.hot-update.js │ │ │ ├── instagram-feed.4bc0c94247cc45eabae2.hot-update.js │ │ │ ├── instagram-feed.4fafae4e74c35bc2216b.hot-update.js │ │ │ ├── instagram-feed.61758b561252857ef333.hot-update.js │ │ │ ├── instagram-feed.64ba6201712dc26cacdb.hot-update.js │ │ │ ├── instagram-feed.65d1790de7717897956a.hot-update.js │ │ │ ├── instagram-feed.6775d41c1136115cd9a1.hot-update.js │ │ │ ├── instagram-feed.6c83c334df00f821da62.hot-update.js │ │ │ ├── instagram-feed.6d5aed61a63bfe2a94bd.hot-update.js │ │ │ ├── instagram-feed.728726e14c4dd51a668c.hot-update.js │ │ │ ├── instagram-feed.74e7672bc15fd39a29a3.hot-update.js │ │ │ ├── instagram-feed.8044cbf3f9fd9f07ee59.hot-update.js │ │ │ ├── instagram-feed.87cf95543b591026940e.hot-update.js │ │ │ ├── instagram-feed.9336d629cb082ffa5ec5.hot-update.js │ │ │ ├── instagram-feed.93872ede2ae3895da8e7.hot-update.js │ │ │ ├── instagram-feed.995b93f121503a16c7a3.hot-update.js │ │ │ ├── instagram-feed.a3c8e84f025e7565bef1.hot-update.js │ │ │ ├── instagram-feed.a8b59be77d6ab4ff4e35.hot-update.js │ │ │ ├── instagram-feed.a95f873bc616e004685b.hot-update.js │ │ │ ├── instagram-feed.aaaa59ffd6c3a073ba19.hot-update.js │ │ │ ├── instagram-feed.b6a029dfea1e6ded056c.hot-update.js │ │ │ ├── instagram-feed.b767c4f43fdf40707341.hot-update.js │ │ │ ├── instagram-feed.bc1e2b4c6b2432a66a09.hot-update.js │ │ │ ├── instagram-feed.c1a15e87568c9e223681.hot-update.js │ │ │ ├── instagram-feed.d85a790714ae33152d43.hot-update.js │ │ │ ├── instagram-feed.dcd016907e7fe32048ba.hot-update.js │ │ │ ├── instagram-feed.ef9ab1e5136744dad803.hot-update.js │ │ │ └── css │ │ │ └── instagram-feed.css │ ├── storefront │ │ ├── main.scss │ │ ├── main.js │ │ └── instagram-plugin │ │ │ └── instagram-plugin.plugin.js │ ├── views │ │ ├── block │ │ │ └── cms-block-image-text-reversed.html.twig │ │ └── administration │ │ │ ├── index.html.twig │ │ │ └── module │ │ │ └── sw-cms │ │ │ └── page │ │ │ └── sw-cms-detail │ │ │ └── sw-cms-detail.html.twig │ ├── administration │ │ ├── main.js │ │ └── module │ │ │ └── sw-cms │ │ │ ├── elements │ │ │ └── instagram │ │ │ │ ├── preview │ │ │ │ ├── sw-cms-el-preview-instagram.scss │ │ │ │ └── index.js │ │ │ │ ├── index.js │ │ │ │ ├── component │ │ │ │ ├── sw-cms-el-instagram.html.twig │ │ │ │ ├── index.js │ │ │ │ └── sw-cms-el-instagram.scss │ │ │ │ └── config │ │ │ │ ├── index.js │ │ │ │ └── sw-cms-el-config-instagram.html.twig │ │ │ └── blocks │ │ │ └── text-image │ │ │ └── image-text-reversed │ │ │ ├── preview │ │ │ ├── sw-cms-preview-image-text-reversed.scss │ │ │ ├── index.js │ │ │ └── sw-cms-preview-image-text-reversed.html.twig │ │ │ ├── component │ │ │ ├── sw-cms-block-image-text-reversed.scss │ │ │ ├── index.js │ │ │ └── sw-cms-block-image-text-reversed.html.twig │ │ │ └── index.js │ ├── config │ │ ├── routes.xml │ │ ├── services.xml │ │ └── config.xml │ └── dist │ │ └── storefront │ │ └── js │ │ └── instagram-feed.js ├── InstagramFeed.php └── Storefront │ └── Controller │ └── InstagramFeedController.php └── composer.json /vendor/clue/stream-filter/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /composer.lock 3 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.068de44ee9066192bbe9.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.09796dc7720da7026262.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.1909fdc1a4cff5db8436.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.19b5576d360c320d0d07.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.1b0b8a479243265b0205.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.1b2ee1b6d275e1fadca2.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.2385f0fa7ee964811f20.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.23be3e680522c7e9fd2c.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.268229382a784eabbe27.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.26f8362cd23e2a9ed33c.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.2ba01d4b31aafa13abd0.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.2d065639932dc355c8f7.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.314a54dce5f02f22b88a.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.3c50ec283d8ae576f5fb.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.49c27e82694c527b9305.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.4bc0c94247cc45eabae2.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.4fafae4e74c35bc2216b.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.61758b561252857ef333.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.64ba6201712dc26cacdb.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.65d1790de7717897956a.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.6775d41c1136115cd9a1.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.6c83c334df00f821da62.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.6d5aed61a63bfe2a94bd.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.728726e14c4dd51a668c.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.74e7672bc15fd39a29a3.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.8044cbf3f9fd9f07ee59.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.87cf95543b591026940e.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.9336d629cb082ffa5ec5.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.93872ede2ae3895da8e7.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.995b93f121503a16c7a3.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.a3c8e84f025e7565bef1.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.a8b59be77d6ab4ff4e35.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.a95f873bc616e004685b.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.aaaa59ffd6c3a073ba19.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.b6a029dfea1e6ded056c.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.b767c4f43fdf40707341.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.bc1e2b4c6b2432a66a09.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.c1a15e87568c9e223681.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.d85a790714ae33152d43.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.dcd016907e7fe32048ba.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/public/administration/instagram-feed.ef9ab1e5136744dad803.hot-update.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/Resources/storefront/main.scss: -------------------------------------------------------------------------------- 1 | .cms-elemet-instagram-opener { 2 | background: #fff; 3 | } 4 | -------------------------------------------------------------------------------- /src/Resources/views/block/cms-block-image-text-reversed.html.twig: -------------------------------------------------------------------------------- 1 | {% sw_extends '@Storefront/block/cms-block-image-text.html.twig' %} -------------------------------------------------------------------------------- /vendor/php-http/message/apigen.neon: -------------------------------------------------------------------------------- 1 | source: 2 | - src/ 3 | 4 | destination: build/api/ 5 | 6 | templateTheme: bootstrap 7 | -------------------------------------------------------------------------------- /src/Resources/administration/main.js: -------------------------------------------------------------------------------- 1 | import './module/sw-cms/blocks/text-image/image-text-reversed'; 2 | import './module/sw-cms/elements/instagram'; 3 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/src/functions_include.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | interface Exception 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/src/Exception/UnexpectedValueException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | interface MessageFactory extends RequestFactory, ResponseFactory 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/elements/instagram/preview/index.js: -------------------------------------------------------------------------------- 1 | import { Component } from 'src/core/shopware'; 2 | import template from './sw-cms-el-preview-instagram.html.twig'; 3 | import './sw-cms-el-preview-instagram.scss'; 4 | 5 | Component.register('sw-cms-el-preview-instagram', { 6 | template 7 | }); 8 | -------------------------------------------------------------------------------- /src/InstagramFeed.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class PuliUnavailableException extends StrategyUnavailableException 11 | { 12 | } 13 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/blocks/text-image/image-text-reversed/component/index.js: -------------------------------------------------------------------------------- 1 | import { Component } from 'src/core/shopware'; 2 | import template from './sw-cms-block-image-text-reversed.html.twig'; 3 | import './sw-cms-block-image-text-reversed.scss'; 4 | 5 | Component.register('sw-cms-block-image-text-reversed', { 6 | template 7 | }); 8 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/blocks/text-image/image-text-reversed/preview/index.js: -------------------------------------------------------------------------------- 1 | import { Component } from 'src/core/shopware'; 2 | import template from './sw-cms-preview-image-text-reversed.html.twig'; 3 | import './sw-cms-preview-image-text-reversed.scss'; 4 | 5 | Component.register('sw-cms-preview-image-text-reversed', { 6 | template 7 | }); 8 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/PromisorInterface.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class TransferException extends \RuntimeException implements Exception 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | interface Exception extends PsrClientException 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/GuzzleException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class ClassInstantiationFailedException extends \RuntimeException implements Exception 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /src/Resources/config/routes.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/psr/http-client/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release. 4 | 5 | ## 1.0.0 6 | 7 | First stable release. No changes since 0.3.0. 8 | 9 | ## 0.3.0 10 | 11 | Added Interface suffix on exceptions 12 | 13 | ## 0.2.0 14 | 15 | All exceptions are in `Psr\Http\Client` namespace 16 | 17 | ## 0.1.0 18 | 19 | First release -------------------------------------------------------------------------------- /vendor/psr/http-message/README.md: -------------------------------------------------------------------------------- 1 | PSR Http Message 2 | ================ 3 | 4 | This repository holds all interfaces/classes/traits related to 5 | [PSR-7](http://www.php-fig.org/psr/psr-7/). 6 | 7 | Note that this is not a HTTP message implementation of its own. It is merely an 8 | interface that describes a HTTP message. See the specification for more details. 9 | 10 | Usage 11 | ----- 12 | 13 | We'll certainly need some stuff in here. -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/blocks/text-image/image-text-reversed/component/sw-cms-block-image-text-reversed.html.twig: -------------------------------------------------------------------------------- 1 | {% block sw_cms_block_image_text_reversed %} 2 |
3 | {% block sw_cms_block_image_text_reversed_slot_left %}{% endblock %} 4 | {% block sw_cms_block_image_text_reversed_slot_right %}{% endblock %} 5 |
6 | {% endblock %} 7 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/NotFoundException.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | /*final */class NotFoundException extends \RuntimeException implements Exception 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/NotFoundException.php: -------------------------------------------------------------------------------- 1 | 9 | * 10 | * @deprecated since since version 1.0, and will be removed in 2.0. Use {@link \Http\Discovery\Exception\NotFoundException} instead. 11 | */ 12 | final class NotFoundException extends \Http\Discovery\Exception\NotFoundException 13 | { 14 | } 15 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/elements/instagram/index.js: -------------------------------------------------------------------------------- 1 | import { Application } from 'src/core/shopware'; 2 | import './component'; 3 | import './config'; 4 | import './preview'; 5 | 6 | Application.getContainer('service').cmsService.registerCmsElement({ 7 | name: 'instagram', 8 | label: 'Instagram', 9 | component: 'sw-cms-el-instagram', 10 | configComponent: 'sw-cms-el-config-instagram', 11 | previewComponent: 'sw-cms-el-preview-instagram' 12 | }); 13 | -------------------------------------------------------------------------------- /src/Resources/storefront/main.js: -------------------------------------------------------------------------------- 1 | // Import all necessary Storefront plugins and scss files 2 | import InstagramPlugin from './instagram-plugin/instagram-plugin.plugin'; 3 | 4 | // Register them via the existing PluginManager 5 | const PluginManager = window.PluginManager; 6 | PluginManager.register('InstagramPlugin', InstagramPlugin, '[data-instagram-plugin]'); 7 | 8 | // Necessary for the webpack hot module reloading server 9 | if (module.hot) { 10 | module.hot.accept(); 11 | } 12 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/StrategyUnavailableException.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class StrategyUnavailableException extends \RuntimeException implements Exception 14 | { 15 | } 16 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/AggregateException.php: -------------------------------------------------------------------------------- 1 | 3 | 9 | 10 | {% endblock %} 11 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/UriFactory/GuzzleUriFactory.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class GuzzleUriFactory implements UriFactory 14 | { 15 | /** 16 | * {@inheritdoc} 17 | */ 18 | public function createUri($uri) 19 | { 20 | return Psr7\uri_for($uri); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Resources/views/administration/index.html.twig: -------------------------------------------------------------------------------- 1 | {% sw_extends 'administration/index.html.twig' %} 2 | 3 | {% block administration_stylesheets %} 4 | {{ parent() }} 5 | 6 | {% endblock %} 7 | 8 | {% block administration_scripts %} 9 | {{ parent() }} 10 | 11 | {% endblock %} 12 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/blocks/text-image/image-text-reversed/preview/sw-cms-preview-image-text-reversed.html.twig: -------------------------------------------------------------------------------- 1 | {% block sw_cms_block_image_text_reversed_preview %} 2 |
3 |
4 |

Lorem ipsum dolor

5 |

Lorem ipsum dolor sit amet, consetetur sadipscing elitr.

6 |
7 | 8 |
9 | {% endblock %} 10 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/StreamFactory/GuzzleStreamFactory.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class GuzzleStreamFactory implements StreamFactory 13 | { 14 | /** 15 | * {@inheritdoc} 16 | */ 17 | public function createStream($body = null) 18 | { 19 | return \GuzzleHttp\Psr7\stream_for($body); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception/NetworkException.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | class NetworkException extends RequestException implements PsrNetworkException 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/NoSeekStream.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | 10 | 11 | ./tests/ 12 | 13 | 14 | 15 | 16 | ./src/ 17 | 18 | 19 | -------------------------------------------------------------------------------- /vendor/php-http/promise/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | 4 | ## 1.0.0 - 2016-01-26 5 | 6 | ### Removed 7 | 8 | - PSR-7 dependency 9 | 10 | 11 | ## 1.0.0-RC1 - 2016-01-12 12 | 13 | ### Added 14 | 15 | - Tests for full coverage 16 | 17 | ## Changed 18 | 19 | - Updated package files 20 | - Clarified wait method behavior 21 | - Contributing guide moved to the documentation 22 | 23 | 24 | ## 0.1.1 - 2015-12-24 25 | 26 | ## Added 27 | 28 | - Fulfilled and Rejected promise implementations 29 | 30 | 31 | ## 0.1.0 - 2015-12-13 32 | 33 | ## Added 34 | 35 | - Promise interface 36 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/elements/instagram/component/index.js: -------------------------------------------------------------------------------- 1 | import { Component, Mixin } from 'src/core/shopware'; 2 | import template from './sw-cms-el-instagram.html.twig'; 3 | import './sw-cms-el-instagram.scss'; 4 | 5 | Component.register('sw-cms-el-instagram', { 6 | template, 7 | 8 | mixins: [ 9 | Mixin.getByName('cms-element') 10 | ], 11 | 12 | created() { 13 | this.createdComponent(); 14 | }, 15 | 16 | methods: { 17 | createdComponent() { 18 | this.initElementConfig('instagram'); 19 | } 20 | } 21 | }); 22 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/src/UriFactory.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | interface UriFactory 13 | { 14 | /** 15 | * Creates an PSR-7 URI. 16 | * 17 | * @param string|UriInterface $uri 18 | * 19 | * @return UriInterface 20 | * 21 | * @throws \InvalidArgumentException If the $uri argument can not be converted into a valid URI. 22 | */ 23 | public function createUri($uri); 24 | } 25 | -------------------------------------------------------------------------------- /src/Resources/config/services.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ralouphie/getallheaders", 3 | "description": "A polyfill for getallheaders.", 4 | "license": "MIT", 5 | "authors": [ 6 | { 7 | "name": "Ralph Khattar", 8 | "email": "ralph.khattar@gmail.com" 9 | } 10 | ], 11 | "require": { 12 | "php": ">=5.6" 13 | }, 14 | "require-dev": { 15 | "phpunit/phpunit": "^5 || ^6.5", 16 | "php-coveralls/php-coveralls": "^2.1" 17 | }, 18 | "autoload": { 19 | "files": ["src/getallheaders.php"] 20 | }, 21 | "autoload-dev": { 22 | "psr-4": { 23 | "getallheaders\\Tests\\": "tests/" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/TaskQueueInterface.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | class DechunkStream extends FilteredStream 13 | { 14 | /** 15 | * {@inheritdoc} 16 | */ 17 | protected function readFilter() 18 | { 19 | return 'dechunk'; 20 | } 21 | 22 | /** 23 | * {@inheritdoc} 24 | */ 25 | protected function writeFilter() 26 | { 27 | return 'chunk'; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/psr/http-client/src/ClientInterface.php: -------------------------------------------------------------------------------- 1 | 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 | declare(strict_types=1); 13 | 14 | namespace Vinkla\Instagram; 15 | 16 | use RuntimeException; 17 | 18 | /** 19 | * This is the instagram exception class. 20 | * 21 | * @author Vincent Klaiber 22 | */ 23 | class InstagramException extends RuntimeException 24 | { 25 | // 26 | } 27 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sas/instagram-feed-element", 3 | "description": "Instagram Feed Plugin", 4 | "type": "shopware-platform-plugin", 5 | "license": "MIT", 6 | "require": { 7 | "vinkla/instagram": "^9.3", 8 | "php-http/message": "^1.8", 9 | "php-http/guzzle6-adapter": "^2.0" 10 | }, 11 | "autoload": { 12 | "psr-4": { 13 | "InstagramFeed\\": "src/" 14 | } 15 | }, 16 | "extra": { 17 | "shopware-plugin-class": "InstagramFeed\\InstagramFeed", 18 | "label": { 19 | "de-DE": "Instagram Feed Element", 20 | "en-GB": "Instagram Feed Element" 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/puli.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "name": "php-http/guzzle6-adapter", 4 | "bindings": { 5 | "04b5a002-71a8-473d-a8df-75671551b84a": { 6 | "_class": "Puli\\Discovery\\Binding\\ClassBinding", 7 | "class": "Http\\Adapter\\Guzzle6\\Client", 8 | "type": "Http\\Client\\HttpClient" 9 | }, 10 | "9c856476-7f6b-43df-a740-15420a5f839c": { 11 | "_class": "Puli\\Discovery\\Binding\\ClassBinding", 12 | "class": "Http\\Adapter\\Guzzle6\\Client", 13 | "type": "Http\\Client\\HttpAsyncClient" 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/elements/instagram/component/sw-cms-el-instagram.scss: -------------------------------------------------------------------------------- 1 | .sw-cms-el-instagram { 2 | width: 100%; 3 | height: 100%; 4 | .sns-cms-el-instagram-skeleton { 5 | display: grid; 6 | grid-template-columns: repeat(4, 1fr); 7 | grid-gap: 30px; 8 | > li { 9 | width: 100%; 10 | height: 250px; 11 | display: flex; 12 | align-items: center; 13 | justify-content: center; 14 | list-style: none; 15 | background: #f2f2f2; 16 | img { 17 | max-width: 50%; 18 | } 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/psr/http-client/README.md: -------------------------------------------------------------------------------- 1 | PSR Http Client 2 | =============== 3 | 4 | This repository holds all interfaces/classes/traits related to 5 | [PSR-18](http://www.php-fig.org/psr/psr-18/). 6 | 7 | Note that this is not an HTTP client implementation of its own. It is merely an 8 | interface that describes an HTTP client. See 9 | [the specification](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-18-http-client.md) 10 | for more details. 11 | 12 | You can find implementations of the specification by looking for packages providing 13 | the [psr/http-client-implementation](https://packagist.org/providers/psr/http-client-implementation) 14 | virtual package. 15 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/examples/base64_encode.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | interface StreamFactory 13 | { 14 | /** 15 | * Creates a new PSR-7 stream. 16 | * 17 | * @param string|resource|StreamInterface|null $body 18 | * 19 | * @return StreamInterface 20 | * 21 | * @throws \InvalidArgumentException If the stream body is invalid. 22 | * @throws \RuntimeException If creating the stream from $body fails. 23 | */ 24 | public function createStream($body = null); 25 | } 26 | -------------------------------------------------------------------------------- /vendor/psr/http-client/src/RequestExceptionInterface.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 16 | $msg = $msg ?: 'Could not seek the stream to position ' . $pos; 17 | parent::__construct($msg); 18 | } 19 | 20 | /** 21 | * @return StreamInterface 22 | */ 23 | public function getStream() 24 | { 25 | return $this->stream; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Resources/public/administration/css/instagram-feed.css: -------------------------------------------------------------------------------- 1 | .sw-cms-block-image-text-reversed{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));grid-gap:40px}.sw-cms-preview-image-text-reversed{display:grid;grid-template-columns:1fr 1fr;grid-column-gap:20px;padding:15px}.sw-cms-el-instagram{width:100%;height:100%}.sw-cms-el-instagram .sns-cms-el-instagram-skeleton{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:30px}.sw-cms-el-instagram .sns-cms-el-instagram-skeleton>li{width:100%;height:250px;display:flex;align-items:center;justify-content:center;list-style:none;background:#f2f2f2}.sw-cms-el-instagram .sns-cms-el-instagram-skeleton>li img{max-width:50%}.sw-cms-el-preview-instagram{display:flex;align-items:center;justify-content:center;height:100%} -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Strategy/DiscoveryStrategy.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | interface DiscoveryStrategy 11 | { 12 | /** 13 | * Find a resource of a specific type. 14 | * 15 | * @param string $type 16 | * 17 | * @return array The return value is always an array with zero or more elements. Each 18 | * element is an array with two keys ['class' => string, 'condition' => mixed]. 19 | * 20 | * @throws StrategyUnavailableException if we cannot use this strategy. 21 | */ 22 | public static function getCandidates($type); 23 | } 24 | -------------------------------------------------------------------------------- /vendor/psr/http-message/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-message", 3 | "description": "Common interface for HTTP messages", 4 | "keywords": ["psr", "psr-7", "http", "http-message", "request", "response"], 5 | "homepage": "https://github.com/php-fig/http-message", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "http://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.3.0" 15 | }, 16 | "autoload": { 17 | "psr-4": { 18 | "Psr\\Http\\Message\\": "src/" 19 | } 20 | }, 21 | "extra": { 22 | "branch-alias": { 23 | "dev-master": "1.0.x-dev" 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/blocks/text-image/image-text-reversed/index.js: -------------------------------------------------------------------------------- 1 | import { Application } from 'src/core/shopware'; 2 | import './component'; 3 | import './preview'; 4 | 5 | Application.getContainer('service').cmsService.registerCmsBlock({ 6 | name: 'image-text-reversed', 7 | label: 'Text next to image', 8 | category: 'utopia', 9 | component: 'sw-cms-block-image-text-reversed', 10 | previewComponent: 'sw-cms-preview-image-text-reversed', 11 | defaultConfig: { 12 | marginBottom: '20px', 13 | marginTop: '20px', 14 | marginLeft: '20px', 15 | marginRight: '20px', 16 | sizingMode: 'boxed' 17 | }, 18 | slots: { 19 | left: 'text', 20 | right: 'image' 21 | } 22 | }); 23 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/UriFactory/DiactorosUriFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class DiactorosUriFactory implements UriFactory 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public function createUri($uri) 20 | { 21 | if ($uri instanceof UriInterface) { 22 | return $uri; 23 | } elseif (is_string($uri)) { 24 | return new Uri($uri); 25 | } 26 | 27 | throw new \InvalidArgumentException('URI must be a string or UriInterface'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/psr/http-client/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "psr/http-client", 3 | "description": "Common interface for HTTP clients", 4 | "keywords": ["psr", "psr-18", "http", "http-client"], 5 | "homepage": "https://github.com/php-fig/http-client", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "PHP-FIG", 10 | "homepage": "http://www.php-fig.org/" 11 | } 12 | ], 13 | "require": { 14 | "php": "^7.0", 15 | "psr/http-message": "^1.0" 16 | }, 17 | "autoload": { 18 | "psr-4": { 19 | "Psr\\Http\\Client\\": "src/" 20 | } 21 | }, 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "1.0.x-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/Rfc7230.php: -------------------------------------------------------------------------------- 1 | @,;:\\\"/[\]?={}\x01-\x20\x7F]++):[ \t]*+((?:[ \t]*+[\x21-\x7E\x80-\xFF]++)*+)[ \t]*+\r?\n)m"; 17 | const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; 18 | } 19 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/message-factory", 3 | "description": "Factory interfaces for PSR-7 HTTP Message", 4 | "license": "MIT", 5 | "keywords": ["http", "factory", "message", "stream", "uri"], 6 | "homepage": "http://php-http.org", 7 | "authors": [ 8 | { 9 | "name": "Márk Sági-Kazár", 10 | "email": "mark.sagikazar@gmail.com" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.4", 15 | "psr/http-message": "^1.0" 16 | }, 17 | "autoload": { 18 | "psr-4": { 19 | "Http\\Message\\": "src/" 20 | } 21 | }, 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "1.0-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/UriFactory/SlimUriFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class SlimUriFactory implements UriFactory 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public function createUri($uri) 20 | { 21 | if ($uri instanceof UriInterface) { 22 | return $uri; 23 | } 24 | 25 | if (is_string($uri)) { 26 | return Uri::createFromString($uri); 27 | } 28 | 29 | throw new \InvalidArgumentException('URI must be a string or UriInterface'); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/Resources/administration/module/sw-cms/elements/instagram/config/sw-cms-el-config-instagram.html.twig: -------------------------------------------------------------------------------- 1 | {% block sw_cms_element_image_config %} 2 |
3 | 10 | 11 | 12 | 21 | 22 |
23 | {% endblock %} 24 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Strategy/MockClientStrategy.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class MockClientStrategy implements DiscoveryStrategy 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public static function getCandidates($type) 20 | { 21 | switch ($type) { 22 | case HttpClient::class: 23 | case HttpAsyncClient::class: 24 | return [['class' => Mock::class, 'condition' => Mock::class]]; 25 | default: 26 | return []; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Formatter.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | interface Formatter 14 | { 15 | /** 16 | * Formats a request. 17 | * 18 | * @param RequestInterface $request 19 | * 20 | * @return string 21 | */ 22 | public function formatRequest(RequestInterface $request); 23 | 24 | /** 25 | * Formats a response. 26 | * 27 | * @param ResponseInterface $response 28 | * 29 | * @return string 30 | */ 31 | public function formatResponse(ResponseInterface $response); 32 | } 33 | -------------------------------------------------------------------------------- /src/Resources/config/config.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | Instagram Configuration 6 | Instagram Konfiguration 7 | 8 | secret 9 | 10 | 11 | Your secret token for xyz... 12 | Dein geheimer Schlüssel für xyz... 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /vendor/psr/http-client/src/NetworkExceptionInterface.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | interface RequestMatcher 17 | { 18 | /** 19 | * Decides whether the rule(s) implemented by the strategy matches the supplied request. 20 | * 21 | * @param RequestInterface $request The PSR7 request to check for a match 22 | * 23 | * @return bool true if the request matches, false otherwise 24 | */ 25 | public function matches(RequestInterface $request); 26 | } 27 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "clue/stream-filter", 3 | "description": "A simple and modern approach to stream filtering in PHP", 4 | "keywords": ["stream", "callback", "filter", "php_user_filter", "stream_filter_append", "stream_filter_register", "bucket brigade"], 5 | "homepage": "https://github.com/clue/php-stream-filter", 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Christian Lück", 10 | "email": "christian@lueck.tv" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.3" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "^5.0 || ^4.8" 18 | }, 19 | "autoload": { 20 | "psr-4": { "Clue\\StreamFilter\\": "src/" }, 21 | "files": [ "src/functions_include.php" ] 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/HttpAsyncClient.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | interface HttpAsyncClient 14 | { 15 | /** 16 | * Sends a PSR-7 request in an asynchronous way. 17 | * 18 | * Exceptions related to processing the request are available from the returned Promise. 19 | * 20 | * @return Promise Resolves a PSR-7 Response or fails with an Http\Client\Exception. 21 | * 22 | * @throws \Exception If processing the request is impossible (eg. bad configuration). 23 | */ 24 | public function sendAsyncRequest(RequestInterface $request); 25 | } 26 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | interface Authentication 13 | { 14 | /** 15 | * Alter the request to add the authentication credentials. 16 | * 17 | * To do that, the implementation might use pre-stored credentials or do 18 | * separate HTTP requests to obtain a valid token. 19 | * 20 | * @param RequestInterface $request The request without authentication information 21 | * 22 | * @return RequestInterface The request with added authentication information 23 | */ 24 | public function authenticate(RequestInterface $request); 25 | } 26 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/ChunkStream.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class ChunkStream extends FilteredStream 11 | { 12 | /** 13 | * {@inheritdoc} 14 | */ 15 | protected function readFilter() 16 | { 17 | return 'chunk'; 18 | } 19 | 20 | /** 21 | * {@inheritdoc} 22 | */ 23 | protected function writeFilter() 24 | { 25 | return 'dechunk'; 26 | } 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | protected function fill() 32 | { 33 | parent::fill(); 34 | 35 | if ($this->stream->eof()) { 36 | $this->buffer .= "0\r\n\r\n"; 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/composer/autoload_files.php: -------------------------------------------------------------------------------- 1 | $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 10 | 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', 11 | 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', 12 | '9c67151ae59aff4788964ce8eb2a0f43' => $vendorDir . '/clue/stream-filter/src/functions_include.php', 13 | '37a3dc5111fe8f707ab4c132ef1dbc62' => $vendorDir . '/guzzlehttp/guzzle/src/functions_include.php', 14 | '8cff32064859f4559445b89279f3199c' => $vendorDir . '/php-http/message/src/filters.php', 15 | ); 16 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/HttpClient.php: -------------------------------------------------------------------------------- 1 | 13 | * @author Márk Sági-Kazár 14 | * @author David Buchmann 15 | */ 16 | interface HttpClient extends ClientInterface 17 | { 18 | /** 19 | * Sends a PSR-7 request. 20 | * 21 | * @throws \Http\Client\Exception If an error happens during processing the request. 22 | * @throws \Exception If processing the request is impossible (eg. bad configuration). 23 | */ 24 | public function sendRequest(RequestInterface $request): ResponseInterface; 25 | } 26 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlFactoryInterface.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class CallbackRequestMatcher implements RequestMatcher 14 | { 15 | /** 16 | * @var callable 17 | */ 18 | private $callback; 19 | 20 | /** 21 | * @param callable $callback 22 | */ 23 | public function __construct(callable $callback) 24 | { 25 | $this->callback = $callback; 26 | } 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | public function matches(RequestInterface $request) 32 | { 33 | return (bool) call_user_func($this->callback, $request); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /src/Resources/views/administration/module/sw-cms/page/sw-cms-detail/sw-cms-detail.html.twig: -------------------------------------------------------------------------------- 1 | {% sw_extends 'administration/module/sw-cms/page/sw-cms-detail/sw-cms-detail.html.twig' %} 2 | 3 | {% block sw_cms_detail_sidebar_block_overview_category %} 4 |
5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | {% endblock %} 14 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/Bearer.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class Bearer implements Authentication 14 | { 15 | /** 16 | * @var string 17 | */ 18 | private $token; 19 | 20 | /** 21 | * @param string $token 22 | */ 23 | public function __construct($token) 24 | { 25 | $this->token = $token; 26 | } 27 | 28 | /** 29 | * {@inheritdoc} 30 | */ 31 | public function authenticate(RequestInterface $request) 32 | { 33 | $header = sprintf('Bearer %s', $this->token); 34 | 35 | return $request->withHeader('Authorization', $header); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/ConnectException.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | class Chunk extends \php_user_filter 11 | { 12 | /** 13 | * {@inheritdoc} 14 | */ 15 | public function filter($in, $out, &$consumed, $closing) 16 | { 17 | while ($bucket = stream_bucket_make_writeable($in)) { 18 | $lenbucket = stream_bucket_new($this->stream, dechex($bucket->datalen)."\r\n"); 19 | stream_bucket_append($out, $lenbucket); 20 | 21 | $consumed += $bucket->datalen; 22 | stream_bucket_append($out, $bucket); 23 | 24 | $lenbucket = stream_bucket_new($this->stream, "\r\n"); 25 | stream_bucket_append($out, $lenbucket); 26 | } 27 | 28 | return PSFS_PASS_ON; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/promises", 3 | "description": "Guzzle promises library", 4 | "keywords": ["promise"], 5 | "license": "MIT", 6 | "authors": [ 7 | { 8 | "name": "Michael Dowling", 9 | "email": "mtdowling@gmail.com", 10 | "homepage": "https://github.com/mtdowling" 11 | } 12 | ], 13 | "require": { 14 | "php": ">=5.5.0" 15 | }, 16 | "require-dev": { 17 | "phpunit/phpunit": "^4.0" 18 | }, 19 | "autoload": { 20 | "psr-4": { 21 | "GuzzleHttp\\Promise\\": "src/" 22 | }, 23 | "files": ["src/functions_include.php"] 24 | }, 25 | "scripts": { 26 | "test": "vendor/bin/phpunit", 27 | "test-ci": "vendor/bin/phpunit --coverage-text" 28 | }, 29 | "extra": { 30 | "branch-alias": { 31 | "dev-master": "1.4-dev" 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/StreamFactory/DiactorosStreamFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class DiactorosStreamFactory implements StreamFactory 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public function createStream($body = null) 20 | { 21 | if ($body instanceof StreamInterface) { 22 | return $body; 23 | } 24 | 25 | if (is_resource($body)) { 26 | return new Stream($body); 27 | } 28 | 29 | $stream = new Stream('php://memory', 'rw'); 30 | if (null !== $body && '' !== $body) { 31 | $stream->write((string) $body); 32 | } 33 | 34 | return $stream; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class SlimStreamFactory implements StreamFactory 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public function createStream($body = null) 20 | { 21 | if ($body instanceof StreamInterface) { 22 | return $body; 23 | } 24 | 25 | if (is_resource($body)) { 26 | return new Stream($body); 27 | } 28 | 29 | $resource = fopen('php://memory', 'r+'); 30 | $stream = new Stream($resource); 31 | if (null !== $body && '' !== $body) { 32 | $stream->write((string) $body); 33 | } 34 | 35 | return $stream; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/src/RequestFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | interface RequestFactory 15 | { 16 | /** 17 | * Creates a new PSR-7 request. 18 | * 19 | * @param string $method 20 | * @param string|UriInterface $uri 21 | * @param array $headers 22 | * @param resource|string|StreamInterface|null $body 23 | * @param string $protocolVersion 24 | * 25 | * @return RequestInterface 26 | */ 27 | public function createRequest( 28 | $method, 29 | $uri, 30 | array $headers = [], 31 | $body = null, 32 | $protocolVersion = '1.1' 33 | ); 34 | } 35 | -------------------------------------------------------------------------------- /vendor/php-http/promise/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/promise", 3 | "description": "Promise used for asynchronous HTTP requests", 4 | "license": "MIT", 5 | "keywords": ["promise"], 6 | "homepage": "http://httplug.io", 7 | "authors": [ 8 | { 9 | "name": "Joel Wurtz", 10 | "email": "joel.wurtz@gmail.com" 11 | }, 12 | { 13 | "name": "Márk Sági-Kazár", 14 | "email": "mark.sagikazar@gmail.com" 15 | } 16 | ], 17 | "require-dev": { 18 | "phpspec/phpspec": "^2.4", 19 | "henrikbjorn/phpspec-code-coverage" : "^1.0" 20 | }, 21 | "autoload": { 22 | "psr-4": { 23 | "Http\\Promise\\": "src/" 24 | } 25 | }, 26 | "scripts": { 27 | "test": "vendor/bin/phpspec run", 28 | "test-ci": "vendor/bin/phpspec run -c phpspec.yml.ci" 29 | }, 30 | "extra": { 31 | "branch-alias": { 32 | "dev-master": "1.1-dev" 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/examples/base64_decode.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class HttpClientDiscovery extends ClassDiscovery 14 | { 15 | /** 16 | * Finds an HTTP Client. 17 | * 18 | * @return HttpClient 19 | * 20 | * @throws Exception\NotFoundException 21 | */ 22 | public static function find() 23 | { 24 | try { 25 | $client = static::findOneByType(HttpClient::class); 26 | } catch (DiscoveryFailedException $e) { 27 | throw new NotFoundException( 28 | 'No HTTPlug clients found. Make sure to install a package providing "php-http/client-implementation". Example: "php-http/guzzle6-adapter".', 29 | 0, 30 | $e 31 | ); 32 | } 33 | 34 | return static::instantiateClass($client); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/LazyOpenStream.php: -------------------------------------------------------------------------------- 1 | filename = $filename; 27 | $this->mode = $mode; 28 | } 29 | 30 | /** 31 | * Creates the underlying stream lazily when required. 32 | * 33 | * @return StreamInterface 34 | */ 35 | protected function createStream() 36 | { 37 | return stream_for(try_fopen($this->filename, $this->mode)); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/DeflateStream.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class DeflateStream extends FilteredStream 14 | { 15 | /** 16 | * @param StreamInterface $stream 17 | * @param int $level 18 | */ 19 | public function __construct(StreamInterface $stream, $level = -1) 20 | { 21 | parent::__construct($stream, ['window' => -15, 'level' => $level]); 22 | 23 | // @deprecated will be removed in 2.0 24 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => -15]); 25 | } 26 | 27 | /** 28 | * {@inheritdoc} 29 | */ 30 | protected function readFilter() 31 | { 32 | return 'zlib.deflate'; 33 | } 34 | 35 | /** 36 | * {@inheritdoc} 37 | */ 38 | protected function writeFilter() 39 | { 40 | return 'zlib.inflate'; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/src/ResponseFactory.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | interface ResponseFactory 16 | { 17 | /** 18 | * Creates a new PSR-7 response. 19 | * 20 | * @param int $statusCode 21 | * @param string|null $reasonPhrase 22 | * @param array $headers 23 | * @param resource|string|StreamInterface|null $body 24 | * @param string $protocolVersion 25 | * 26 | * @return ResponseInterface 27 | */ 28 | public function createResponse( 29 | $statusCode = 200, 30 | $reasonPhrase = null, 31 | array $headers = [], 32 | $body = null, 33 | $protocolVersion = '1.1' 34 | ); 35 | } 36 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Psr18ClientDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class Psr18ClientDiscovery extends ClassDiscovery 14 | { 15 | /** 16 | * Finds a PSR-18 HTTP Client. 17 | * 18 | * @return ClientInterface 19 | * 20 | * @throws Exception\NotFoundException 21 | */ 22 | public static function find() 23 | { 24 | try { 25 | $client = static::findOneByType(ClientInterface::class); 26 | } catch (DiscoveryFailedException $e) { 27 | throw new \Http\Discovery\Exception\NotFoundException( 28 | 'No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle6-adapter".', 29 | 0, 30 | $e 31 | ); 32 | } 33 | 34 | return static::instantiateClass($client); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/vinkla/instagram/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Vincent Klaiber 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/HttpAsyncClientDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class HttpAsyncClientDiscovery extends ClassDiscovery 14 | { 15 | /** 16 | * Finds an HTTP Async Client. 17 | * 18 | * @return HttpAsyncClient 19 | * 20 | * @throws Exception\NotFoundException 21 | */ 22 | public static function find() 23 | { 24 | try { 25 | $asyncClient = static::findOneByType(HttpAsyncClient::class); 26 | } catch (DiscoveryFailedException $e) { 27 | throw new NotFoundException( 28 | 'No HTTPlug async clients found. Make sure to install a package providing "php-http/async-client-implementation". Example: "php-http/guzzle6-adapter".', 29 | 0, 30 | $e 31 | ); 32 | } 33 | 34 | return static::instantiateClass($asyncClient); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/BasicAuth.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class BasicAuth implements Authentication 14 | { 15 | /** 16 | * @var string 17 | */ 18 | private $username; 19 | 20 | /** 21 | * @var string 22 | */ 23 | private $password; 24 | 25 | /** 26 | * @param string $username 27 | * @param string $password 28 | */ 29 | public function __construct($username, $password) 30 | { 31 | $this->username = $username; 32 | $this->password = $password; 33 | } 34 | 35 | /** 36 | * {@inheritdoc} 37 | */ 38 | public function authenticate(RequestInterface $request) 39 | { 40 | $header = sprintf('Basic %s', base64_encode(sprintf('%s:%s', $this->username, $this->password))); 41 | 42 | return $request->withHeader('Authorization', $header); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/composer/LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Copyright (c) Nils Adermann, Jordi Boggiano 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | 22 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/UriFactoryDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @deprecated This will be removed in 2.0. Consider using Psr17FactoryDiscovery. 14 | */ 15 | final class UriFactoryDiscovery extends ClassDiscovery 16 | { 17 | /** 18 | * Finds a URI Factory. 19 | * 20 | * @return UriFactory 21 | * 22 | * @throws Exception\NotFoundException 23 | */ 24 | public static function find() 25 | { 26 | try { 27 | $uriFactory = static::findOneByType(UriFactory::class); 28 | } catch (DiscoveryFailedException $e) { 29 | throw new NotFoundException( 30 | 'No uri factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 31 | 0, 32 | $e 33 | ); 34 | } 35 | 36 | return static::instantiateClass($uriFactory); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 PHP HTTP Team 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 PHP HTTP Team 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/php-http/message/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 PHP HTTP Team 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/php-http/promise/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 PHP HTTP Team 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is furnished 8 | to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/psr/http-client/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/psr/http-message/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 PHP Framework Interoperability Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Christian Lück 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is furnished 10 | to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Ralph Khattar 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Formatter/SimpleFormatter.php: -------------------------------------------------------------------------------- 1 | 13 | * @author Márk Sági-Kazár 14 | */ 15 | class SimpleFormatter implements Formatter 16 | { 17 | /** 18 | * {@inheritdoc} 19 | */ 20 | public function formatRequest(RequestInterface $request) 21 | { 22 | return sprintf( 23 | '%s %s %s', 24 | $request->getMethod(), 25 | $request->getUri()->__toString(), 26 | $request->getProtocolVersion() 27 | ); 28 | } 29 | 30 | /** 31 | * {@inheritdoc} 32 | */ 33 | public function formatResponse(ResponseInterface $response) 34 | { 35 | return sprintf( 36 | '%s %s %s', 37 | $response->getStatusCode(), 38 | $response->getReasonPhrase(), 39 | $response->getProtocolVersion() 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011-2018 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015-2016 Michael Dowling, https://github.com/mtdowling 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/StreamFactoryDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @deprecated This will be removed in 2.0. Consider using Psr17FactoryDiscovery. 14 | */ 15 | final class StreamFactoryDiscovery extends ClassDiscovery 16 | { 17 | /** 18 | * Finds a Stream Factory. 19 | * 20 | * @return StreamFactory 21 | * 22 | * @throws Exception\NotFoundException 23 | */ 24 | public static function find() 25 | { 26 | try { 27 | $streamFactory = static::findOneByType(StreamFactory::class); 28 | } catch (DiscoveryFailedException $e) { 29 | throw new NotFoundException( 30 | 'No stream factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 31 | 0, 32 | $e 33 | ); 34 | } 35 | 36 | return static::instantiateClass($streamFactory); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/RequestMatcher/RegexRequestMatcher.php: -------------------------------------------------------------------------------- 1 | 14 | * 15 | * @deprecated since version 1.2 and will be removed in 2.0. Use {@link RequestMatcher} instead. 16 | */ 17 | final class RegexRequestMatcher implements RequestMatcher 18 | { 19 | /** 20 | * Matching regex. 21 | * 22 | * @var string 23 | */ 24 | private $regex; 25 | 26 | /** 27 | * @param string $regex 28 | */ 29 | public function __construct($regex) 30 | { 31 | $this->regex = $regex; 32 | } 33 | 34 | /** 35 | * {@inheritdoc} 36 | */ 37 | public function matches(RequestInterface $request) 38 | { 39 | return (bool) preg_match($this->regex, (string) $request->getUri()); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/MessageFactoryDiscovery.php: -------------------------------------------------------------------------------- 1 | 12 | * 13 | * @deprecated This will be removed in 2.0. Consider using Psr17FactoryDiscovery. 14 | */ 15 | final class MessageFactoryDiscovery extends ClassDiscovery 16 | { 17 | /** 18 | * Finds a Message Factory. 19 | * 20 | * @return MessageFactory 21 | * 22 | * @throws Exception\NotFoundException 23 | */ 24 | public static function find() 25 | { 26 | try { 27 | $messageFactory = static::findOneByType(MessageFactory::class); 28 | } catch (DiscoveryFailedException $e) { 29 | throw new NotFoundException( 30 | 'No message factories found. To use Guzzle, Diactoros or Slim Framework factories install php-http/message and the chosen message implementation.', 31 | 0, 32 | $e 33 | ); 34 | } 35 | 36 | return static::instantiateClass($messageFactory); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/httplug", 3 | "description": "HTTPlug, the HTTP client abstraction for PHP", 4 | "license": "MIT", 5 | "keywords": ["http", "client"], 6 | "homepage": "http://httplug.io", 7 | "authors": [ 8 | { 9 | "name": "Eric GELOEN", 10 | "email": "geloen.eric@gmail.com" 11 | }, 12 | { 13 | "name": "Márk Sági-Kazár", 14 | "email": "mark.sagikazar@gmail.com" 15 | } 16 | ], 17 | "require": { 18 | "php": "^7.0", 19 | "psr/http-message": "^1.0", 20 | "psr/http-client": "^1.0", 21 | "php-http/promise": "^1.0" 22 | }, 23 | "require-dev": { 24 | "phpspec/phpspec": "^2.4", 25 | "henrikbjorn/phpspec-code-coverage" : "^1.0" 26 | }, 27 | "autoload": { 28 | "psr-4": { 29 | "Http\\Client\\": "src/" 30 | } 31 | }, 32 | "scripts": { 33 | "test": "vendor/bin/phpspec run", 34 | "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" 35 | }, 36 | "extra": { 37 | "branch-alias": { 38 | "dev-master": "2.0.x-dev" 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Resources/storefront/instagram-plugin/instagram-plugin.plugin.js: -------------------------------------------------------------------------------- 1 | import Plugin from 'src/script/plugin-system/plugin.class'; 2 | import HttpClient from 'src/script/service/http-client.service'; 3 | import LoadingIndicator from 'src/script/utility/loading-indicator/loading-indicator.util'; 4 | 5 | export default class InstagramPlugin extends Plugin { 6 | static options = { 7 | /** 8 | * how many media should be returned 9 | * 10 | * @type number 11 | */ 12 | count: 5, 13 | }; 14 | 15 | init() { 16 | this.el.innerHTML = LoadingIndicator.getTemplate(); 17 | 18 | this._client = new HttpClient(window.accessKey); 19 | 20 | this.fetch(); 21 | 22 | } 23 | 24 | /** 25 | * Fetch the latest media from the Instagram account with the given count 26 | */ 27 | fetch() { 28 | this._client.get(`/sales-channel-api/v1/sns/instagramfeed?media=${this.options.count}`, (responseText) => { 29 | this.el.outerHTML = responseText; 30 | }); 31 | } 32 | 33 | /* 34 | * Removes the generated image from the DOM 35 | */ 36 | destroy() { 37 | this.el.lastChild.remove(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception/RequestException.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | class RequestException extends TransferException implements PsrRequestException 17 | { 18 | /** 19 | * @var RequestInterface 20 | */ 21 | private $request; 22 | 23 | /** 24 | * @param string $message 25 | * @param RequestInterface $request 26 | * @param \Exception|null $previous 27 | */ 28 | public function __construct($message, RequestInterface $request, \Exception $previous = null) 29 | { 30 | $this->request = $request; 31 | 32 | parent::__construct($message, 0, $previous); 33 | } 34 | 35 | public function getRequest(): RequestInterface 36 | { 37 | return $this->request; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/README.md: -------------------------------------------------------------------------------- 1 | # PSR-7 Message Factory 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/message-factory.svg?style=flat-square)](https://github.com/php-http/message-factory/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/message-factory.svg?style=flat-square)](https://packagist.org/packages/php-http/message-factory) 6 | 7 | **Factory interfaces for PSR-7 HTTP Message.** 8 | 9 | 10 | ## Install 11 | 12 | Via Composer 13 | 14 | ``` bash 15 | $ composer require php-http/message-factory 16 | ``` 17 | 18 | 19 | ## Documentation 20 | 21 | Please see the [official documentation](http://php-http.readthedocs.org/en/latest/message-factory/). 22 | 23 | 24 | ## Contributing 25 | 26 | Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details. 27 | 28 | 29 | ## Security 30 | 31 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 32 | 33 | 34 | ## License 35 | 36 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 37 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014 Eric GELOEN 2 | Copyright (c) 2015 PHP HTTP Team 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | 4 | ## 1.0.2 - 2015-12-19 5 | 6 | ### Added 7 | 8 | - Request and Response factory binding types to Puli 9 | 10 | 11 | ## 1.0.1 - 2015-12-17 12 | 13 | ### Added 14 | 15 | - Puli configuration and binding types 16 | 17 | 18 | ## 1.0.0 - 2015-12-15 19 | 20 | ### Added 21 | 22 | - Response Factory in order to be reused in Message and Server Message factories 23 | - Request Factory 24 | 25 | ### Changed 26 | 27 | - Message Factory extends Request and Response factories 28 | 29 | 30 | ## 1.0.0-RC1 - 2015-12-14 31 | 32 | ### Added 33 | 34 | - CS check 35 | 36 | ### Changed 37 | 38 | - RuntimeException is thrown when the StreamFactory cannot write to the underlying stream 39 | 40 | 41 | ## 0.3.0 - 2015-11-16 42 | 43 | ### Removed 44 | 45 | - Client Context Factory 46 | - Factory Awares and Templates 47 | 48 | 49 | ## 0.2.0 - 2015-11-16 50 | 51 | ### Changed 52 | 53 | - Reordered the parameters when creating a message to have the protocol last, 54 | as its the least likely to need to be changed. 55 | 56 | 57 | ## 0.1.0 - 2015-06-01 58 | 59 | ### Added 60 | 61 | - Initial release 62 | 63 | ### Changed 64 | 65 | - Helpers are renamed to templates 66 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/README.md: -------------------------------------------------------------------------------- 1 | getallheaders 2 | ============= 3 | 4 | PHP `getallheaders()` polyfill. Compatible with PHP >= 5.3. 5 | 6 | [![Build Status](https://travis-ci.org/ralouphie/getallheaders.svg?branch=master)](https://travis-ci.org/ralouphie/getallheaders) 7 | [![Coverage Status](https://coveralls.io/repos/ralouphie/getallheaders/badge.png?branch=master)](https://coveralls.io/r/ralouphie/getallheaders?branch=master) 8 | [![Latest Stable Version](https://poser.pugx.org/ralouphie/getallheaders/v/stable.png)](https://packagist.org/packages/ralouphie/getallheaders) 9 | [![Latest Unstable Version](https://poser.pugx.org/ralouphie/getallheaders/v/unstable.png)](https://packagist.org/packages/ralouphie/getallheaders) 10 | [![License](https://poser.pugx.org/ralouphie/getallheaders/license.png)](https://packagist.org/packages/ralouphie/getallheaders) 11 | 12 | 13 | This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php). 14 | 15 | ## Install 16 | 17 | For PHP version **`>= 5.6`**: 18 | 19 | ``` 20 | composer require ralouphie/getallheaders 21 | ``` 22 | 23 | For PHP version **`< 5.6`**: 24 | 25 | ``` 26 | composer require ralouphie/getallheaders "^2" 27 | ``` 28 | -------------------------------------------------------------------------------- /vendor/composer/autoload_psr4.php: -------------------------------------------------------------------------------- 1 | array($vendorDir . '/vinkla/instagram/src'), 10 | 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), 11 | 'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'), 12 | 'InstagramFeed\\' => array($baseDir . '/src'), 13 | 'Http\\Promise\\' => array($vendorDir . '/php-http/promise/src'), 14 | 'Http\\Message\\' => array($vendorDir . '/php-http/message/src', $vendorDir . '/php-http/message-factory/src'), 15 | 'Http\\Discovery\\' => array($vendorDir . '/php-http/discovery/src'), 16 | 'Http\\Client\\' => array($vendorDir . '/php-http/httplug/src'), 17 | 'Http\\Adapter\\Guzzle6\\' => array($vendorDir . '/php-http/guzzle6-adapter/src'), 18 | 'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'), 19 | 'GuzzleHttp\\Promise\\' => array($vendorDir . '/guzzlehttp/promises/src'), 20 | 'GuzzleHttp\\' => array($vendorDir . '/guzzlehttp/guzzle/src'), 21 | 'Clue\\StreamFilter\\' => array($vendorDir . '/clue/stream-filter/src'), 22 | ); 23 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014-2015 Eric GELOEN 2 | Copyright (c) 2015-2016 PHP HTTP Team 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is furnished 9 | to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in all 12 | copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /vendor/psr/http-message/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release. 4 | 5 | ## 1.0.1 - 2016-08-06 6 | 7 | ### Added 8 | 9 | - Nothing. 10 | 11 | ### Deprecated 12 | 13 | - Nothing. 14 | 15 | ### Removed 16 | 17 | - Nothing. 18 | 19 | ### Fixed 20 | 21 | - Updated all `@return self` annotation references in interfaces to use 22 | `@return static`, which more closelly follows the semantics of the 23 | specification. 24 | - Updated the `MessageInterface::getHeaders()` return annotation to use the 25 | value `string[][]`, indicating the format is a nested array of strings. 26 | - Updated the `@link` annotation for `RequestInterface::withRequestTarget()` 27 | to point to the correct section of RFC 7230. 28 | - Updated the `ServerRequestInterface::withUploadedFiles()` parameter annotation 29 | to add the parameter name (`$uploadedFiles`). 30 | - Updated a `@throws` annotation for the `UploadedFileInterface::moveTo()` 31 | method to correctly reference the method parameter (it was referencing an 32 | incorrect parameter name previously). 33 | 34 | ## 1.0.0 - 2016-05-18 35 | 36 | Initial stable release; reflects accepted PSR-7 specification. 37 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/CompressStream.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class CompressStream extends FilteredStream 14 | { 15 | /** 16 | * @param StreamInterface $stream 17 | * @param int $level 18 | */ 19 | public function __construct(StreamInterface $stream, $level = -1) 20 | { 21 | if (!extension_loaded('zlib')) { 22 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); 23 | } 24 | 25 | parent::__construct($stream, ['window' => 15, 'level' => $level]); 26 | 27 | // @deprecated will be removed in 2.0 28 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 15]); 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | protected function readFilter() 35 | { 36 | return 'zlib.deflate'; 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | protected function writeFilter() 43 | { 44 | return 'zlib.inflate'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/InflateStream.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class InflateStream extends FilteredStream 14 | { 15 | /** 16 | * @param StreamInterface $stream 17 | * @param int $level 18 | */ 19 | public function __construct(StreamInterface $stream, $level = -1) 20 | { 21 | if (!extension_loaded('zlib')) { 22 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); 23 | } 24 | 25 | parent::__construct($stream, ['window' => -15]); 26 | 27 | // @deprecated will be removed in 2.0 28 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => -15, 'level' => $level]); 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | protected function readFilter() 35 | { 36 | return 'zlib.inflate'; 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | protected function writeFilter() 43 | { 44 | return 'zlib.deflate'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/DecompressStream.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class DecompressStream extends FilteredStream 14 | { 15 | /** 16 | * @param StreamInterface $stream 17 | * @param int $level 18 | */ 19 | public function __construct(StreamInterface $stream, $level = -1) 20 | { 21 | if (!extension_loaded('zlib')) { 22 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); 23 | } 24 | 25 | parent::__construct($stream, ['window' => 15]); 26 | 27 | // @deprecated will be removed in 2.0 28 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 15, 'level' => $level]); 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | protected function readFilter() 35 | { 36 | return 'zlib.inflate'; 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | protected function writeFilter() 43 | { 44 | return 'zlib.deflate'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/GzipDecodeStream.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class GzipDecodeStream extends FilteredStream 14 | { 15 | /** 16 | * @param StreamInterface $stream 17 | * @param int $level 18 | */ 19 | public function __construct(StreamInterface $stream, $level = -1) 20 | { 21 | if (!extension_loaded('zlib')) { 22 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); 23 | } 24 | 25 | parent::__construct($stream, ['window' => 31]); 26 | 27 | // @deprecated will be removed in 2.0 28 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 31, 'level' => $level]); 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | protected function readFilter() 35 | { 36 | return 'zlib.inflate'; 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | protected function writeFilter() 43 | { 44 | return 'zlib.deflate'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Encoding/GzipEncodeStream.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | class GzipEncodeStream extends FilteredStream 14 | { 15 | /** 16 | * @param StreamInterface $stream 17 | * @param int $level 18 | */ 19 | public function __construct(StreamInterface $stream, $level = -1) 20 | { 21 | if (!extension_loaded('zlib')) { 22 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); 23 | } 24 | 25 | parent::__construct($stream, ['window' => 31, 'level' => $level]); 26 | 27 | // @deprecated will be removed in 2.0 28 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 31]); 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | protected function readFilter() 35 | { 36 | return 'zlib.deflate'; 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | protected function writeFilter() 43 | { 44 | return 'zlib.inflate'; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /vendor/php-http/promise/src/FulfilledPromise.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class FulfilledPromise implements Promise 11 | { 12 | /** 13 | * @var mixed 14 | */ 15 | private $result; 16 | 17 | /** 18 | * @param $result 19 | */ 20 | public function __construct($result) 21 | { 22 | $this->result = $result; 23 | } 24 | 25 | /** 26 | * {@inheritdoc} 27 | */ 28 | public function then(callable $onFulfilled = null, callable $onRejected = null) 29 | { 30 | if (null === $onFulfilled) { 31 | return $this; 32 | } 33 | 34 | try { 35 | return new self($onFulfilled($this->result)); 36 | } catch (\Exception $e) { 37 | return new RejectedPromise($e); 38 | } 39 | } 40 | 41 | /** 42 | * {@inheritdoc} 43 | */ 44 | public function getState() 45 | { 46 | return Promise::FULFILLED; 47 | } 48 | 49 | /** 50 | * {@inheritdoc} 51 | */ 52 | public function wait($unwrap = true) 53 | { 54 | if ($unwrap) { 55 | return $this->result; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/DroppingStream.php: -------------------------------------------------------------------------------- 1 | stream = $stream; 23 | $this->maxLength = $maxLength; 24 | } 25 | 26 | public function write($string) 27 | { 28 | $diff = $this->maxLength - $this->stream->getSize(); 29 | 30 | // Begin returning 0 when the underlying stream is too large. 31 | if ($diff <= 0) { 32 | return 0; 33 | } 34 | 35 | // Write the stream or a subset of the stream if needed. 36 | if (strlen($string) < $diff) { 37 | return $this->stream->write($string); 38 | } 39 | 40 | return $this->stream->write(substr($string, 0, $diff)); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Promise/HttpRejectedPromise.php: -------------------------------------------------------------------------------- 1 | exception = $exception; 21 | } 22 | 23 | /** 24 | * {@inheritdoc} 25 | */ 26 | public function then(callable $onFulfilled = null, callable $onRejected = null) 27 | { 28 | if (null === $onRejected) { 29 | return $this; 30 | } 31 | 32 | try { 33 | return new HttpFulfilledPromise($onRejected($this->exception)); 34 | } catch (Exception $e) { 35 | return new self($e); 36 | } 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | public function getState() 43 | { 44 | return Promise::REJECTED; 45 | } 46 | 47 | /** 48 | * {@inheritdoc} 49 | */ 50 | public function wait($unwrap = true) 51 | { 52 | if ($unwrap) { 53 | throw $this->exception; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /vendor/php-http/promise/src/RejectedPromise.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | final class RejectedPromise implements Promise 11 | { 12 | /** 13 | * @var \Exception 14 | */ 15 | private $exception; 16 | 17 | /** 18 | * @param \Exception $exception 19 | */ 20 | public function __construct(\Exception $exception) 21 | { 22 | $this->exception = $exception; 23 | } 24 | 25 | /** 26 | * {@inheritdoc} 27 | */ 28 | public function then(callable $onFulfilled = null, callable $onRejected = null) 29 | { 30 | if (null === $onRejected) { 31 | return $this; 32 | } 33 | 34 | try { 35 | return new FulfilledPromise($onRejected($this->exception)); 36 | } catch (\Exception $e) { 37 | return new self($e); 38 | } 39 | } 40 | 41 | /** 42 | * {@inheritdoc} 43 | */ 44 | public function getState() 45 | { 46 | return Promise::REJECTED; 47 | } 48 | 49 | /** 50 | * {@inheritdoc} 51 | */ 52 | public function wait($unwrap = true) 53 | { 54 | if ($unwrap) { 55 | throw $this->exception; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/MessageFactory/GuzzleMessageFactory.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class GuzzleMessageFactory implements MessageFactory 15 | { 16 | /** 17 | * {@inheritdoc} 18 | */ 19 | public function createRequest( 20 | $method, 21 | $uri, 22 | array $headers = [], 23 | $body = null, 24 | $protocolVersion = '1.1' 25 | ) { 26 | return new Request( 27 | $method, 28 | $uri, 29 | $headers, 30 | $body, 31 | $protocolVersion 32 | ); 33 | } 34 | 35 | /** 36 | * {@inheritdoc} 37 | */ 38 | public function createResponse( 39 | $statusCode = 200, 40 | $reasonPhrase = null, 41 | array $headers = [], 42 | $body = null, 43 | $protocolVersion = '1.1' 44 | ) { 45 | return new Response( 46 | $statusCode, 47 | $headers, 48 | $body, 49 | $protocolVersion, 50 | $reasonPhrase 51 | ); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/RequestConditional.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | final class RequestConditional implements Authentication 15 | { 16 | /** 17 | * @var RequestMatcher 18 | */ 19 | private $requestMatcher; 20 | 21 | /** 22 | * @var Authentication 23 | */ 24 | private $authentication; 25 | 26 | /** 27 | * @param RequestMatcher $requestMatcher 28 | * @param Authentication $authentication 29 | */ 30 | public function __construct(RequestMatcher $requestMatcher, Authentication $authentication) 31 | { 32 | $this->requestMatcher = $requestMatcher; 33 | $this->authentication = $authentication; 34 | } 35 | 36 | /** 37 | * {@inheritdoc} 38 | */ 39 | public function authenticate(RequestInterface $request) 40 | { 41 | if ($this->requestMatcher->matches($request)) { 42 | return $this->authentication->authenticate($request); 43 | } 44 | 45 | return $request; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/guzzle", 3 | "type": "library", 4 | "description": "Guzzle is a PHP HTTP client library", 5 | "keywords": ["framework", "http", "rest", "web service", "curl", "client", "HTTP client"], 6 | "homepage": "http://guzzlephp.org/", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "Michael Dowling", 11 | "email": "mtdowling@gmail.com", 12 | "homepage": "https://github.com/mtdowling" 13 | } 14 | ], 15 | "require": { 16 | "php": ">=5.5", 17 | "guzzlehttp/psr7": "^1.4", 18 | "guzzlehttp/promises": "^1.0" 19 | }, 20 | "require-dev": { 21 | "ext-curl": "*", 22 | "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.4 || ^7.0", 23 | "psr/log": "^1.0" 24 | }, 25 | "autoload": { 26 | "files": ["src/functions_include.php"], 27 | "psr-4": { 28 | "GuzzleHttp\\": "src/" 29 | } 30 | }, 31 | "autoload-dev": { 32 | "psr-4": { 33 | "GuzzleHttp\\Tests\\": "tests/" 34 | } 35 | }, 36 | "suggest": { 37 | "psr/log": "Required for using the Log middleware" 38 | }, 39 | "extra": { 40 | "branch-alias": { 41 | "dev-master": "6.3-dev" 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Decorator/ResponseDecorator.php: -------------------------------------------------------------------------------- 1 | 9 | */ 10 | trait ResponseDecorator 11 | { 12 | use MessageDecorator { 13 | getMessage as getResponse; 14 | } 15 | 16 | /** 17 | * Exchanges the underlying response with another. 18 | * 19 | * @param ResponseInterface $response 20 | * 21 | * @return self 22 | */ 23 | public function withResponse(ResponseInterface $response) 24 | { 25 | $new = clone $this; 26 | $new->message = $response; 27 | 28 | return $new; 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | public function getStatusCode() 35 | { 36 | return $this->message->getStatusCode(); 37 | } 38 | 39 | /** 40 | * {@inheritdoc} 41 | */ 42 | public function withStatus($code, $reasonPhrase = '') 43 | { 44 | $new = clone $this; 45 | $new->message = $this->message->withStatus($code, $reasonPhrase); 46 | 47 | return $new; 48 | } 49 | 50 | /** 51 | * {@inheritdoc} 52 | */ 53 | public function getReasonPhrase() 54 | { 55 | return $this->message->getReasonPhrase(); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Promise/HttpFulfilledPromise.php: -------------------------------------------------------------------------------- 1 | response = $response; 22 | } 23 | 24 | /** 25 | * {@inheritdoc} 26 | */ 27 | public function then(callable $onFulfilled = null, callable $onRejected = null) 28 | { 29 | if (null === $onFulfilled) { 30 | return $this; 31 | } 32 | 33 | try { 34 | return new self($onFulfilled($this->response)); 35 | } catch (Exception $e) { 36 | return new HttpRejectedPromise($e); 37 | } 38 | } 39 | 40 | /** 41 | * {@inheritdoc} 42 | */ 43 | public function getState() 44 | { 45 | return Promise::FULFILLED; 46 | } 47 | 48 | /** 49 | * {@inheritdoc} 50 | */ 51 | public function wait($unwrap = true) 52 | { 53 | if ($unwrap) { 54 | return $this->response; 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /vendor/vinkla/instagram/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vinkla/instagram", 3 | "description": "An easy-to-use and simple Instagram package", 4 | "keywords": [ 5 | "instagram", 6 | "media", 7 | "feed", 8 | "recent" 9 | ], 10 | "license": "MIT", 11 | "authors": [ 12 | { 13 | "name": "Vincent Klaiber", 14 | "email": "hello@doubledip.se", 15 | "homepage": "https://doubledip.se" 16 | } 17 | ], 18 | "require": { 19 | "php": "^7.2", 20 | "php-http/client-implementation": "^1.0", 21 | "php-http/discovery": "^1.4", 22 | "php-http/httplug": "^1.1 || ^2.0", 23 | "php-http/message-factory": "^1.0" 24 | }, 25 | "require-dev": { 26 | "php-http/guzzle6-adapter": "^1.1", 27 | "php-http/message": "^1.7", 28 | "php-http/mock-client": "^1.1", 29 | "phpunit/phpunit": "^8.0" 30 | }, 31 | "extra": { 32 | "branch-alias": { 33 | "dev-develop": "9.3-dev" 34 | } 35 | }, 36 | "autoload": { 37 | "psr-4": { 38 | "Vinkla\\Instagram\\": "src/" 39 | } 40 | }, 41 | "autoload-dev": { 42 | "psr-4": { 43 | "Vinkla\\Tests\\Instagram\\": "tests/" 44 | } 45 | }, 46 | "minimum-stability": "dev", 47 | "prefer-stable": true 48 | } 49 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/QueryParam.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | final class QueryParam implements Authentication 17 | { 18 | /** 19 | * @var array 20 | */ 21 | private $params = []; 22 | 23 | /** 24 | * @param array $params 25 | */ 26 | public function __construct(array $params) 27 | { 28 | $this->params = $params; 29 | } 30 | 31 | /** 32 | * {@inheritdoc} 33 | */ 34 | public function authenticate(RequestInterface $request) 35 | { 36 | $uri = $request->getUri(); 37 | $query = $uri->getQuery(); 38 | $params = []; 39 | 40 | parse_str($query, $params); 41 | 42 | $params = array_merge($params, $this->params); 43 | 44 | $query = http_build_query($params, null, '&'); 45 | 46 | $uri = $uri->withQuery($query); 47 | 48 | return $request->withUri($uri); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/AutoBasicAuth.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class AutoBasicAuth implements Authentication 14 | { 15 | /** 16 | * Whether user info should be removed from the URI. 17 | * 18 | * @var bool 19 | */ 20 | private $shouldRemoveUserInfo; 21 | 22 | /** 23 | * @param bool|true $shouldRremoveUserInfo 24 | */ 25 | public function __construct($shouldRremoveUserInfo = true) 26 | { 27 | $this->shouldRemoveUserInfo = (bool) $shouldRremoveUserInfo; 28 | } 29 | 30 | /** 31 | * {@inheritdoc} 32 | */ 33 | public function authenticate(RequestInterface $request) 34 | { 35 | $uri = $request->getUri(); 36 | $userInfo = $uri->getUserInfo(); 37 | 38 | if (!empty($userInfo)) { 39 | if ($this->shouldRemoveUserInfo) { 40 | $request = $request->withUri($uri->withUserInfo('')); 41 | } 42 | 43 | $request = $request->withHeader('Authorization', sprintf('Basic %s', base64_encode($userInfo))); 44 | } 45 | 46 | return $request; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/Chain.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class Chain implements Authentication 14 | { 15 | /** 16 | * @var Authentication[] 17 | */ 18 | private $authenticationChain = []; 19 | 20 | /** 21 | * @param Authentication[] $authenticationChain 22 | */ 23 | public function __construct(array $authenticationChain = []) 24 | { 25 | foreach ($authenticationChain as $authentication) { 26 | if (!$authentication instanceof Authentication) { 27 | throw new \InvalidArgumentException( 28 | 'Members of the authentication chain must be of type Http\Message\Authentication' 29 | ); 30 | } 31 | } 32 | 33 | $this->authenticationChain = $authenticationChain; 34 | } 35 | 36 | /** 37 | * {@inheritdoc} 38 | */ 39 | public function authenticate(RequestInterface $request) 40 | { 41 | foreach ($this->authenticationChain as $authentication) { 42 | $request = $authentication->authenticate($request); 43 | } 44 | 45 | return $request; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | 4 | ## 1.3.1 - 2016-12-20 5 | 6 | ### Fixed 7 | 8 | - `wait()` foreign promise compatibility 9 | 10 | 11 | ## 1.3.0 - 2016-11-18 12 | 13 | ### Added 14 | 15 | - Adds support for custom task queues. 16 | 17 | ### Fixed 18 | 19 | - Fixed coroutine promise memory leak. 20 | 21 | 22 | ## 1.2.0 - 2016-05-18 23 | 24 | ### Changed 25 | 26 | - Update to now catch `\Throwable` on PHP 7+ 27 | 28 | 29 | ## 1.1.0 - 2016-03-07 30 | 31 | ### Changed 32 | 33 | - Update EachPromise to prevent recurring on a iterator when advancing, as this 34 | could trigger fatal generator errors. 35 | - Update Promise to allow recursive waiting without unwrapping exceptions. 36 | 37 | 38 | ## 1.0.3 - 2015-10-15 39 | 40 | ### Changed 41 | 42 | - Update EachPromise to immediately resolve when the underlying promise iterator 43 | is empty. Previously, such a promise would throw an exception when its `wait` 44 | function was called. 45 | 46 | 47 | ## 1.0.2 - 2015-05-15 48 | 49 | ### Changed 50 | 51 | - Conditionally require functions.php. 52 | 53 | 54 | ## 1.0.1 - 2015-06-24 55 | 56 | ### Changed 57 | 58 | - Updating EachPromise to call next on the underlying promise iterator as late 59 | as possible to ensure that generators that generate new requests based on 60 | callbacks are not iterated until after callbacks are invoked. 61 | 62 | 63 | ## 1.0.0 - 2015-05-12 64 | 65 | - Initial release 66 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/RejectionException.php: -------------------------------------------------------------------------------- 1 | reason = $reason; 21 | 22 | $message = 'The promise was rejected'; 23 | 24 | if ($description) { 25 | $message .= ' with reason: ' . $description; 26 | } elseif (is_string($reason) 27 | || (is_object($reason) && method_exists($reason, '__toString')) 28 | ) { 29 | $message .= ' with reason: ' . $this->reason; 30 | } elseif ($reason instanceof \JsonSerializable) { 31 | $message .= ' with reason: ' 32 | . json_encode($this->reason, JSON_PRETTY_PRINT); 33 | } 34 | 35 | parent::__construct($message); 36 | } 37 | 38 | /** 39 | * Returns the rejection reason. 40 | * 41 | * @return mixed 42 | */ 43 | public function getReason() 44 | { 45 | return $this->reason; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/DiscoveryFailedException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class DiscoveryFailedException extends \Exception implements Exception 13 | { 14 | /** 15 | * @var \Exception[] 16 | */ 17 | private $exceptions; 18 | 19 | /** 20 | * @param string $message 21 | * @param \Exception[] $exceptions 22 | */ 23 | public function __construct($message, array $exceptions = []) 24 | { 25 | $this->exceptions = $exceptions; 26 | 27 | parent::__construct($message); 28 | } 29 | 30 | /** 31 | * @param \Exception[] $exceptions 32 | */ 33 | public static function create($exceptions) 34 | { 35 | $message = 'Could not find resource using any discovery strategy. Find more information at http://docs.php-http.org/en/latest/discovery.html#common-errors'; 36 | foreach ($exceptions as $e) { 37 | $message .= "\n - ".$e->getMessage(); 38 | } 39 | $message .= "\n\n"; 40 | 41 | return new self($message, $exceptions); 42 | } 43 | 44 | /** 45 | * @return \Exception[] 46 | */ 47 | public function getExceptions() 48 | { 49 | return $this->exceptions; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/src/Exception/NoCandidateFoundException.php: -------------------------------------------------------------------------------- 1 | 11 | */ 12 | final class NoCandidateFoundException extends \Exception implements Exception 13 | { 14 | /** 15 | * @param string $strategy 16 | * @param array $candidates 17 | */ 18 | public function __construct($strategy, array $candidates) 19 | { 20 | $classes = array_map( 21 | function ($a) { 22 | return $a['class']; 23 | }, 24 | $candidates 25 | ); 26 | 27 | $message = sprintf( 28 | 'No valid candidate found using strategy "%s". We tested the following candidates: %s.', 29 | $strategy, 30 | implode(', ', array_map([$this, 'stringify'], $classes)) 31 | ); 32 | 33 | parent::__construct($message); 34 | } 35 | 36 | private function stringify($mixed) 37 | { 38 | if (is_string($mixed)) { 39 | return $mixed; 40 | } 41 | 42 | if (is_array($mixed) && 2 === count($mixed)) { 43 | return sprintf('%s::%s', $this->stringify($mixed[0]), $mixed[1]); 44 | } 45 | 46 | return is_object($mixed) ? get_class($mixed) : gettype($mixed); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php: -------------------------------------------------------------------------------- 1 | factory = isset($options['handle_factory']) 29 | ? $options['handle_factory'] 30 | : new CurlFactory(3); 31 | } 32 | 33 | public function __invoke(RequestInterface $request, array $options) 34 | { 35 | if (isset($options['delay'])) { 36 | usleep($options['delay'] * 1000); 37 | } 38 | 39 | $easy = $this->factory->create($request, $options); 40 | curl_exec($easy->handle); 41 | $easy->errno = curl_errno($easy->handle); 42 | 43 | return CurlFactory::finish($this, $easy, $this->factory); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "guzzlehttp/psr7", 3 | "type": "library", 4 | "description": "PSR-7 message implementation that also provides common utility methods", 5 | "keywords": ["request", "response", "message", "stream", "http", "uri", "url", "psr-7"], 6 | "license": "MIT", 7 | "authors": [ 8 | { 9 | "name": "Michael Dowling", 10 | "email": "mtdowling@gmail.com", 11 | "homepage": "https://github.com/mtdowling" 12 | }, 13 | { 14 | "name": "Tobias Schultze", 15 | "homepage": "https://github.com/Tobion" 16 | } 17 | ], 18 | "require": { 19 | "php": ">=5.4.0", 20 | "psr/http-message": "~1.0", 21 | "ralouphie/getallheaders": "^2.0.5 || ^3.0.0" 22 | }, 23 | "require-dev": { 24 | "phpunit/phpunit": "~4.8.36 || ^5.7.27 || ^6.5.8", 25 | "ext-zlib": "*" 26 | }, 27 | "provide": { 28 | "psr/http-message-implementation": "1.0" 29 | }, 30 | "suggest": { 31 | "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses" 32 | }, 33 | "autoload": { 34 | "psr-4": { 35 | "GuzzleHttp\\Psr7\\": "src/" 36 | }, 37 | "files": ["src/functions_include.php"] 38 | }, 39 | "autoload-dev": { 40 | "psr-4": { 41 | "GuzzleHttp\\Tests\\Psr7\\": "tests/" 42 | } 43 | }, 44 | "extra": { 45 | "branch-alias": { 46 | "dev-master": "1.6-dev" 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/guzzle6-adapter", 3 | "description": "Guzzle 6 HTTP Adapter", 4 | "license": "MIT", 5 | "keywords": ["guzzle", "http"], 6 | "homepage": "http://httplug.io", 7 | "authors": [ 8 | { 9 | "name": "David de Boer", 10 | "email": "david@ddeboer.nl" 11 | }, 12 | { 13 | "name": "Márk Sági-Kazár", 14 | "email": "mark.sagikazar@gmail.com" 15 | } 16 | ], 17 | "require": { 18 | "php": "^7.1", 19 | "php-http/httplug": "^2.0", 20 | "psr/http-client": "^1.0", 21 | "guzzlehttp/guzzle": "^6.0" 22 | }, 23 | "require-dev": { 24 | "ext-curl": "*", 25 | "phpunit/phpunit": "^7.4", 26 | "php-http/client-integration-tests": "^2.0" 27 | }, 28 | "provide": { 29 | "php-http/client-implementation": "1.0", 30 | "php-http/async-client-implementation": "1.0", 31 | "psr/http-client-implementation": "1.0" 32 | }, 33 | "autoload": { 34 | "psr-4": { 35 | "Http\\Adapter\\Guzzle6\\": "src/" 36 | } 37 | }, 38 | "autoload-dev": { 39 | "psr-4": { 40 | "Http\\Adapter\\Guzzle6\\Tests\\": "tests/" 41 | } 42 | }, 43 | "scripts": { 44 | "test": "vendor/bin/phpunit", 45 | "test-ci": "vendor/bin/phpunit --coverage-text --coverage-clover=build/coverage.xml" 46 | }, 47 | "extra": { 48 | "branch-alias": { 49 | "dev-master": "2.x-dev" 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/php-http/message-factory/puli.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "binding-types": { 4 | "Http\\Message\\MessageFactory": { 5 | "description": "PSR-7 Message Factory", 6 | "parameters": { 7 | "depends": { 8 | "description": "Optional class dependency which can be checked by consumers" 9 | } 10 | } 11 | }, 12 | "Http\\Message\\RequestFactory": { 13 | "parameters": { 14 | "depends": { 15 | "description": "Optional class dependency which can be checked by consumers" 16 | } 17 | } 18 | }, 19 | "Http\\Message\\ResponseFactory": { 20 | "parameters": { 21 | "depends": { 22 | "description": "Optional class dependency which can be checked by consumers" 23 | } 24 | } 25 | }, 26 | "Http\\Message\\StreamFactory": { 27 | "description": "PSR-7 Stream Factory", 28 | "parameters": { 29 | "depends": { 30 | "description": "Optional class dependency which can be checked by consumers" 31 | } 32 | } 33 | }, 34 | "Http\\Message\\UriFactory": { 35 | "description": "PSR-7 URI Factory", 36 | "parameters": { 37 | "depends": { 38 | "description": "Optional class dependency which can be checked by consumers" 39 | } 40 | } 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/Wsse.php: -------------------------------------------------------------------------------- 1 | 12 | */ 13 | final class Wsse implements Authentication 14 | { 15 | /** 16 | * @var string 17 | */ 18 | private $username; 19 | 20 | /** 21 | * @var string 22 | */ 23 | private $password; 24 | 25 | /** 26 | * @param string $username 27 | * @param string $password 28 | */ 29 | public function __construct($username, $password) 30 | { 31 | $this->username = $username; 32 | $this->password = $password; 33 | } 34 | 35 | /** 36 | * {@inheritdoc} 37 | */ 38 | public function authenticate(RequestInterface $request) 39 | { 40 | // TODO: generate better nonce? 41 | $nonce = substr(md5(uniqid(uniqid().'_', true)), 0, 16); 42 | $created = date('c'); 43 | $digest = base64_encode(sha1(base64_decode($nonce).$created.$this->password, true)); 44 | 45 | $wsse = sprintf( 46 | 'UsernameToken Username="%s", PasswordDigest="%s", Nonce="%s", Created="%s"', 47 | $this->username, 48 | $digest, 49 | $nonce, 50 | $created 51 | ); 52 | 53 | return $request 54 | ->withHeader('Authorization', 'WSSE profile="UsernameToken"') 55 | ->withHeader('X-WSSE', $wsse) 56 | ; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/MessageFactory/DiactorosMessageFactory.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | final class DiactorosMessageFactory implements MessageFactory 16 | { 17 | /** 18 | * @var DiactorosStreamFactory 19 | */ 20 | private $streamFactory; 21 | 22 | public function __construct() 23 | { 24 | $this->streamFactory = new DiactorosStreamFactory(); 25 | } 26 | 27 | /** 28 | * {@inheritdoc} 29 | */ 30 | public function createRequest( 31 | $method, 32 | $uri, 33 | array $headers = [], 34 | $body = null, 35 | $protocolVersion = '1.1' 36 | ) { 37 | return (new Request( 38 | $uri, 39 | $method, 40 | $this->streamFactory->createStream($body), 41 | $headers 42 | ))->withProtocolVersion($protocolVersion); 43 | } 44 | 45 | /** 46 | * {@inheritdoc} 47 | */ 48 | public function createResponse( 49 | $statusCode = 200, 50 | $reasonPhrase = null, 51 | array $headers = [], 52 | $body = null, 53 | $protocolVersion = '1.1' 54 | ) { 55 | return (new Response( 56 | $this->streamFactory->createStream($body), 57 | $statusCode, 58 | $headers 59 | ))->withProtocolVersion($protocolVersion); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/CookieUtil.php: -------------------------------------------------------------------------------- 1 | systemConfigService = $systemConfigService; 29 | } 30 | 31 | /** 32 | * @RouteScope(scopes={"sales-channel-api"}) 33 | * @Route("sales-channel-api/v1/sns/instagramfeed", name="sns.instagram", methods={"GET"}) 34 | * @return JsonResponse 35 | */ 36 | public function getImage(Request $request): Response 37 | { 38 | $token = $this->systemConfigService->get('InstagramFeed.config.secret'); 39 | 40 | $instagram = new Instagram($token); 41 | $feed = (array) $instagram->media(['count' => $request->get('media')]); 42 | 43 | $response = $this->renderStorefront('@Storefront/element/cms-element-instagram.html.twig', ['media' => $feed]); 44 | 45 | $response->setSharedMaxAge(3600); 46 | 47 | return $response; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/php-http/discovery/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/discovery", 3 | "description": "Finds installed HTTPlug implementations and PSR-7 message factories", 4 | "license": "MIT", 5 | "keywords": ["http", "discovery", "client", "adapter", "message", "factory", "psr7"], 6 | "homepage": "http://php-http.org", 7 | "authors": [ 8 | { 9 | "name": "Márk Sági-Kazár", 10 | "email": "mark.sagikazar@gmail.com" 11 | } 12 | ], 13 | "require": { 14 | "php": "^7.1" 15 | }, 16 | "require-dev": { 17 | "php-http/httplug": "^1.0 || ^2.0", 18 | "php-http/message-factory": "^1.0", 19 | "puli/composer-plugin": "1.0.0-beta10", 20 | "phpspec/phpspec": "^5.1", 21 | "akeneo/phpspec-skip-example-extension": "^4.0" 22 | }, 23 | "suggest": { 24 | "puli/composer-plugin": "Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.", 25 | "php-http/message": "Allow to use Guzzle, Diactoros or Slim Framework factories" 26 | }, 27 | "autoload": { 28 | "psr-4": { 29 | "Http\\Discovery\\": "src/" 30 | } 31 | }, 32 | "autoload-dev": { 33 | "psr-4": { 34 | "spec\\Http\\Discovery\\": "spec/" 35 | } 36 | }, 37 | "scripts": { 38 | "test": "vendor/bin/phpspec run", 39 | "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" 40 | }, 41 | "extra": { 42 | "branch-alias": { 43 | "dev-master": "1.7-dev" 44 | } 45 | }, 46 | "conflict": { 47 | "nyholm/psr7": "<1.0" 48 | }, 49 | "prefer-stable": true, 50 | "minimum-stability": "beta" 51 | } 52 | -------------------------------------------------------------------------------- /vendor/php-http/promise/README.md: -------------------------------------------------------------------------------- 1 | # Promise 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/promise.svg?style=flat-square)](https://github.com/php-http/promise/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Build Status](https://img.shields.io/travis/php-http/promise.svg?style=flat-square)](https://travis-ci.org/php-http/promise) 6 | [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/promise.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/promise) 7 | [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/promise.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/promise) 8 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/promise.svg?style=flat-square)](https://packagist.org/packages/php-http/promise) 9 | 10 | **Promise used for asynchronous HTTP requests.** 11 | 12 | **Note:** This will eventually be removed/deprecated and replaced with the upcoming Promise PSR. 13 | 14 | 15 | ## Install 16 | 17 | Via Composer 18 | 19 | ``` bash 20 | $ composer require php-http/promise 21 | ``` 22 | 23 | 24 | ## Documentation 25 | 26 | Please see the [official documentation](http://docs.php-http.org). 27 | 28 | 29 | ## Testing 30 | 31 | ``` bash 32 | $ composer test 33 | ``` 34 | 35 | 36 | ## Contributing 37 | 38 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 39 | 40 | 41 | ## Security 42 | 43 | If you discover any security related issues, please contact us at [security@httplug.io](mailto:security@httplug.io) 44 | or [security@php-http.org](mailto:security@php-http.org). 45 | 46 | 47 | ## License 48 | 49 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 50 | -------------------------------------------------------------------------------- /vendor/ralouphie/getallheaders/src/getallheaders.php: -------------------------------------------------------------------------------- 1 | 'Content-Type', 16 | 'CONTENT_LENGTH' => 'Content-Length', 17 | 'CONTENT_MD5' => 'Content-Md5', 18 | ); 19 | 20 | foreach ($_SERVER as $key => $value) { 21 | if (substr($key, 0, 5) === 'HTTP_') { 22 | $key = substr($key, 5); 23 | if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { 24 | $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); 25 | $headers[$key] = $value; 26 | } 27 | } elseif (isset($copy_server[$key])) { 28 | $headers[$copy_server[$key]] = $value; 29 | } 30 | } 31 | 32 | if (!isset($headers['Authorization'])) { 33 | if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { 34 | $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; 35 | } elseif (isset($_SERVER['PHP_AUTH_USER'])) { 36 | $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; 37 | $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); 38 | } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { 39 | $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; 40 | } 41 | } 42 | 43 | return $headers; 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/MessageFactory/SlimMessageFactory.php: -------------------------------------------------------------------------------- 1 | 16 | */ 17 | final class SlimMessageFactory implements MessageFactory 18 | { 19 | /** 20 | * @var SlimStreamFactory 21 | */ 22 | private $streamFactory; 23 | 24 | /** 25 | * @var SlimUriFactory 26 | */ 27 | private $uriFactory; 28 | 29 | public function __construct() 30 | { 31 | $this->streamFactory = new SlimStreamFactory(); 32 | $this->uriFactory = new SlimUriFactory(); 33 | } 34 | 35 | /** 36 | * {@inheritdoc} 37 | */ 38 | public function createRequest( 39 | $method, 40 | $uri, 41 | array $headers = [], 42 | $body = null, 43 | $protocolVersion = '1.1' 44 | ) { 45 | return (new Request( 46 | $method, 47 | $this->uriFactory->createUri($uri), 48 | new Headers($headers), 49 | [], 50 | [], 51 | $this->streamFactory->createStream($body), 52 | [] 53 | ))->withProtocolVersion($protocolVersion); 54 | } 55 | 56 | /** 57 | * {@inheritdoc} 58 | */ 59 | public function createResponse( 60 | $statusCode = 200, 61 | $reasonPhrase = null, 62 | array $headers = [], 63 | $body = null, 64 | $protocolVersion = '1.1' 65 | ) { 66 | return (new Response( 67 | $statusCode, 68 | new Headers($headers), 69 | $this->streamFactory->createStream($body) 70 | ))->withProtocolVersion($protocolVersion); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/tests/FunTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('grfg', $rot('test')); 12 | $this->assertEquals('test', $rot($rot('test'))); 13 | $this->assertEquals(null, $rot()); 14 | } 15 | 16 | public function testFunInQuotedPrintable() 17 | { 18 | $encode = Filter\fun('convert.quoted-printable-encode'); 19 | $decode = Filter\fun('convert.quoted-printable-decode'); 20 | 21 | $this->assertEquals('t=C3=A4st', $encode('täst')); 22 | $this->assertEquals('täst', $decode($encode('täst'))); 23 | $this->assertEquals(null, $encode()); 24 | } 25 | 26 | /** 27 | * @expectedException RuntimeException 28 | */ 29 | public function testFunWriteAfterCloseRot13() 30 | { 31 | $rot = Filter\fun('string.rot13'); 32 | 33 | $this->assertEquals(null, $rot()); 34 | $rot('test'); 35 | } 36 | 37 | /** 38 | * @expectedException RuntimeException 39 | */ 40 | public function testFunInvalid() 41 | { 42 | Filter\fun('unknown'); 43 | } 44 | 45 | public function testFunInBase64() 46 | { 47 | $encode = Filter\fun('convert.base64-encode'); 48 | $decode = Filter\fun('convert.base64-decode'); 49 | 50 | $string = 'test'; 51 | $this->assertEquals(base64_encode($string), $encode($string) . $encode()); 52 | $this->assertEquals($string, $decode(base64_encode($string))); 53 | 54 | $encode = Filter\fun('convert.base64-encode'); 55 | $decode = Filter\fun('convert.base64-decode'); 56 | $this->assertEquals($string, $decode($encode($string) . $encode())); 57 | 58 | $encode = Filter\fun('convert.base64-encode'); 59 | $this->assertEquals(null, $encode()); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/Resources/dist/storefront/js/instagram-feed.js: -------------------------------------------------------------------------------- 1 | (window.webpackJsonp=window.webpackJsonp||[]).push([["instagram-feed"],{E8vI:function(e,t,n){"use strict";n.r(t);var o=n("FGIj"),r=n("k8s9"),i=n("5lm9");function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n /dev/null 2>&1 & 33 | ``` 34 | 35 | Then the test suite: 36 | 37 | ``` bash 38 | $ composer test 39 | ``` 40 | 41 | 42 | ## Contributing 43 | 44 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 45 | 46 | 47 | ## Security 48 | 49 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 50 | 51 | 52 | ## Credits 53 | 54 | Thanks to [David de Boer](https://github.com/ddeboer) for implementing this adapter. 55 | 56 | 57 | ## License 58 | 59 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 60 | -------------------------------------------------------------------------------- /vendor/php-http/message/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "php-http/message", 3 | "description": "HTTP Message related tools", 4 | "license": "MIT", 5 | "keywords": ["message", "http", "psr-7"], 6 | "homepage": "http://php-http.org", 7 | "authors": [ 8 | { 9 | "name": "Márk Sági-Kazár", 10 | "email": "mark.sagikazar@gmail.com" 11 | } 12 | ], 13 | "require": { 14 | "php": "^7.1", 15 | "clue/stream-filter": "^1.4", 16 | "php-http/message-factory": "^1.0.2", 17 | "psr/http-message": "^1.0" 18 | }, 19 | "provide": { 20 | "php-http/message-factory-implementation": "1.0" 21 | }, 22 | "require-dev": { 23 | "ext-zlib": "*", 24 | "akeneo/phpspec-skip-example-extension": "^1.0", 25 | "coduo/phpspec-data-provider-extension": "^1.0", 26 | "guzzlehttp/psr7": "^1.0", 27 | "henrikbjorn/phpspec-code-coverage" : "^1.0", 28 | "phpspec/phpspec": "^2.4", 29 | "slim/slim": "^3.0", 30 | "zendframework/zend-diactoros": "^1.0" 31 | }, 32 | "suggest": { 33 | "zendframework/zend-diactoros": "Used with Diactoros Factories", 34 | "guzzlehttp/psr7": "Used with Guzzle PSR-7 Factories", 35 | "slim/slim": "Used with Slim Framework PSR-7 implementation", 36 | "ext-zlib": "Used with compressor/decompressor streams" 37 | }, 38 | "autoload": { 39 | "psr-4": { 40 | "Http\\Message\\": "src/" 41 | }, 42 | "files": [ 43 | "src/filters.php" 44 | ] 45 | }, 46 | "autoload-dev": { 47 | "psr-4": { 48 | "spec\\Http\\Message\\": "spec/" 49 | } 50 | }, 51 | "scripts": { 52 | "test": "vendor/bin/phpspec run", 53 | "test-ci": "vendor/bin/phpspec run -c phpspec.ci.yml" 54 | }, 55 | "extra": { 56 | "branch-alias": { 57 | "dev-master": "1.8-dev" 58 | } 59 | }, 60 | "config": { 61 | "sort-packages": true 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Decorator/RequestDecorator.php: -------------------------------------------------------------------------------- 1 | 10 | */ 11 | trait RequestDecorator 12 | { 13 | use MessageDecorator { 14 | getMessage as getRequest; 15 | } 16 | 17 | /** 18 | * Exchanges the underlying request with another. 19 | * 20 | * @param RequestInterface $request 21 | * 22 | * @return self 23 | */ 24 | public function withRequest(RequestInterface $request) 25 | { 26 | $new = clone $this; 27 | $new->message = $request; 28 | 29 | return $new; 30 | } 31 | 32 | /** 33 | * {@inheritdoc} 34 | */ 35 | public function getRequestTarget() 36 | { 37 | return $this->message->getRequestTarget(); 38 | } 39 | 40 | /** 41 | * {@inheritdoc} 42 | */ 43 | public function withRequestTarget($requestTarget) 44 | { 45 | $new = clone $this; 46 | $new->message = $this->message->withRequestTarget($requestTarget); 47 | 48 | return $new; 49 | } 50 | 51 | /** 52 | * {@inheritdoc} 53 | */ 54 | public function getMethod() 55 | { 56 | return $this->message->getMethod(); 57 | } 58 | 59 | /** 60 | * {@inheritdoc} 61 | */ 62 | public function withMethod($method) 63 | { 64 | $new = clone $this; 65 | $new->message = $this->message->withMethod($method); 66 | 67 | return $new; 68 | } 69 | 70 | /** 71 | * {@inheritdoc} 72 | */ 73 | public function getUri() 74 | { 75 | return $this->message->getUri(); 76 | } 77 | 78 | /** 79 | * {@inheritdoc} 80 | */ 81 | public function withUri(UriInterface $uri, $preserveHost = false) 82 | { 83 | $new = clone $this; 84 | $new->message = $this->message->withUri($uri, $preserveHost); 85 | 86 | return $new; 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/psr7/src/InflateStream.php: -------------------------------------------------------------------------------- 1 | read(10); 25 | $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); 26 | // Skip the header, that is 10 + length of filename + 1 (nil) bytes 27 | $stream = new LimitStream($stream, -1, 10 + $filenameHeaderLength); 28 | $resource = StreamWrapper::getResource($stream); 29 | stream_filter_append($resource, 'zlib.inflate', STREAM_FILTER_READ); 30 | $this->stream = $stream->isSeekable() ? new Stream($resource) : new NoSeekStream(new Stream($resource)); 31 | } 32 | 33 | /** 34 | * @param StreamInterface $stream 35 | * @param $header 36 | * @return int 37 | */ 38 | private function getLengthOfPossibleFilenameHeader(StreamInterface $stream, $header) 39 | { 40 | $filename_header_length = 0; 41 | 42 | if (substr(bin2hex($header), 6, 2) === '08') { 43 | // we have a filename, read until nil 44 | $filename_header_length = 1; 45 | while ($stream->read(1) !== chr(0)) { 46 | $filename_header_length++; 47 | } 48 | } 49 | 50 | return $filename_header_length; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/src/Exception/HttpException.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | class HttpException extends RequestException 16 | { 17 | /** 18 | * @var ResponseInterface 19 | */ 20 | protected $response; 21 | 22 | /** 23 | * @param string $message 24 | * @param RequestInterface $request 25 | * @param ResponseInterface $response 26 | * @param \Exception|null $previous 27 | */ 28 | public function __construct( 29 | $message, 30 | RequestInterface $request, 31 | ResponseInterface $response, 32 | \Exception $previous = null 33 | ) { 34 | parent::__construct($message, $request, $previous); 35 | 36 | $this->response = $response; 37 | $this->code = $response->getStatusCode(); 38 | } 39 | 40 | /** 41 | * Returns the response. 42 | * 43 | * @return ResponseInterface 44 | */ 45 | public function getResponse() 46 | { 47 | return $this->response; 48 | } 49 | 50 | /** 51 | * Factory method to create a new exception with a normalized error message. 52 | */ 53 | public static function create( 54 | RequestInterface $request, 55 | ResponseInterface $response, 56 | \Exception $previous = null 57 | ) { 58 | $message = sprintf( 59 | '[url] %s [http method] %s [status code] %s [reason phrase] %s', 60 | $request->getRequestTarget(), 61 | $request->getMethod(), 62 | $response->getStatusCode(), 63 | $response->getReasonPhrase() 64 | ); 65 | 66 | return new self($message, $request, $response, $previous); 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /vendor/php-http/message/README.md: -------------------------------------------------------------------------------- 1 | # HTTP Message 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/message.svg?style=flat-square)](https://github.com/php-http/message/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Build Status](https://img.shields.io/travis/php-http/message.svg?style=flat-square)](https://travis-ci.org/php-http/message) 6 | [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/message.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/message) 7 | [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/message.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/message) 8 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/message.svg?style=flat-square)](https://packagist.org/packages/php-http/message) 9 | 10 | **HTTP Message related tools.** 11 | 12 | 13 | ## Install 14 | 15 | Via Composer 16 | 17 | ``` bash 18 | $ composer require php-http/message 19 | ``` 20 | 21 | 22 | ## Intro 23 | 24 | This package contains various PSR-7 tools which might be useful in an HTTP workflow: 25 | 26 | - Authentication method implementations 27 | - Various Stream encoding tools 28 | - Message decorators 29 | - Message factory implementations for Guzzle PSR-7 and Diactoros 30 | - Cookie implementation 31 | - Request matchers 32 | 33 | 34 | ## Documentation 35 | 36 | Please see the [official documentation](http://docs.php-http.org/en/latest/message.html). 37 | 38 | 39 | ## Testing 40 | 41 | ``` bash 42 | $ composer test 43 | ``` 44 | 45 | 46 | ## Contributing 47 | 48 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 49 | 50 | ## Credits 51 | 52 | Thanks to [Cuzzle](https://github.com/namshi/cuzzle) for inpiration for the `CurlCommandFormatter`. 53 | 54 | ## Security 55 | 56 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 57 | 58 | 59 | ## License 60 | 61 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 62 | -------------------------------------------------------------------------------- /vendor/php-http/guzzle6-adapter/src/Client.php: -------------------------------------------------------------------------------- 1 | 20 | */ 21 | final class Client implements HttpClient, HttpAsyncClient 22 | { 23 | /** 24 | * @var ClientInterface 25 | */ 26 | private $client; 27 | 28 | public function __construct(?ClientInterface $client = null) 29 | { 30 | if (!$client) { 31 | $client = self::buildClient(); 32 | } 33 | 34 | $this->client = $client; 35 | } 36 | 37 | /** 38 | * Factory method to create the Guzzle 6 adapter with custom Guzzle configuration. 39 | */ 40 | public static function createWithConfig(array $config): Client 41 | { 42 | return new self(self::buildClient($config)); 43 | } 44 | 45 | /** 46 | * {@inheritdoc} 47 | */ 48 | public function sendRequest(RequestInterface $request): ResponseInterface 49 | { 50 | $promise = $this->sendAsyncRequest($request); 51 | 52 | return $promise->wait(); 53 | } 54 | 55 | /** 56 | * {@inheritdoc} 57 | */ 58 | public function sendAsyncRequest(RequestInterface $request) 59 | { 60 | $promise = $this->client->sendAsync($request); 61 | 62 | return new Promise($promise, $request); 63 | } 64 | 65 | /** 66 | * Build the Guzzle client instance. 67 | */ 68 | private static function buildClient(array $config = []): GuzzleClient 69 | { 70 | $handlerStack = new HandlerStack(\GuzzleHttp\choose_handler()); 71 | $handlerStack->push(Middleware::prepareBody(), 'prepare_body'); 72 | $config = array_merge(['handler' => $handlerStack], $config); 73 | 74 | return new GuzzleClient($config); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/TaskQueue.php: -------------------------------------------------------------------------------- 1 | run(); 12 | */ 13 | class TaskQueue implements TaskQueueInterface 14 | { 15 | private $enableShutdown = true; 16 | private $queue = []; 17 | 18 | public function __construct($withShutdown = true) 19 | { 20 | if ($withShutdown) { 21 | register_shutdown_function(function () { 22 | if ($this->enableShutdown) { 23 | // Only run the tasks if an E_ERROR didn't occur. 24 | $err = error_get_last(); 25 | if (!$err || ($err['type'] ^ E_ERROR)) { 26 | $this->run(); 27 | } 28 | } 29 | }); 30 | } 31 | } 32 | 33 | public function isEmpty() 34 | { 35 | return !$this->queue; 36 | } 37 | 38 | public function add(callable $task) 39 | { 40 | $this->queue[] = $task; 41 | } 42 | 43 | public function run() 44 | { 45 | /** @var callable $task */ 46 | while ($task = array_shift($this->queue)) { 47 | $task(); 48 | } 49 | } 50 | 51 | /** 52 | * The task queue will be run and exhausted by default when the process 53 | * exits IFF the exit is not the result of a PHP E_ERROR error. 54 | * 55 | * You can disable running the automatic shutdown of the queue by calling 56 | * this function. If you disable the task queue shutdown process, then you 57 | * MUST either run the task queue (as a result of running your event loop 58 | * or manually using the run() method) or wait on each outstanding promise. 59 | * 60 | * Note: This shutdown will occur before any destructors are triggered. 61 | */ 62 | public function disableShutdown() 63 | { 64 | $this->enableShutdown = false; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php: -------------------------------------------------------------------------------- 1 | sessionKey = $sessionKey; 26 | $this->storeSessionCookies = $storeSessionCookies; 27 | $this->load(); 28 | } 29 | 30 | /** 31 | * Saves cookies to session when shutting down 32 | */ 33 | public function __destruct() 34 | { 35 | $this->save(); 36 | } 37 | 38 | /** 39 | * Save cookies to the client session 40 | */ 41 | public function save() 42 | { 43 | $json = []; 44 | foreach ($this as $cookie) { 45 | /** @var SetCookie $cookie */ 46 | if (CookieJar::shouldPersist($cookie, $this->storeSessionCookies)) { 47 | $json[] = $cookie->toArray(); 48 | } 49 | } 50 | 51 | $_SESSION[$this->sessionKey] = json_encode($json); 52 | } 53 | 54 | /** 55 | * Load the contents of the client session into the data array 56 | */ 57 | protected function load() 58 | { 59 | if (!isset($_SESSION[$this->sessionKey])) { 60 | return; 61 | } 62 | $data = json_decode($_SESSION[$this->sessionKey], true); 63 | if (is_array($data)) { 64 | foreach ($data as $cookie) { 65 | $this->setCookie(new SetCookie($cookie)); 66 | } 67 | } elseif (strlen($data)) { 68 | throw new \RuntimeException("Invalid cookie data"); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/Authentication/Matching.php: -------------------------------------------------------------------------------- 1 | 15 | * 16 | * @deprecated since since version 1.2, and will be removed in 2.0. Use {@link RequestConditional} instead. 17 | */ 18 | final class Matching implements Authentication 19 | { 20 | /** 21 | * @var Authentication 22 | */ 23 | private $authentication; 24 | 25 | /** 26 | * @var CallbackRequestMatcher 27 | */ 28 | private $matcher; 29 | 30 | /** 31 | * @param Authentication $authentication 32 | * @param callable|null $matcher 33 | */ 34 | public function __construct(Authentication $authentication, callable $matcher = null) 35 | { 36 | if (is_null($matcher)) { 37 | $matcher = function () { 38 | return true; 39 | }; 40 | } 41 | 42 | $this->authentication = $authentication; 43 | $this->matcher = new CallbackRequestMatcher($matcher); 44 | } 45 | 46 | /** 47 | * {@inheritdoc} 48 | */ 49 | public function authenticate(RequestInterface $request) 50 | { 51 | if ($this->matcher->matches($request)) { 52 | return $this->authentication->authenticate($request); 53 | } 54 | 55 | return $request; 56 | } 57 | 58 | /** 59 | * Creates a matching authentication for an URL. 60 | * 61 | * @param Authentication $authentication 62 | * @param string $url 63 | * 64 | * @return self 65 | */ 66 | public static function createUrlMatcher(Authentication $authentication, $url) 67 | { 68 | $matcher = function (RequestInterface $request) use ($url) { 69 | return preg_match($url, $request->getRequestTarget()); 70 | }; 71 | 72 | return new static($authentication, $matcher); 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /vendor/guzzlehttp/promises/src/FulfilledPromise.php: -------------------------------------------------------------------------------- 1 | value = $value; 22 | } 23 | 24 | public function then( 25 | callable $onFulfilled = null, 26 | callable $onRejected = null 27 | ) { 28 | // Return itself if there is no onFulfilled function. 29 | if (!$onFulfilled) { 30 | return $this; 31 | } 32 | 33 | $queue = queue(); 34 | $p = new Promise([$queue, 'run']); 35 | $value = $this->value; 36 | $queue->add(static function () use ($p, $value, $onFulfilled) { 37 | if ($p->getState() === self::PENDING) { 38 | try { 39 | $p->resolve($onFulfilled($value)); 40 | } catch (\Throwable $e) { 41 | $p->reject($e); 42 | } catch (\Exception $e) { 43 | $p->reject($e); 44 | } 45 | } 46 | }); 47 | 48 | return $p; 49 | } 50 | 51 | public function otherwise(callable $onRejected) 52 | { 53 | return $this->then(null, $onRejected); 54 | } 55 | 56 | public function wait($unwrap = true, $defaultDelivery = null) 57 | { 58 | return $unwrap ? $this->value : null; 59 | } 60 | 61 | public function getState() 62 | { 63 | return self::FULFILLED; 64 | } 65 | 66 | public function resolve($value) 67 | { 68 | if ($value !== $this->value) { 69 | throw new \LogicException("Cannot resolve a fulfilled promise"); 70 | } 71 | } 72 | 73 | public function reject($reason) 74 | { 75 | throw new \LogicException("Cannot reject a fulfilled promise"); 76 | } 77 | 78 | public function cancel() 79 | { 80 | // pass 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /vendor/clue/stream-filter/tests/FunZlibTest.php: -------------------------------------------------------------------------------- 1 | assertEquals(gzdeflate('hello world'), $data); 14 | } 15 | 16 | public function testFunZlibDeflateEmpty() 17 | { 18 | if (PHP_VERSION >= 7) $this->markTestSkipped('Not supported on PHP7 (empty string does not invoke filter)'); 19 | 20 | $deflate = StreamFilter\fun('zlib.deflate'); 21 | 22 | //$data = gzdeflate(''); 23 | $data = $deflate(); 24 | 25 | $this->assertEquals("\x03\x00", $data); 26 | } 27 | 28 | public function testFunZlibDeflateBig() 29 | { 30 | $deflate = StreamFilter\fun('zlib.deflate'); 31 | 32 | $n = 1000; 33 | $expected = str_repeat('hello', $n); 34 | 35 | $bytes = ''; 36 | for ($i = 0; $i < $n; ++$i) { 37 | $bytes .= $deflate('hello'); 38 | } 39 | $bytes .= $deflate(); 40 | 41 | $this->assertEquals($expected, gzinflate($bytes)); 42 | } 43 | 44 | public function testFunZlibInflateHelloWorld() 45 | { 46 | $inflate = StreamFilter\fun('zlib.inflate'); 47 | 48 | $data = $inflate(gzdeflate('hello world')) . $inflate(); 49 | 50 | $this->assertEquals('hello world', $data); 51 | } 52 | 53 | public function testFunZlibInflateEmpty() 54 | { 55 | $inflate = StreamFilter\fun('zlib.inflate'); 56 | 57 | $data = $inflate("\x03\x00") . $inflate(); 58 | 59 | $this->assertEquals('', $data); 60 | } 61 | 62 | public function testFunZlibInflateBig() 63 | { 64 | if (defined('HHVM_VERSION')) $this->markTestSkipped('Not supported on HHVM (final chunk will not be emitted)'); 65 | 66 | $inflate = StreamFilter\fun('zlib.inflate'); 67 | 68 | $expected = str_repeat('hello', 10); 69 | $bytes = gzdeflate($expected); 70 | 71 | $ret = ''; 72 | foreach (str_split($bytes, 2) as $chunk) { 73 | $ret .= $inflate($chunk); 74 | } 75 | $ret .= $inflate(); 76 | 77 | $this->assertEquals($expected, $ret); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /vendor/php-http/message/src/RequestMatcher/RequestMatcher.php: -------------------------------------------------------------------------------- 1 | 12 | * @author Joel Wurtz 13 | */ 14 | final class RequestMatcher implements RequestMatcherInterface 15 | { 16 | /** 17 | * @var string 18 | */ 19 | private $path; 20 | 21 | /** 22 | * @var string 23 | */ 24 | private $host; 25 | 26 | /** 27 | * @var array 28 | */ 29 | private $methods = []; 30 | 31 | /** 32 | * @var string[] 33 | */ 34 | private $schemes = []; 35 | 36 | /** 37 | * The regular expressions used for path or host must be specified without delimiter. 38 | * You do not need to escape the forward slash / to match it. 39 | * 40 | * @param string|null $path Regular expression for the path 41 | * @param string|null $host Regular expression for the hostname 42 | * @param string|string[]|null $methods Method or list of methods to match 43 | * @param string|string[]|null $schemes Scheme or list of schemes to match (e.g. http or https) 44 | */ 45 | public function __construct($path = null, $host = null, $methods = [], $schemes = []) 46 | { 47 | $this->path = $path; 48 | $this->host = $host; 49 | $this->methods = array_map('strtoupper', (array) $methods); 50 | $this->schemes = array_map('strtolower', (array) $schemes); 51 | } 52 | 53 | /** 54 | * {@inheritdoc} 55 | * 56 | * @api 57 | */ 58 | public function matches(RequestInterface $request) 59 | { 60 | if ($this->schemes && !in_array($request->getUri()->getScheme(), $this->schemes)) { 61 | return false; 62 | } 63 | 64 | if ($this->methods && !in_array($request->getMethod(), $this->methods)) { 65 | return false; 66 | } 67 | 68 | if (null !== $this->path && !preg_match('{'.$this->path.'}', rawurldecode($request->getUri()->getPath()))) { 69 | return false; 70 | } 71 | 72 | if (null !== $this->host && !preg_match('{'.$this->host.'}i', $request->getUri()->getHost())) { 73 | return false; 74 | } 75 | 76 | return true; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /vendor/php-http/promise/src/Promise.php: -------------------------------------------------------------------------------- 1 | 14 | * @author Márk Sági-Kazár 15 | */ 16 | interface Promise 17 | { 18 | /** 19 | * Promise has not been fulfilled or rejected. 20 | */ 21 | const PENDING = 'pending'; 22 | 23 | /** 24 | * Promise has been fulfilled. 25 | */ 26 | const FULFILLED = 'fulfilled'; 27 | 28 | /** 29 | * Promise has been rejected. 30 | */ 31 | const REJECTED = 'rejected'; 32 | 33 | /** 34 | * Adds behavior for when the promise is resolved or rejected (response will be available, or error happens). 35 | * 36 | * If you do not care about one of the cases, you can set the corresponding callable to null 37 | * The callback will be called when the value arrived and never more than once. 38 | * 39 | * @param callable $onFulfilled Called when a response will be available. 40 | * @param callable $onRejected Called when an exception occurs. 41 | * 42 | * @return Promise A new resolved promise with value of the executed callback (onFulfilled / onRejected). 43 | */ 44 | public function then(callable $onFulfilled = null, callable $onRejected = null); 45 | 46 | /** 47 | * Returns the state of the promise, one of PENDING, FULFILLED or REJECTED. 48 | * 49 | * @return string 50 | */ 51 | public function getState(); 52 | 53 | /** 54 | * Wait for the promise to be fulfilled or rejected. 55 | * 56 | * When this method returns, the request has been resolved and if callables have been 57 | * specified, the appropriate one has terminated. 58 | * 59 | * When $unwrap is true (the default), the response is returned, or the exception thrown 60 | * on failure. Otherwise, nothing is returned or thrown. 61 | * 62 | * @param bool $unwrap Whether to return resolved value / throw reason or not 63 | * 64 | * @return mixed Resolved value, null if $unwrap is set to false 65 | * 66 | * @throws \Exception The rejection reason if $unwrap is set to true and the request failed. 67 | */ 68 | public function wait($unwrap = true); 69 | } 70 | -------------------------------------------------------------------------------- /vendor/php-http/httplug/README.md: -------------------------------------------------------------------------------- 1 | # HTTPlug 2 | 3 | [![Latest Version](https://img.shields.io/github/release/php-http/httplug.svg?style=flat-square)](https://github.com/php-http/httplug/releases) 4 | [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE) 5 | [![Build Status](https://img.shields.io/travis/php-http/httplug/master.svg?style=flat-square)](https://travis-ci.org/php-http/httplug) 6 | [![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/httplug) 7 | [![Quality Score](https://img.shields.io/scrutinizer/g/php-http/httplug.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/httplug) 8 | [![Total Downloads](https://img.shields.io/packagist/dt/php-http/httplug.svg?style=flat-square)](https://packagist.org/packages/php-http/httplug) 9 | 10 | [![Slack Status](http://slack.httplug.io/badge.svg)](http://slack.httplug.io) 11 | [![Email](https://img.shields.io/badge/email-team@httplug.io-blue.svg?style=flat-square)](mailto:team@httplug.io) 12 | 13 | **HTTPlug, the HTTP client abstraction for PHP.** 14 | 15 | 16 | ## Intro 17 | 18 | HTTPlug is the predecessor of [PSR-18](http://www.php-fig.org/psr/psr-18/) 19 | HTTP Client standard built on [PSR-7](http://www.php-fig.org/psr/psr-7/) HTTP messages. 20 | Since there is an entire ecosystem built around HTTPlug which is already widely adopted, 21 | we will keep maintaining this package for the time being, 22 | but new implementations and consumers should use the PSR-18 interfaces. 23 | HTTPlug 2.x extends the PSR-18 interfaces to allow a convenient migration path. 24 | In the long term, we expect PSR-18 to completely replace the need for HTTPlug. 25 | 26 | This library is the official successor of the [ivory http adapter](https://github.com/egeloen/ivory-http-adapter). 27 | 28 | 29 | ## Install 30 | 31 | Via Composer 32 | 33 | ``` bash 34 | $ composer require php-http/httplug 35 | ``` 36 | 37 | 38 | ## Documentation 39 | 40 | Please see the [official documentation](http://docs.php-http.org). 41 | 42 | 43 | ## Testing 44 | 45 | ``` bash 46 | $ composer test 47 | ``` 48 | 49 | 50 | ## Contributing 51 | 52 | Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html). 53 | 54 | 55 | ## Security 56 | 57 | If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org). 58 | 59 | 60 | ## License 61 | 62 | The MIT License (MIT). Please see [License File](LICENSE) for more information. 63 | --------------------------------------------------------------------------------