├── .env.dist ├── .gitignore ├── .php-cs-fixer.dist.php ├── README.md ├── bin ├── console ├── grpc-server ├── openapi └── zmq-server ├── composer.json ├── composer.lock ├── config ├── bundles.php ├── packages │ ├── cache.yaml │ ├── dev │ │ └── maker.yaml │ ├── doctrine.yaml │ ├── doctrine_migrations.yaml │ ├── framework.yaml │ ├── prod │ │ └── doctrine.yaml │ ├── routing.yaml │ └── test │ │ └── doctrine.yaml ├── preload.php ├── routes.yaml ├── routes │ ├── annotations.yaml │ └── framework.yaml └── services.yaml ├── docker-compose.cli.yml ├── docker-compose.override.yml.dist ├── docker-compose.yml ├── docker ├── api │ ├── Dockerfile │ └── ext │ │ ├── docker-php-ext-xdebug.ini │ │ └── php.ini ├── nginx │ ├── Dockerfile │ └── site.conf └── swagger │ ├── Dockerfile │ └── swagger-ui │ ├── .gitignore │ ├── package.json │ ├── server.js │ └── yarn.lock ├── docs ├── arch.png ├── dataflow.png ├── gRPC.md └── openapi │ └── swagger.yaml ├── migrations └── .gitignore ├── protos └── subscriber.proto ├── public └── index.php ├── requests.http ├── src ├── GraphQL │ ├── Config │ │ └── GraphQLResolversCompilerPass.php │ ├── Context.php │ ├── GraphQLResolverContainer.php │ ├── Resolver.php │ ├── Resolver │ │ ├── Mutation │ │ │ └── Subscriber │ │ │ │ ├── SubscriberCreateResolver.php │ │ │ │ └── SubscriberUpdateResolver.php │ │ └── Query │ │ │ ├── HealthCheckResolver.php │ │ │ └── Subscriber │ │ │ ├── SubscriberListResolver.php │ │ │ └── SubscriberRetrieveResolver.php │ ├── RootValue.php │ └── schema.gql ├── Kernel.php ├── Rest │ ├── Action │ │ ├── GraphQLAction.php │ │ ├── HealthCheckAction.php │ │ └── Subscriber │ │ │ ├── SubscriberCreateAction.php │ │ │ ├── SubscriberListAction.php │ │ │ ├── SubscriberRetrieveAction.php │ │ │ └── SubscriberUpdateAction.php │ └── OpenApi.php ├── Shared │ ├── Exception │ │ ├── DomainLogicException.php │ │ └── ResponseException.php │ └── Validator │ │ └── Exception │ │ └── ValidatorException.php ├── Subscriber │ ├── Entity │ │ └── Subscriber.php │ ├── Input │ │ ├── Mapper │ │ │ ├── SubscriberCreateInputMapper.php │ │ │ └── SubscriberUpdateInputMapper.php │ │ ├── SubscriberCreateInput.php │ │ ├── SubscriberListFiltersInput.php │ │ ├── SubscriberUpdateInput.php │ │ └── Validator │ │ │ ├── SubscriberCreateInputValidator.php │ │ │ ├── SubscriberListFiltersInputValidator.php │ │ │ └── SubscriberUpdateInputValidator.php │ ├── Output │ │ ├── Mapper │ │ │ ├── SubscriberFullOutputMapper.php │ │ │ ├── SubscriberListOutputMapper.php │ │ │ └── SubscriberPartialOutputMapper.php │ │ ├── SubscriberFullOutput.php │ │ ├── SubscriberListOutput.php │ │ └── SubscriberPartialOutput.php │ ├── Repository │ │ └── SubscriberPostgresRepository.php │ ├── SubscriberRepositoryInterface.php │ └── UseCase │ │ ├── SubscriberCreate.php │ │ ├── SubscriberList.php │ │ └── SubscriberUpdate.php ├── ZMQ │ └── Subscriber │ │ ├── SubscriberCreateHandler.php │ │ └── SubscriberRetrieveHandler.php └── gRPC │ ├── Parser.php │ └── Subscriber │ ├── Reply │ └── SubscriberOutputReplyMapper.php │ ├── SubscriberCreateRPC.php │ └── SubscriberRetrieveRPC.php ├── symfony.lock └── zmq-client.php /.env.dist: -------------------------------------------------------------------------------- 1 | APP_ENV=dev 2 | APP_SECRET=3204f386dbd229097357a59e157e5344 3 | GRPC_PORT=50051 4 | ZMQ_PORT=5555 5 | DATABASE_URL="postgres://alefcastelo:@127.0.0.1:5432/poc?serverVersion=13&charset=utf8" 6 | GRAPHQL_SCHEMA_PATH=%kernel.project_dir%/src/GraphQL/schema.gql 7 | REDIS_CONNECTION_DNS=tcp://redis:6379 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /.env 2 | /.env.local 3 | /.env.local.php 4 | /.env.*.local 5 | /config/secrets/prod/prod.decrypt.private.php 6 | /public/bundles/ 7 | /var/ 8 | /stubs/ 9 | /vendor/ 10 | /.php-cs-fixer.php 11 | /.php-cs-fixer.cache 12 | /docker-compose.override.yml -------------------------------------------------------------------------------- /.php-cs-fixer.dist.php: -------------------------------------------------------------------------------- 1 | in(__DIR__) 5 | ->exclude('var') 6 | ->exclude('vendor') 7 | ; 8 | 9 | return (new PhpCsFixer\Config()) 10 | ->setRules([ 11 | '@Symfony' => true, 12 | '@PSR12' => true, 13 | '@DoctrineAnnotation' => true, 14 | '@PHP80Migration' => true, 15 | 'array_syntax' => ['syntax' => 'short'], 16 | 'array_indentation' => true, 17 | 'blank_line_after_opening_tag' => true, 18 | 'declare_strict_types' => true, 19 | 'concat_space' => ['spacing' => 'one'], 20 | 'multiline_whitespace_before_semicolons' => true, 21 | 'method_chaining_indentation' => true, 22 | 'no_superfluous_elseif' => true, 23 | 'no_superfluous_phpdoc_tags' => true, 24 | 'no_useless_else' => true, 25 | 'no_useless_return' => true, 26 | 'void_return' => true, 27 | ]) 28 | ->setFinder($finder) 29 | ->setUsingCache(true) 30 | ->setRiskyAllowed(true) 31 | ; 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PHP Architecture Boilerplate 2 | -------------------------------------------------------------------------------- /bin/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | \Descarga\gRPC\Generated\SubscriberCreateRequest::class, 19 | \Descarga\gRPC\Subscriber\SubscriberRetrieveRPC::class => \Descarga\gRPC\Generated\SubscriberRetrieveRequest::class, 20 | ]; 21 | 22 | if (array_key_exists($rpcClass, $map)) { 23 | return $map[$rpcClass]; 24 | } 25 | 26 | return null; 27 | } 28 | 29 | function getRPCHandler(Request $request): string { 30 | $route = str_replace('/', '\\', $request->server['request_uri']); 31 | return sprintf('%s%s%s', 'Descarga\\gRPC', $route, 'RPC'); 32 | } 33 | 34 | 35 | function notFoundResponse(Response $response): void { 36 | $response->trailer('grpc-status', (string) Grpc\STATUS_NOT_FOUND); 37 | $response->trailer('grpc-message', 'rpc not found'); 38 | $response->end(); 39 | } 40 | 41 | $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); 42 | $kernel->boot(); 43 | $container = $kernel->getContainer(); 44 | 45 | $server = new Server('0.0.0.0', (int) $_ENV['GRPC_PORT'], SWOOLE_PROCESS, SWOOLE_SOCK_TCP); 46 | 47 | $server->set([ 48 | 'log_level' => SWOOLE_LOG_INFO, 49 | 'trace_flags' => 0, 50 | 'worker_num' => 1, 51 | 'open_http2_protocol' => true, 52 | ]); 53 | 54 | $server->on('Request', 55 | callback: function (Request $request, Response $response) use($container): void { 56 | print sprintf('[%s] %s', $request->server['request_method'], $request->server['request_uri']) . PHP_EOL; 57 | 58 | $response->header('content-type', 'application/grpc'); 59 | $response->header('trailer', 'grpc-status, grpc-message'); 60 | 61 | 62 | $rpcHandlerClass = getRPCHandler($request); 63 | $rpcRequestHandlerClass = mapRequestRPC($rpcHandlerClass); 64 | 65 | if (null === $rpcHandlerClass || !$rpcRequestHandlerClass) { 66 | print sprintf('[debug] %s not found', $rpcHandlerClass) . PHP_EOL; 67 | notFoundResponse($response); 68 | 69 | return; 70 | } 71 | 72 | if (!$container->has($rpcHandlerClass)) { 73 | print '[debug] Service not found' . PHP_EOL; 74 | notFoundResponse($response); 75 | 76 | return; 77 | } 78 | 79 | $response->header('content-type', 'application/grpc'); 80 | $response->header('trailer', 'grpc-status, grpc-message'); 81 | 82 | $rpcHandler = $container->get($rpcHandlerClass); 83 | 84 | if (!is_callable($rpcHandler)) { 85 | notFoundResponse($response); 86 | } 87 | 88 | $grpcRequest = new $rpcRequestHandlerClass(); 89 | $grpcRequest->mergeFromString(Parser::unpack($request->rawContent())); 90 | 91 | $grpcResponse = $rpcHandler($grpcRequest); 92 | 93 | $trailer = [ 94 | 'grpc-status' => (string) Grpc\STATUS_OK, 95 | 'grpc-message' => 'success', 96 | ]; 97 | 98 | foreach ($trailer as $trailer_name => $trailer_value) { 99 | $response->trailer($trailer_name, $trailer_value); 100 | } 101 | 102 | $response->end(Parser::serializeMessage($grpcResponse)); 103 | }); 104 | 105 | $server->start(); 106 | }; 107 | -------------------------------------------------------------------------------- /bin/openapi: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | toYaml(); -------------------------------------------------------------------------------- /bin/zmq-server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | namespace, $event->action); 16 | } 17 | 18 | $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); 19 | $kernel->boot(); 20 | 21 | $container = $kernel->getContainer(); 22 | 23 | $context = new ZMQContext(1); 24 | 25 | $responder = new ZMQSocket($context, ZMQ::SOCKET_REP); 26 | $responder->bind(sprintf('tcp://*:%s', $_ENV['ZMQ_PORT'])); 27 | 28 | while (true) { 29 | $request = $responder->recv(); 30 | $event = json_decode($request); 31 | 32 | $eventHandlerClass = getEventHandler($event); 33 | 34 | if (!$container->has($eventHandlerClass)) { 35 | $responder->send(json_encode(['message' => 'event handler not found'])); 36 | } 37 | 38 | $eventHandler = $container->get($eventHandlerClass); 39 | 40 | if (!is_callable($eventHandler)) { 41 | $responder->send(json_encode(['message' => 'event handler is not a callable'])); 42 | } 43 | 44 | $output = $eventHandler(json_decode($event->payload, true)); 45 | 46 | $responder->send(json_encode($output)); 47 | } 48 | }; 49 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "project", 3 | "license": "proprietary", 4 | "minimum-stability": "stable", 5 | "prefer-stable": true, 6 | "require": { 7 | "php": ">=8.0", 8 | "ext-ctype": "*", 9 | "ext-grpc": "^1.39", 10 | "ext-iconv": "*", 11 | "ext-protobuf": "*", 12 | "ext-swoole": "*", 13 | "ext-zmq": "*", 14 | "composer/package-versions-deprecated": "1.11.99.2", 15 | "doctrine/doctrine-bundle": "^2.4", 16 | "doctrine/doctrine-migrations-bundle": "^3.1", 17 | "doctrine/orm": "^2.9", 18 | "google/protobuf": "^3.17", 19 | "grpc/grpc": "^1.39", 20 | "predis/predis": "2.0.x-dev", 21 | "symfony/console": "5.3.*", 22 | "symfony/dotenv": "5.3.*", 23 | "symfony/flex": "^1.3.1", 24 | "symfony/framework-bundle": "5.3.*", 25 | "symfony/maker-bundle": "^1.33", 26 | "symfony/proxy-manager-bridge": "5.3.*", 27 | "symfony/runtime": "5.3.*", 28 | "symfony/yaml": "5.3.*", 29 | "webonyx/graphql-php": "^14.9" 30 | }, 31 | "config": { 32 | "optimize-autoloader": true, 33 | "preferred-install": { 34 | "*": "dist" 35 | }, 36 | "sort-packages": true 37 | }, 38 | "autoload": { 39 | "psr-4": { 40 | "Descarga\\": "src/", 41 | "Descarga\\gRPC\\Generated\\": "stubs/Descarga/gRPC/Generated", 42 | "GPBMetadata\\": "stubs/GPBMetadata/" 43 | } 44 | }, 45 | "autoload-dev": { 46 | "psr-4": { 47 | "Descarga\\": "tests/" 48 | } 49 | }, 50 | "replace": { 51 | "symfony/polyfill-ctype": "*", 52 | "symfony/polyfill-iconv": "*", 53 | "symfony/polyfill-php72": "*" 54 | }, 55 | "scripts": { 56 | "openapi:generate": "bin/openapi > docs/openapi/swagger.yaml", 57 | "lint": "php-cs-fixer fix --dry-run", 58 | "lint:fix": "php-cs-fixer fix", 59 | "auto-scripts": { 60 | "cache:clear": "symfony-cmd", 61 | "assets:install %PUBLIC_DIR%": "symfony-cmd" 62 | }, 63 | "post-install-cmd": [ 64 | "@auto-scripts" 65 | ], 66 | "post-update-cmd": [ 67 | "@auto-scripts" 68 | ] 69 | }, 70 | "conflict": { 71 | "symfony/symfony": "*" 72 | }, 73 | "extra": { 74 | "symfony": { 75 | "allow-contrib": false, 76 | "require": "5.3.*" 77 | } 78 | }, 79 | "require-dev": { 80 | "friendsofphp/php-cs-fixer": "^3.0", 81 | "zircote/swagger-php": "^3.2" 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /config/bundles.php: -------------------------------------------------------------------------------- 1 | ['all' => true], 7 | Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], 8 | Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true], 9 | Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true], 10 | ]; 11 | -------------------------------------------------------------------------------- /config/packages/cache.yaml: -------------------------------------------------------------------------------- 1 | framework: 2 | cache: 3 | # Unique name of your app: used to compute stable namespaces for cache keys. 4 | #prefix_seed: your_vendor_name/app_name 5 | 6 | # The "app" cache stores to the filesystem by default. 7 | # The data in this cache should persist between deploys. 8 | # Other options include: 9 | 10 | # Redis 11 | #app: cache.adapter.redis 12 | #default_redis_provider: redis://localhost 13 | 14 | # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues) 15 | #app: cache.adapter.apcu 16 | 17 | # Namespaced pools use the above "app" backend by default 18 | #pools: 19 | #my.dedicated.cache: null 20 | -------------------------------------------------------------------------------- /config/packages/dev/maker.yaml: -------------------------------------------------------------------------------- 1 | maker: 2 | root_namespace: '%env(resolve:ROOT_NAMESPACE)%' -------------------------------------------------------------------------------- /config/packages/doctrine.yaml: -------------------------------------------------------------------------------- 1 | doctrine: 2 | dbal: 3 | url: '%env(resolve:DATABASE_URL)%' 4 | orm: 5 | auto_generate_proxy_classes: true 6 | naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware 7 | auto_mapping: true 8 | mappings: 9 | Descarga\Subscriber: 10 | is_bundle: false 11 | type: attribute 12 | dir: '%kernel.project_dir%/src/Subscriber/Entity' 13 | prefix: 'Descarga\Subscriber\Entity' 14 | 15 | -------------------------------------------------------------------------------- /config/packages/doctrine_migrations.yaml: -------------------------------------------------------------------------------- 1 | doctrine_migrations: 2 | migrations_paths: 3 | 'DoctrineMigrations': '%kernel.project_dir%/migrations' 4 | enable_profiler: '%kernel.debug%' 5 | -------------------------------------------------------------------------------- /config/packages/framework.yaml: -------------------------------------------------------------------------------- 1 | framework: 2 | secret: '%env(APP_SECRET)%' 3 | http_method_override: false 4 | 5 | session: 6 | handler_id: null 7 | cookie_secure: auto 8 | cookie_samesite: lax 9 | storage_factory_id: session.storage.factory.native 10 | 11 | php_errors: 12 | log: true 13 | 14 | when@test: 15 | framework: 16 | test: true 17 | session: 18 | storage_factory_id: session.storage.factory.mock_file 19 | -------------------------------------------------------------------------------- /config/packages/prod/doctrine.yaml: -------------------------------------------------------------------------------- 1 | doctrine: 2 | orm: 3 | auto_generate_proxy_classes: false 4 | metadata_cache_driver: 5 | type: pool 6 | pool: doctrine.system_cache_pool 7 | query_cache_driver: 8 | type: pool 9 | pool: doctrine.system_cache_pool 10 | result_cache_driver: 11 | type: pool 12 | pool: doctrine.result_cache_pool 13 | 14 | framework: 15 | cache: 16 | pools: 17 | doctrine.result_cache_pool: 18 | adapter: cache.app 19 | doctrine.system_cache_pool: 20 | adapter: cache.system 21 | -------------------------------------------------------------------------------- /config/packages/routing.yaml: -------------------------------------------------------------------------------- 1 | framework: 2 | router: 3 | utf8: true 4 | 5 | when@prod: 6 | framework: 7 | router: 8 | strict_requirements: null 9 | -------------------------------------------------------------------------------- /config/packages/test/doctrine.yaml: -------------------------------------------------------------------------------- 1 | doctrine: 2 | dbal: 3 | # "TEST_TOKEN" is typically set by ParaTest 4 | dbname_suffix: '_test%env(default::TEST_TOKEN)%' 5 | -------------------------------------------------------------------------------- /config/preload.php: -------------------------------------------------------------------------------- 1 | ", 7 | "license": "proprietary", 8 | "private": true, 9 | "dependencies": { 10 | "express": "^4.17.1", 11 | "swagger-ui-express": "^4.1.6", 12 | "yamljs": "^0.3.0" 13 | }, 14 | "scripts": { 15 | "dev": "yarn nodemon -e yaml server.js" 16 | }, 17 | "devDependencies": { 18 | "nodemon": "^2.0.7" 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /docker/swagger/swagger-ui/server.js: -------------------------------------------------------------------------------- 1 | const express = require('express'); 2 | const swaggerUi = require('swagger-ui-express'); 3 | const yaml = require('yamljs'); 4 | 5 | const app = express(); 6 | 7 | const swaggerDocumentJson = yaml.load('/application/openapi/swagger.yaml') 8 | 9 | const options = { 10 | explorer: true, 11 | } 12 | 13 | app.use('/', swaggerUi.serve, swaggerUi.setup(swaggerDocumentJson, options)); 14 | 15 | app.listen(3000, () => { 16 | console.log(`Server stated...`) 17 | }) -------------------------------------------------------------------------------- /docker/swagger/swagger-ui/yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@sindresorhus/is@^0.14.0": 6 | version "0.14.0" 7 | resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea" 8 | integrity sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ== 9 | 10 | "@szmarczak/http-timer@^1.1.2": 11 | version "1.1.2" 12 | resolved "https://registry.yarnpkg.com/@szmarczak/http-timer/-/http-timer-1.1.2.tgz#b1665e2c461a2cd92f4c1bbf50d5454de0d4b421" 13 | integrity sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA== 14 | dependencies: 15 | defer-to-connect "^1.0.1" 16 | 17 | abbrev@1: 18 | version "1.1.1" 19 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" 20 | integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== 21 | 22 | accepts@~1.3.7: 23 | version "1.3.7" 24 | resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.7.tgz#531bc726517a3b2b41f850021c6cc15eaab507cd" 25 | integrity sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA== 26 | dependencies: 27 | mime-types "~2.1.24" 28 | negotiator "0.6.2" 29 | 30 | ansi-align@^3.0.0: 31 | version "3.0.0" 32 | resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-3.0.0.tgz#b536b371cf687caaef236c18d3e21fe3797467cb" 33 | integrity sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw== 34 | dependencies: 35 | string-width "^3.0.0" 36 | 37 | ansi-regex@^4.1.0: 38 | version "4.1.0" 39 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.0.tgz#8b9f8f08cf1acb843756a839ca8c7e3168c51997" 40 | integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg== 41 | 42 | ansi-regex@^5.0.0: 43 | version "5.0.0" 44 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75" 45 | integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg== 46 | 47 | ansi-styles@^4.1.0: 48 | version "4.3.0" 49 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" 50 | integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== 51 | dependencies: 52 | color-convert "^2.0.1" 53 | 54 | anymatch@~3.1.1: 55 | version "3.1.2" 56 | resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" 57 | integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== 58 | dependencies: 59 | normalize-path "^3.0.0" 60 | picomatch "^2.0.4" 61 | 62 | argparse@^1.0.7: 63 | version "1.0.10" 64 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 65 | integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 66 | dependencies: 67 | sprintf-js "~1.0.2" 68 | 69 | array-flatten@1.1.1: 70 | version "1.1.1" 71 | resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" 72 | integrity sha1-ml9pkFGx5wczKPKgCJaLZOopVdI= 73 | 74 | balanced-match@^1.0.0: 75 | version "1.0.2" 76 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" 77 | integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== 78 | 79 | binary-extensions@^2.0.0: 80 | version "2.2.0" 81 | resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" 82 | integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== 83 | 84 | body-parser@1.19.0: 85 | version "1.19.0" 86 | resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a" 87 | integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw== 88 | dependencies: 89 | bytes "3.1.0" 90 | content-type "~1.0.4" 91 | debug "2.6.9" 92 | depd "~1.1.2" 93 | http-errors "1.7.2" 94 | iconv-lite "0.4.24" 95 | on-finished "~2.3.0" 96 | qs "6.7.0" 97 | raw-body "2.4.0" 98 | type-is "~1.6.17" 99 | 100 | boxen@^4.2.0: 101 | version "4.2.0" 102 | resolved "https://registry.yarnpkg.com/boxen/-/boxen-4.2.0.tgz#e411b62357d6d6d36587c8ac3d5d974daa070e64" 103 | integrity sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ== 104 | dependencies: 105 | ansi-align "^3.0.0" 106 | camelcase "^5.3.1" 107 | chalk "^3.0.0" 108 | cli-boxes "^2.2.0" 109 | string-width "^4.1.0" 110 | term-size "^2.1.0" 111 | type-fest "^0.8.1" 112 | widest-line "^3.1.0" 113 | 114 | brace-expansion@^1.1.7: 115 | version "1.1.11" 116 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 117 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 118 | dependencies: 119 | balanced-match "^1.0.0" 120 | concat-map "0.0.1" 121 | 122 | braces@~3.0.2: 123 | version "3.0.2" 124 | resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" 125 | integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== 126 | dependencies: 127 | fill-range "^7.0.1" 128 | 129 | bytes@3.1.0: 130 | version "3.1.0" 131 | resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6" 132 | integrity sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg== 133 | 134 | cacheable-request@^6.0.0: 135 | version "6.1.0" 136 | resolved "https://registry.yarnpkg.com/cacheable-request/-/cacheable-request-6.1.0.tgz#20ffb8bd162ba4be11e9567d823db651052ca912" 137 | integrity sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg== 138 | dependencies: 139 | clone-response "^1.0.2" 140 | get-stream "^5.1.0" 141 | http-cache-semantics "^4.0.0" 142 | keyv "^3.0.0" 143 | lowercase-keys "^2.0.0" 144 | normalize-url "^4.1.0" 145 | responselike "^1.0.2" 146 | 147 | camelcase@^5.3.1: 148 | version "5.3.1" 149 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" 150 | integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== 151 | 152 | chalk@^3.0.0: 153 | version "3.0.0" 154 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" 155 | integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== 156 | dependencies: 157 | ansi-styles "^4.1.0" 158 | supports-color "^7.1.0" 159 | 160 | chokidar@^3.2.2: 161 | version "3.5.1" 162 | resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.1.tgz#ee9ce7bbebd2b79f49f304799d5468e31e14e68a" 163 | integrity sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw== 164 | dependencies: 165 | anymatch "~3.1.1" 166 | braces "~3.0.2" 167 | glob-parent "~5.1.0" 168 | is-binary-path "~2.1.0" 169 | is-glob "~4.0.1" 170 | normalize-path "~3.0.0" 171 | readdirp "~3.5.0" 172 | optionalDependencies: 173 | fsevents "~2.3.1" 174 | 175 | ci-info@^2.0.0: 176 | version "2.0.0" 177 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" 178 | integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== 179 | 180 | cli-boxes@^2.2.0: 181 | version "2.2.1" 182 | resolved "https://registry.yarnpkg.com/cli-boxes/-/cli-boxes-2.2.1.tgz#ddd5035d25094fce220e9cab40a45840a440318f" 183 | integrity sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw== 184 | 185 | clone-response@^1.0.2: 186 | version "1.0.2" 187 | resolved "https://registry.yarnpkg.com/clone-response/-/clone-response-1.0.2.tgz#d1dc973920314df67fbeb94223b4ee350239e96b" 188 | integrity sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws= 189 | dependencies: 190 | mimic-response "^1.0.0" 191 | 192 | color-convert@^2.0.1: 193 | version "2.0.1" 194 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" 195 | integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== 196 | dependencies: 197 | color-name "~1.1.4" 198 | 199 | color-name@~1.1.4: 200 | version "1.1.4" 201 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" 202 | integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== 203 | 204 | concat-map@0.0.1: 205 | version "0.0.1" 206 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 207 | integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= 208 | 209 | configstore@^5.0.1: 210 | version "5.0.1" 211 | resolved "https://registry.yarnpkg.com/configstore/-/configstore-5.0.1.tgz#d365021b5df4b98cdd187d6a3b0e3f6a7cc5ed96" 212 | integrity sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA== 213 | dependencies: 214 | dot-prop "^5.2.0" 215 | graceful-fs "^4.1.2" 216 | make-dir "^3.0.0" 217 | unique-string "^2.0.0" 218 | write-file-atomic "^3.0.0" 219 | xdg-basedir "^4.0.0" 220 | 221 | content-disposition@0.5.3: 222 | version "0.5.3" 223 | resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.3.tgz#e130caf7e7279087c5616c2007d0485698984fbd" 224 | integrity sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g== 225 | dependencies: 226 | safe-buffer "5.1.2" 227 | 228 | content-type@~1.0.4: 229 | version "1.0.4" 230 | resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.4.tgz#e138cc75e040c727b1966fe5e5f8c9aee256fe3b" 231 | integrity sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA== 232 | 233 | cookie-signature@1.0.6: 234 | version "1.0.6" 235 | resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" 236 | integrity sha1-4wOogrNCzD7oylE6eZmXNNqzriw= 237 | 238 | cookie@0.4.0: 239 | version "0.4.0" 240 | resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.0.tgz#beb437e7022b3b6d49019d088665303ebe9c14ba" 241 | integrity sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg== 242 | 243 | crypto-random-string@^2.0.0: 244 | version "2.0.0" 245 | resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" 246 | integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== 247 | 248 | debug@2.6.9, debug@^2.2.0: 249 | version "2.6.9" 250 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 251 | integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== 252 | dependencies: 253 | ms "2.0.0" 254 | 255 | debug@^3.2.6: 256 | version "3.2.7" 257 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" 258 | integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== 259 | dependencies: 260 | ms "^2.1.1" 261 | 262 | decompress-response@^3.3.0: 263 | version "3.3.0" 264 | resolved "https://registry.yarnpkg.com/decompress-response/-/decompress-response-3.3.0.tgz#80a4dd323748384bfa248083622aedec982adff3" 265 | integrity sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M= 266 | dependencies: 267 | mimic-response "^1.0.0" 268 | 269 | deep-extend@^0.6.0: 270 | version "0.6.0" 271 | resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" 272 | integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== 273 | 274 | defer-to-connect@^1.0.1: 275 | version "1.1.3" 276 | resolved "https://registry.yarnpkg.com/defer-to-connect/-/defer-to-connect-1.1.3.tgz#331ae050c08dcf789f8c83a7b81f0ed94f4ac591" 277 | integrity sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ== 278 | 279 | depd@~1.1.2: 280 | version "1.1.2" 281 | resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" 282 | integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= 283 | 284 | destroy@~1.0.4: 285 | version "1.0.4" 286 | resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" 287 | integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= 288 | 289 | dot-prop@^5.2.0: 290 | version "5.3.0" 291 | resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" 292 | integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== 293 | dependencies: 294 | is-obj "^2.0.0" 295 | 296 | duplexer3@^0.1.4: 297 | version "0.1.4" 298 | resolved "https://registry.yarnpkg.com/duplexer3/-/duplexer3-0.1.4.tgz#ee01dd1cac0ed3cbc7fdbea37dc0a8f1ce002ce2" 299 | integrity sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI= 300 | 301 | ee-first@1.1.1: 302 | version "1.1.1" 303 | resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" 304 | integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= 305 | 306 | emoji-regex@^7.0.1: 307 | version "7.0.3" 308 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" 309 | integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== 310 | 311 | emoji-regex@^8.0.0: 312 | version "8.0.0" 313 | resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" 314 | integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== 315 | 316 | encodeurl@~1.0.2: 317 | version "1.0.2" 318 | resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" 319 | integrity sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k= 320 | 321 | end-of-stream@^1.1.0: 322 | version "1.4.4" 323 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" 324 | integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== 325 | dependencies: 326 | once "^1.4.0" 327 | 328 | escape-goat@^2.0.0: 329 | version "2.1.1" 330 | resolved "https://registry.yarnpkg.com/escape-goat/-/escape-goat-2.1.1.tgz#1b2dc77003676c457ec760b2dc68edb648188675" 331 | integrity sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q== 332 | 333 | escape-html@~1.0.3: 334 | version "1.0.3" 335 | resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" 336 | integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= 337 | 338 | etag@~1.8.1: 339 | version "1.8.1" 340 | resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" 341 | integrity sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc= 342 | 343 | express@^4.17.1: 344 | version "4.17.1" 345 | resolved "https://registry.yarnpkg.com/express/-/express-4.17.1.tgz#4491fc38605cf51f8629d39c2b5d026f98a4c134" 346 | integrity sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g== 347 | dependencies: 348 | accepts "~1.3.7" 349 | array-flatten "1.1.1" 350 | body-parser "1.19.0" 351 | content-disposition "0.5.3" 352 | content-type "~1.0.4" 353 | cookie "0.4.0" 354 | cookie-signature "1.0.6" 355 | debug "2.6.9" 356 | depd "~1.1.2" 357 | encodeurl "~1.0.2" 358 | escape-html "~1.0.3" 359 | etag "~1.8.1" 360 | finalhandler "~1.1.2" 361 | fresh "0.5.2" 362 | merge-descriptors "1.0.1" 363 | methods "~1.1.2" 364 | on-finished "~2.3.0" 365 | parseurl "~1.3.3" 366 | path-to-regexp "0.1.7" 367 | proxy-addr "~2.0.5" 368 | qs "6.7.0" 369 | range-parser "~1.2.1" 370 | safe-buffer "5.1.2" 371 | send "0.17.1" 372 | serve-static "1.14.1" 373 | setprototypeof "1.1.1" 374 | statuses "~1.5.0" 375 | type-is "~1.6.18" 376 | utils-merge "1.0.1" 377 | vary "~1.1.2" 378 | 379 | fill-range@^7.0.1: 380 | version "7.0.1" 381 | resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" 382 | integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== 383 | dependencies: 384 | to-regex-range "^5.0.1" 385 | 386 | finalhandler@~1.1.2: 387 | version "1.1.2" 388 | resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" 389 | integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== 390 | dependencies: 391 | debug "2.6.9" 392 | encodeurl "~1.0.2" 393 | escape-html "~1.0.3" 394 | on-finished "~2.3.0" 395 | parseurl "~1.3.3" 396 | statuses "~1.5.0" 397 | unpipe "~1.0.0" 398 | 399 | forwarded@~0.1.2: 400 | version "0.1.2" 401 | resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.1.2.tgz#98c23dab1175657b8c0573e8ceccd91b0ff18c84" 402 | integrity sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ= 403 | 404 | fresh@0.5.2: 405 | version "0.5.2" 406 | resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" 407 | integrity sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac= 408 | 409 | fs.realpath@^1.0.0: 410 | version "1.0.0" 411 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 412 | integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= 413 | 414 | fsevents@~2.3.1: 415 | version "2.3.2" 416 | resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" 417 | integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== 418 | 419 | get-stream@^4.1.0: 420 | version "4.1.0" 421 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" 422 | integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== 423 | dependencies: 424 | pump "^3.0.0" 425 | 426 | get-stream@^5.1.0: 427 | version "5.2.0" 428 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3" 429 | integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA== 430 | dependencies: 431 | pump "^3.0.0" 432 | 433 | glob-parent@~5.1.0: 434 | version "5.1.2" 435 | resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" 436 | integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== 437 | dependencies: 438 | is-glob "^4.0.1" 439 | 440 | glob@^7.0.5: 441 | version "7.1.7" 442 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" 443 | integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== 444 | dependencies: 445 | fs.realpath "^1.0.0" 446 | inflight "^1.0.4" 447 | inherits "2" 448 | minimatch "^3.0.4" 449 | once "^1.3.0" 450 | path-is-absolute "^1.0.0" 451 | 452 | global-dirs@^2.0.1: 453 | version "2.1.0" 454 | resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-2.1.0.tgz#e9046a49c806ff04d6c1825e196c8f0091e8df4d" 455 | integrity sha512-MG6kdOUh/xBnyo9cJFeIKkLEc1AyFq42QTU4XiX51i2NEdxLxLWXIjEjmqKeSuKR7pAZjTqUVoT2b2huxVLgYQ== 456 | dependencies: 457 | ini "1.3.7" 458 | 459 | got@^9.6.0: 460 | version "9.6.0" 461 | resolved "https://registry.yarnpkg.com/got/-/got-9.6.0.tgz#edf45e7d67f99545705de1f7bbeeeb121765ed85" 462 | integrity sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q== 463 | dependencies: 464 | "@sindresorhus/is" "^0.14.0" 465 | "@szmarczak/http-timer" "^1.1.2" 466 | cacheable-request "^6.0.0" 467 | decompress-response "^3.3.0" 468 | duplexer3 "^0.1.4" 469 | get-stream "^4.1.0" 470 | lowercase-keys "^1.0.1" 471 | mimic-response "^1.0.1" 472 | p-cancelable "^1.0.0" 473 | to-readable-stream "^1.0.0" 474 | url-parse-lax "^3.0.0" 475 | 476 | graceful-fs@^4.1.2: 477 | version "4.2.6" 478 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.6.tgz#ff040b2b0853b23c3d31027523706f1885d76bee" 479 | integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ== 480 | 481 | has-flag@^3.0.0: 482 | version "3.0.0" 483 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 484 | integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= 485 | 486 | has-flag@^4.0.0: 487 | version "4.0.0" 488 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" 489 | integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== 490 | 491 | has-yarn@^2.1.0: 492 | version "2.1.0" 493 | resolved "https://registry.yarnpkg.com/has-yarn/-/has-yarn-2.1.0.tgz#137e11354a7b5bf11aa5cb649cf0c6f3ff2b2e77" 494 | integrity sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw== 495 | 496 | http-cache-semantics@^4.0.0: 497 | version "4.1.0" 498 | resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz#49e91c5cbf36c9b94bcfcd71c23d5249ec74e390" 499 | integrity sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ== 500 | 501 | http-errors@1.7.2: 502 | version "1.7.2" 503 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f" 504 | integrity sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg== 505 | dependencies: 506 | depd "~1.1.2" 507 | inherits "2.0.3" 508 | setprototypeof "1.1.1" 509 | statuses ">= 1.5.0 < 2" 510 | toidentifier "1.0.0" 511 | 512 | http-errors@~1.7.2: 513 | version "1.7.3" 514 | resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.7.3.tgz#6c619e4f9c60308c38519498c14fbb10aacebb06" 515 | integrity sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw== 516 | dependencies: 517 | depd "~1.1.2" 518 | inherits "2.0.4" 519 | setprototypeof "1.1.1" 520 | statuses ">= 1.5.0 < 2" 521 | toidentifier "1.0.0" 522 | 523 | iconv-lite@0.4.24: 524 | version "0.4.24" 525 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" 526 | integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== 527 | dependencies: 528 | safer-buffer ">= 2.1.2 < 3" 529 | 530 | ignore-by-default@^1.0.1: 531 | version "1.0.1" 532 | resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" 533 | integrity sha1-SMptcvbGo68Aqa1K5odr44ieKwk= 534 | 535 | import-lazy@^2.1.0: 536 | version "2.1.0" 537 | resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43" 538 | integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM= 539 | 540 | imurmurhash@^0.1.4: 541 | version "0.1.4" 542 | resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" 543 | integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= 544 | 545 | inflight@^1.0.4: 546 | version "1.0.6" 547 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 548 | integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= 549 | dependencies: 550 | once "^1.3.0" 551 | wrappy "1" 552 | 553 | inherits@2, inherits@2.0.4: 554 | version "2.0.4" 555 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 556 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 557 | 558 | inherits@2.0.3: 559 | version "2.0.3" 560 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 561 | integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4= 562 | 563 | ini@1.3.7: 564 | version "1.3.7" 565 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.7.tgz#a09363e1911972ea16d7a8851005d84cf09a9a84" 566 | integrity sha512-iKpRpXP+CrP2jyrxvg1kMUpXDyRUFDWurxbnVT1vQPx+Wz9uCYsMIqYuSBLV+PAaZG/d7kRLKRFc9oDMsH+mFQ== 567 | 568 | ini@~1.3.0: 569 | version "1.3.8" 570 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" 571 | integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== 572 | 573 | ipaddr.js@1.9.1: 574 | version "1.9.1" 575 | resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" 576 | integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== 577 | 578 | is-binary-path@~2.1.0: 579 | version "2.1.0" 580 | resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" 581 | integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== 582 | dependencies: 583 | binary-extensions "^2.0.0" 584 | 585 | is-ci@^2.0.0: 586 | version "2.0.0" 587 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" 588 | integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== 589 | dependencies: 590 | ci-info "^2.0.0" 591 | 592 | is-extglob@^2.1.1: 593 | version "2.1.1" 594 | resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" 595 | integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= 596 | 597 | is-fullwidth-code-point@^2.0.0: 598 | version "2.0.0" 599 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 600 | integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= 601 | 602 | is-fullwidth-code-point@^3.0.0: 603 | version "3.0.0" 604 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" 605 | integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== 606 | 607 | is-glob@^4.0.1, is-glob@~4.0.1: 608 | version "4.0.1" 609 | resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" 610 | integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== 611 | dependencies: 612 | is-extglob "^2.1.1" 613 | 614 | is-installed-globally@^0.3.1: 615 | version "0.3.2" 616 | resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.3.2.tgz#fd3efa79ee670d1187233182d5b0a1dd00313141" 617 | integrity sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g== 618 | dependencies: 619 | global-dirs "^2.0.1" 620 | is-path-inside "^3.0.1" 621 | 622 | is-npm@^4.0.0: 623 | version "4.0.0" 624 | resolved "https://registry.yarnpkg.com/is-npm/-/is-npm-4.0.0.tgz#c90dd8380696df87a7a6d823c20d0b12bbe3c84d" 625 | integrity sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig== 626 | 627 | is-number@^7.0.0: 628 | version "7.0.0" 629 | resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" 630 | integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== 631 | 632 | is-obj@^2.0.0: 633 | version "2.0.0" 634 | resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" 635 | integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== 636 | 637 | is-path-inside@^3.0.1: 638 | version "3.0.3" 639 | resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" 640 | integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== 641 | 642 | is-typedarray@^1.0.0: 643 | version "1.0.0" 644 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 645 | integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= 646 | 647 | is-yarn-global@^0.3.0: 648 | version "0.3.0" 649 | resolved "https://registry.yarnpkg.com/is-yarn-global/-/is-yarn-global-0.3.0.tgz#d502d3382590ea3004893746754c89139973e232" 650 | integrity sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw== 651 | 652 | json-buffer@3.0.0: 653 | version "3.0.0" 654 | resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.0.tgz#5b1f397afc75d677bde8bcfc0e47e1f9a3d9a898" 655 | integrity sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg= 656 | 657 | keyv@^3.0.0: 658 | version "3.1.0" 659 | resolved "https://registry.yarnpkg.com/keyv/-/keyv-3.1.0.tgz#ecc228486f69991e49e9476485a5be1e8fc5c4d9" 660 | integrity sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA== 661 | dependencies: 662 | json-buffer "3.0.0" 663 | 664 | latest-version@^5.0.0: 665 | version "5.1.0" 666 | resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-5.1.0.tgz#119dfe908fe38d15dfa43ecd13fa12ec8832face" 667 | integrity sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA== 668 | dependencies: 669 | package-json "^6.3.0" 670 | 671 | lowercase-keys@^1.0.0, lowercase-keys@^1.0.1: 672 | version "1.0.1" 673 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" 674 | integrity sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA== 675 | 676 | lowercase-keys@^2.0.0: 677 | version "2.0.0" 678 | resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-2.0.0.tgz#2603e78b7b4b0006cbca2fbcc8a3202558ac9479" 679 | integrity sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA== 680 | 681 | make-dir@^3.0.0: 682 | version "3.1.0" 683 | resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" 684 | integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== 685 | dependencies: 686 | semver "^6.0.0" 687 | 688 | media-typer@0.3.0: 689 | version "0.3.0" 690 | resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" 691 | integrity sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g= 692 | 693 | merge-descriptors@1.0.1: 694 | version "1.0.1" 695 | resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" 696 | integrity sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E= 697 | 698 | methods@~1.1.2: 699 | version "1.1.2" 700 | resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" 701 | integrity sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4= 702 | 703 | mime-db@1.47.0: 704 | version "1.47.0" 705 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.47.0.tgz#8cb313e59965d3c05cfbf898915a267af46a335c" 706 | integrity sha512-QBmA/G2y+IfeS4oktet3qRZ+P5kPhCKRXxXnQEudYqUaEioAU1/Lq2us3D/t1Jfo4hE9REQPrbB7K5sOczJVIw== 707 | 708 | mime-types@~2.1.24: 709 | version "2.1.30" 710 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.30.tgz#6e7be8b4c479825f85ed6326695db73f9305d62d" 711 | integrity sha512-crmjA4bLtR8m9qLpHvgxSChT+XoSlZi8J4n/aIdn3z92e/U47Z0V/yl+Wh9W046GgFVAmoNR/fmdbZYcSSIUeg== 712 | dependencies: 713 | mime-db "1.47.0" 714 | 715 | mime@1.6.0: 716 | version "1.6.0" 717 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" 718 | integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== 719 | 720 | mimic-response@^1.0.0, mimic-response@^1.0.1: 721 | version "1.0.1" 722 | resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-1.0.1.tgz#4923538878eef42063cb8a3e3b0798781487ab1b" 723 | integrity sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ== 724 | 725 | minimatch@^3.0.4: 726 | version "3.0.4" 727 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 728 | integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== 729 | dependencies: 730 | brace-expansion "^1.1.7" 731 | 732 | minimist@^1.2.0: 733 | version "1.2.5" 734 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" 735 | integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== 736 | 737 | ms@2.0.0: 738 | version "2.0.0" 739 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 740 | integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= 741 | 742 | ms@2.1.1: 743 | version "2.1.1" 744 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" 745 | integrity sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg== 746 | 747 | ms@^2.1.1: 748 | version "2.1.3" 749 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" 750 | integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== 751 | 752 | negotiator@0.6.2: 753 | version "0.6.2" 754 | resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" 755 | integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== 756 | 757 | nodemon@^2.0.7: 758 | version "2.0.7" 759 | resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-2.0.7.tgz#6f030a0a0ebe3ea1ba2a38f71bf9bab4841ced32" 760 | integrity sha512-XHzK69Awgnec9UzHr1kc8EomQh4sjTQ8oRf8TsGrSmHDx9/UmiGG9E/mM3BuTfNeFwdNBvrqQq/RHL0xIeyFOA== 761 | dependencies: 762 | chokidar "^3.2.2" 763 | debug "^3.2.6" 764 | ignore-by-default "^1.0.1" 765 | minimatch "^3.0.4" 766 | pstree.remy "^1.1.7" 767 | semver "^5.7.1" 768 | supports-color "^5.5.0" 769 | touch "^3.1.0" 770 | undefsafe "^2.0.3" 771 | update-notifier "^4.1.0" 772 | 773 | nopt@~1.0.10: 774 | version "1.0.10" 775 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" 776 | integrity sha1-bd0hvSoxQXuScn3Vhfim83YI6+4= 777 | dependencies: 778 | abbrev "1" 779 | 780 | normalize-path@^3.0.0, normalize-path@~3.0.0: 781 | version "3.0.0" 782 | resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" 783 | integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== 784 | 785 | normalize-url@^4.1.0: 786 | version "4.5.0" 787 | resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-4.5.0.tgz#453354087e6ca96957bd8f5baf753f5982142129" 788 | integrity sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ== 789 | 790 | on-finished@~2.3.0: 791 | version "2.3.0" 792 | resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" 793 | integrity sha1-IPEzZIGwg811M3mSoWlxqi2QaUc= 794 | dependencies: 795 | ee-first "1.1.1" 796 | 797 | once@^1.3.0, once@^1.3.1, once@^1.4.0: 798 | version "1.4.0" 799 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 800 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= 801 | dependencies: 802 | wrappy "1" 803 | 804 | p-cancelable@^1.0.0: 805 | version "1.1.0" 806 | resolved "https://registry.yarnpkg.com/p-cancelable/-/p-cancelable-1.1.0.tgz#d078d15a3af409220c886f1d9a0ca2e441ab26cc" 807 | integrity sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw== 808 | 809 | package-json@^6.3.0: 810 | version "6.5.0" 811 | resolved "https://registry.yarnpkg.com/package-json/-/package-json-6.5.0.tgz#6feedaca35e75725876d0b0e64974697fed145b0" 812 | integrity sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ== 813 | dependencies: 814 | got "^9.6.0" 815 | registry-auth-token "^4.0.0" 816 | registry-url "^5.0.0" 817 | semver "^6.2.0" 818 | 819 | parseurl@~1.3.3: 820 | version "1.3.3" 821 | resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" 822 | integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== 823 | 824 | path-is-absolute@^1.0.0: 825 | version "1.0.1" 826 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 827 | integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= 828 | 829 | path-to-regexp@0.1.7: 830 | version "0.1.7" 831 | resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" 832 | integrity sha1-32BBeABfUi8V60SQ5yR6G/qmf4w= 833 | 834 | picomatch@^2.0.4, picomatch@^2.2.1: 835 | version "2.3.0" 836 | resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" 837 | integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== 838 | 839 | prepend-http@^2.0.0: 840 | version "2.0.0" 841 | resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897" 842 | integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc= 843 | 844 | proxy-addr@~2.0.5: 845 | version "2.0.6" 846 | resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.6.tgz#fdc2336505447d3f2f2c638ed272caf614bbb2bf" 847 | integrity sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw== 848 | dependencies: 849 | forwarded "~0.1.2" 850 | ipaddr.js "1.9.1" 851 | 852 | pstree.remy@^1.1.7: 853 | version "1.1.8" 854 | resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.8.tgz#c242224f4a67c21f686839bbdb4ac282b8373d3a" 855 | integrity sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w== 856 | 857 | pump@^3.0.0: 858 | version "3.0.0" 859 | resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" 860 | integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== 861 | dependencies: 862 | end-of-stream "^1.1.0" 863 | once "^1.3.1" 864 | 865 | pupa@^2.0.1: 866 | version "2.1.1" 867 | resolved "https://registry.yarnpkg.com/pupa/-/pupa-2.1.1.tgz#f5e8fd4afc2c5d97828faa523549ed8744a20d62" 868 | integrity sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A== 869 | dependencies: 870 | escape-goat "^2.0.0" 871 | 872 | qs@6.7.0: 873 | version "6.7.0" 874 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc" 875 | integrity sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ== 876 | 877 | range-parser@~1.2.1: 878 | version "1.2.1" 879 | resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" 880 | integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== 881 | 882 | raw-body@2.4.0: 883 | version "2.4.0" 884 | resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332" 885 | integrity sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q== 886 | dependencies: 887 | bytes "3.1.0" 888 | http-errors "1.7.2" 889 | iconv-lite "0.4.24" 890 | unpipe "1.0.0" 891 | 892 | rc@^1.2.8: 893 | version "1.2.8" 894 | resolved "https://registry.yarnpkg.com/rc/-/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed" 895 | integrity sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw== 896 | dependencies: 897 | deep-extend "^0.6.0" 898 | ini "~1.3.0" 899 | minimist "^1.2.0" 900 | strip-json-comments "~2.0.1" 901 | 902 | readdirp@~3.5.0: 903 | version "3.5.0" 904 | resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.5.0.tgz#9ba74c019b15d365278d2e91bb8c48d7b4d42c9e" 905 | integrity sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ== 906 | dependencies: 907 | picomatch "^2.2.1" 908 | 909 | registry-auth-token@^4.0.0: 910 | version "4.2.1" 911 | resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-4.2.1.tgz#6d7b4006441918972ccd5fedcd41dc322c79b250" 912 | integrity sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw== 913 | dependencies: 914 | rc "^1.2.8" 915 | 916 | registry-url@^5.0.0: 917 | version "5.1.0" 918 | resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-5.1.0.tgz#e98334b50d5434b81136b44ec638d9c2009c5009" 919 | integrity sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw== 920 | dependencies: 921 | rc "^1.2.8" 922 | 923 | responselike@^1.0.2: 924 | version "1.0.2" 925 | resolved "https://registry.yarnpkg.com/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" 926 | integrity sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec= 927 | dependencies: 928 | lowercase-keys "^1.0.0" 929 | 930 | safe-buffer@5.1.2: 931 | version "5.1.2" 932 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 933 | integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== 934 | 935 | "safer-buffer@>= 2.1.2 < 3": 936 | version "2.1.2" 937 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 938 | integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== 939 | 940 | semver-diff@^3.1.1: 941 | version "3.1.1" 942 | resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" 943 | integrity sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg== 944 | dependencies: 945 | semver "^6.3.0" 946 | 947 | semver@^5.7.1: 948 | version "5.7.1" 949 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" 950 | integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== 951 | 952 | semver@^6.0.0, semver@^6.2.0, semver@^6.3.0: 953 | version "6.3.0" 954 | resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" 955 | integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== 956 | 957 | send@0.17.1: 958 | version "0.17.1" 959 | resolved "https://registry.yarnpkg.com/send/-/send-0.17.1.tgz#c1d8b059f7900f7466dd4938bdc44e11ddb376c8" 960 | integrity sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg== 961 | dependencies: 962 | debug "2.6.9" 963 | depd "~1.1.2" 964 | destroy "~1.0.4" 965 | encodeurl "~1.0.2" 966 | escape-html "~1.0.3" 967 | etag "~1.8.1" 968 | fresh "0.5.2" 969 | http-errors "~1.7.2" 970 | mime "1.6.0" 971 | ms "2.1.1" 972 | on-finished "~2.3.0" 973 | range-parser "~1.2.1" 974 | statuses "~1.5.0" 975 | 976 | serve-static@1.14.1: 977 | version "1.14.1" 978 | resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" 979 | integrity sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg== 980 | dependencies: 981 | encodeurl "~1.0.2" 982 | escape-html "~1.0.3" 983 | parseurl "~1.3.3" 984 | send "0.17.1" 985 | 986 | setprototypeof@1.1.1: 987 | version "1.1.1" 988 | resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.1.tgz#7e95acb24aa92f5885e0abef5ba131330d4ae683" 989 | integrity sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw== 990 | 991 | signal-exit@^3.0.2: 992 | version "3.0.3" 993 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c" 994 | integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== 995 | 996 | sprintf-js@~1.0.2: 997 | version "1.0.3" 998 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 999 | integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= 1000 | 1001 | "statuses@>= 1.5.0 < 2", statuses@~1.5.0: 1002 | version "1.5.0" 1003 | resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" 1004 | integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow= 1005 | 1006 | string-width@^3.0.0: 1007 | version "3.1.0" 1008 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" 1009 | integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== 1010 | dependencies: 1011 | emoji-regex "^7.0.1" 1012 | is-fullwidth-code-point "^2.0.0" 1013 | strip-ansi "^5.1.0" 1014 | 1015 | string-width@^4.0.0, string-width@^4.1.0: 1016 | version "4.2.2" 1017 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.2.tgz#dafd4f9559a7585cfba529c6a0a4f73488ebd4c5" 1018 | integrity sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA== 1019 | dependencies: 1020 | emoji-regex "^8.0.0" 1021 | is-fullwidth-code-point "^3.0.0" 1022 | strip-ansi "^6.0.0" 1023 | 1024 | strip-ansi@^5.1.0: 1025 | version "5.2.0" 1026 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" 1027 | integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== 1028 | dependencies: 1029 | ansi-regex "^4.1.0" 1030 | 1031 | strip-ansi@^6.0.0: 1032 | version "6.0.0" 1033 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.0.tgz#0b1571dd7669ccd4f3e06e14ef1eed26225ae532" 1034 | integrity sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w== 1035 | dependencies: 1036 | ansi-regex "^5.0.0" 1037 | 1038 | strip-json-comments@~2.0.1: 1039 | version "2.0.1" 1040 | resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" 1041 | integrity sha1-PFMZQukIwml8DsNEhYwobHygpgo= 1042 | 1043 | supports-color@^5.5.0: 1044 | version "5.5.0" 1045 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 1046 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 1047 | dependencies: 1048 | has-flag "^3.0.0" 1049 | 1050 | supports-color@^7.1.0: 1051 | version "7.2.0" 1052 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" 1053 | integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== 1054 | dependencies: 1055 | has-flag "^4.0.0" 1056 | 1057 | swagger-ui-dist@^3.18.1: 1058 | version "3.49.0" 1059 | resolved "https://registry.yarnpkg.com/swagger-ui-dist/-/swagger-ui-dist-3.49.0.tgz#8915df662b74a4dbc9583cd6d3d726c3910e3b33" 1060 | integrity sha512-R1+eT16XNP1bBLfacISifZAkFJlpwvWsS2vVurF5pbIFZnmCasD/hj+9r/q7urYdQyb0B6v11mDnuYU7rUpfQg== 1061 | 1062 | swagger-ui-express@^4.1.6: 1063 | version "4.1.6" 1064 | resolved "https://registry.yarnpkg.com/swagger-ui-express/-/swagger-ui-express-4.1.6.tgz#682294af3d5c70f74a1fa4d6a9b503a9ee55ea82" 1065 | integrity sha512-Xs2BGGudvDBtL7RXcYtNvHsFtP1DBFPMJFRxHe5ez/VG/rzVOEjazJOOSc/kSCyxreCTKfJrII6MJlL9a6t8vw== 1066 | dependencies: 1067 | swagger-ui-dist "^3.18.1" 1068 | 1069 | term-size@^2.1.0: 1070 | version "2.2.1" 1071 | resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.2.1.tgz#2a6a54840432c2fb6320fea0f415531e90189f54" 1072 | integrity sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg== 1073 | 1074 | to-readable-stream@^1.0.0: 1075 | version "1.0.0" 1076 | resolved "https://registry.yarnpkg.com/to-readable-stream/-/to-readable-stream-1.0.0.tgz#ce0aa0c2f3df6adf852efb404a783e77c0475771" 1077 | integrity sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q== 1078 | 1079 | to-regex-range@^5.0.1: 1080 | version "5.0.1" 1081 | resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" 1082 | integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== 1083 | dependencies: 1084 | is-number "^7.0.0" 1085 | 1086 | toidentifier@1.0.0: 1087 | version "1.0.0" 1088 | resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553" 1089 | integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw== 1090 | 1091 | touch@^3.1.0: 1092 | version "3.1.0" 1093 | resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b" 1094 | integrity sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA== 1095 | dependencies: 1096 | nopt "~1.0.10" 1097 | 1098 | type-fest@^0.8.1: 1099 | version "0.8.1" 1100 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" 1101 | integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== 1102 | 1103 | type-is@~1.6.17, type-is@~1.6.18: 1104 | version "1.6.18" 1105 | resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" 1106 | integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== 1107 | dependencies: 1108 | media-typer "0.3.0" 1109 | mime-types "~2.1.24" 1110 | 1111 | typedarray-to-buffer@^3.1.5: 1112 | version "3.1.5" 1113 | resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" 1114 | integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== 1115 | dependencies: 1116 | is-typedarray "^1.0.0" 1117 | 1118 | undefsafe@^2.0.3: 1119 | version "2.0.3" 1120 | resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.3.tgz#6b166e7094ad46313b2202da7ecc2cd7cc6e7aae" 1121 | integrity sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A== 1122 | dependencies: 1123 | debug "^2.2.0" 1124 | 1125 | unique-string@^2.0.0: 1126 | version "2.0.0" 1127 | resolved "https://registry.yarnpkg.com/unique-string/-/unique-string-2.0.0.tgz#39c6451f81afb2749de2b233e3f7c5e8843bd89d" 1128 | integrity sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg== 1129 | dependencies: 1130 | crypto-random-string "^2.0.0" 1131 | 1132 | unpipe@1.0.0, unpipe@~1.0.0: 1133 | version "1.0.0" 1134 | resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" 1135 | integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw= 1136 | 1137 | update-notifier@^4.1.0: 1138 | version "4.1.3" 1139 | resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-4.1.3.tgz#be86ee13e8ce48fb50043ff72057b5bd598e1ea3" 1140 | integrity sha512-Yld6Z0RyCYGB6ckIjffGOSOmHXj1gMeE7aROz4MG+XMkmixBX4jUngrGXNYz7wPKBmtoD4MnBa2Anu7RSKht/A== 1141 | dependencies: 1142 | boxen "^4.2.0" 1143 | chalk "^3.0.0" 1144 | configstore "^5.0.1" 1145 | has-yarn "^2.1.0" 1146 | import-lazy "^2.1.0" 1147 | is-ci "^2.0.0" 1148 | is-installed-globally "^0.3.1" 1149 | is-npm "^4.0.0" 1150 | is-yarn-global "^0.3.0" 1151 | latest-version "^5.0.0" 1152 | pupa "^2.0.1" 1153 | semver-diff "^3.1.1" 1154 | xdg-basedir "^4.0.0" 1155 | 1156 | url-parse-lax@^3.0.0: 1157 | version "3.0.0" 1158 | resolved "https://registry.yarnpkg.com/url-parse-lax/-/url-parse-lax-3.0.0.tgz#16b5cafc07dbe3676c1b1999177823d6503acb0c" 1159 | integrity sha1-FrXK/Afb42dsGxmZF3gj1lA6yww= 1160 | dependencies: 1161 | prepend-http "^2.0.0" 1162 | 1163 | utils-merge@1.0.1: 1164 | version "1.0.1" 1165 | resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" 1166 | integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= 1167 | 1168 | vary@~1.1.2: 1169 | version "1.1.2" 1170 | resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" 1171 | integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= 1172 | 1173 | widest-line@^3.1.0: 1174 | version "3.1.0" 1175 | resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca" 1176 | integrity sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg== 1177 | dependencies: 1178 | string-width "^4.0.0" 1179 | 1180 | wrappy@1: 1181 | version "1.0.2" 1182 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1183 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= 1184 | 1185 | write-file-atomic@^3.0.0: 1186 | version "3.0.3" 1187 | resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" 1188 | integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== 1189 | dependencies: 1190 | imurmurhash "^0.1.4" 1191 | is-typedarray "^1.0.0" 1192 | signal-exit "^3.0.2" 1193 | typedarray-to-buffer "^3.1.5" 1194 | 1195 | xdg-basedir@^4.0.0: 1196 | version "4.0.0" 1197 | resolved "https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz#4bc8d9984403696225ef83a1573cbbcb4e79db13" 1198 | integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== 1199 | 1200 | yamljs@^0.3.0: 1201 | version "0.3.0" 1202 | resolved "https://registry.yarnpkg.com/yamljs/-/yamljs-0.3.0.tgz#dc060bf267447b39f7304e9b2bfbe8b5a7ddb03b" 1203 | integrity sha512-C/FsVVhht4iPQYXOInoxUM/1ELSf9EsgKH34FofQOp6hwCPrW4vG4w5++TED3xRUo8gD7l0P1J1dLlDYzODsTQ== 1204 | dependencies: 1205 | argparse "^1.0.7" 1206 | glob "^7.0.5" 1207 | -------------------------------------------------------------------------------- /docs/arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alefcastelo/php-architecture-boilerplate/9e300e2b99e70effb10ea1641bc95191b5c80fbb/docs/arch.png -------------------------------------------------------------------------------- /docs/dataflow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alefcastelo/php-architecture-boilerplate/9e300e2b99e70effb10ea1641bc95191b5c80fbb/docs/dataflow.png -------------------------------------------------------------------------------- /docs/gRPC.md: -------------------------------------------------------------------------------- 1 | ```shell 2 | protoc -I=. config/proto/*.proto --php_out=./grpc --grpc_out=./grpc --plugin=protoc-gen-grpc=/usr/local/bin/grpc_php_plugin 3 | protoc -I=. config/proto/*.proto --go_out=plugins=grpc:pb 4 | ``` -------------------------------------------------------------------------------- /docs/openapi/swagger.yaml: -------------------------------------------------------------------------------- 1 | openapi: 3.0.0 2 | info: 3 | title: 'Descarga API' 4 | version: '0.1' 5 | servers: 6 | - 7 | url: 'http://localhost:8000' 8 | description: Local 9 | paths: 10 | /graphql: 11 | post: 12 | tags: 13 | - GraphQL 14 | summary: 'Subscriber Create' 15 | requestBody: 16 | description: 'Input graphql query format' 17 | responses: 18 | '200': 19 | description: Ok 20 | /: 21 | get: 22 | tags: 23 | - App 24 | summary: 'Subscriber Create' 25 | responses: 26 | '200': 27 | description: Ok 28 | /subscribers: 29 | get: 30 | tags: 31 | - Subscriber 32 | summary: 'Subscriber List' 33 | responses: 34 | '200': 35 | description: Created 36 | content: 37 | application/json: 38 | schema: 39 | $ref: '#/components/schemas/SubscriberListOutput' 40 | post: 41 | tags: 42 | - Subscriber 43 | summary: 'Subscriber Create' 44 | requestBody: 45 | description: 'Input data format' 46 | content: 47 | application/json: 48 | schema: 49 | $ref: '#/components/schemas/SubscriberCreateInput' 50 | responses: 51 | '201': 52 | description: Created 53 | content: 54 | application/json: 55 | schema: 56 | $ref: '#/components/schemas/SubscriberFullOutput' 57 | '/subscribers/{id}': 58 | get: 59 | tags: 60 | - Subscriber 61 | summary: 'Subscriber Retrieve' 62 | responses: 63 | '200': 64 | description: Ok 65 | content: 66 | application/json: 67 | schema: 68 | $ref: '#/components/schemas/SubscriberFullOutput' 69 | put: 70 | tags: 71 | - Subscriber 72 | summary: 'Subscriber Update' 73 | requestBody: 74 | description: 'Input data format' 75 | content: 76 | application/json: 77 | schema: 78 | $ref: '#/components/schemas/SubscriberUpdateInput' 79 | responses: 80 | '200': 81 | description: Updated 82 | content: 83 | application/json: 84 | schema: 85 | $ref: '#/components/schemas/SubscriberFullOutput' 86 | components: 87 | schemas: 88 | SubscriberCreateInput: 89 | required: 90 | - firstName 91 | - lastName 92 | - email 93 | properties: 94 | firstName: 95 | example: Alef 96 | lastName: 97 | example: Castelo 98 | email: 99 | example: alefaraujocastelo@gmail.com 100 | type: object 101 | SubscriberUpdateInput: 102 | required: 103 | - firstName 104 | - lastName 105 | properties: 106 | firstName: 107 | example: Alef 108 | lastName: 109 | example: Castelo 110 | type: object 111 | SubscriberFullOutput: 112 | properties: 113 | id: 114 | type: integer 115 | example: Alef 116 | firstName: 117 | type: string 118 | example: Alef 119 | lastName: 120 | type: string 121 | example: Castelo 122 | email: 123 | type: string 124 | example: alefaraujocastelo@gmail.com 125 | type: object 126 | SubscriberListOutput: 127 | properties: 128 | items: 129 | type: array 130 | items: 131 | $ref: '#/components/schemas/SubscriberPartialOutput' 132 | type: object 133 | SubscriberPartialOutput: 134 | properties: 135 | id: 136 | type: integer 137 | example: Alef 138 | firstName: 139 | type: string 140 | example: Alef 141 | lastName: 142 | type: string 143 | example: Castelo 144 | type: object 145 | tags: 146 | - 147 | name: App 148 | - 149 | name: GraphQL 150 | - 151 | name: Subscriber 152 | -------------------------------------------------------------------------------- /migrations/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alefcastelo/php-architecture-boilerplate/9e300e2b99e70effb10ea1641bc95191b5c80fbb/migrations/.gitignore -------------------------------------------------------------------------------- /protos/subscriber.proto: -------------------------------------------------------------------------------- 1 | syntax = "proto3"; 2 | 3 | option php_namespace = "Descarga\\gRPC\\Generated"; 4 | 5 | service Subscriber { 6 | rpc SubscriberCreate (SubscriberCreateRequest) returns (SubscriberOutputReply) {} 7 | rpc SubscriberRetrieve (SubscriberRetrieveRequest) returns (SubscriberOutputReply) {} 8 | } 9 | 10 | message SubscriberRetrieveRequest { 11 | int32 id = 1; 12 | } 13 | 14 | message SubscriberCreateRequest { 15 | string firstName = 1; 16 | string lastName = 2; 17 | string email = 3; 18 | } 19 | 20 | message SubscriberOutputReply { 21 | int32 id = 1; 22 | string firstName = 2; 23 | string lastName = 3; 24 | string email = 4; 25 | } -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | has(GraphQLResolverContainer::class)) { 18 | return; 19 | } 20 | 21 | $definition = $container->findDefinition(GraphQLResolverContainer::class); 22 | $taggedServices = $container->findTaggedServiceIds('graphql.resolvers'); 23 | 24 | foreach ($taggedServices as $id => $tags) { 25 | if (!is_a($id, Resolver::class, true)) { 26 | continue; 27 | } 28 | 29 | $definition->addMethodCall('add', [$id, new Reference($id)]); 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /src/GraphQL/Context.php: -------------------------------------------------------------------------------- 1 | resolvers[$id] = $resolver; 17 | } 18 | 19 | public function get($id): Resolver 20 | { 21 | return $this->resolvers[$id]; 22 | } 23 | 24 | public function has($id): bool 25 | { 26 | return isset($this->resolvers[$id]); 27 | } 28 | 29 | public function resolve($id, $rootValue, $args, $context): array 30 | { 31 | if (!$this->has($id)) { 32 | throw new InvalidArgumentException(sprintf('Resolver [%s] not found', $id)); 33 | } 34 | 35 | return $this->get($id)->resolve($rootValue, $args, $context); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /src/GraphQL/Resolver.php: -------------------------------------------------------------------------------- 1 | subscriberCreate->handler($input); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/GraphQL/Resolver/Mutation/Subscriber/SubscriberUpdateResolver.php: -------------------------------------------------------------------------------- 1 | subscriberUpdate->handler($args['id'], $input); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/GraphQL/Resolver/Query/HealthCheckResolver.php: -------------------------------------------------------------------------------- 1 | 'Ok', 16 | 'time' => time(), 17 | ]; 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/GraphQL/Resolver/Query/Subscriber/SubscriberListResolver.php: -------------------------------------------------------------------------------- 1 | $args['input']['page'] ?? 1, 27 | 'limit' => $args['input']['limit'] ?? 10, 28 | ]); 29 | 30 | $cacheResult = $this->cacheService->get(serialize($input)); 31 | if ($cacheResult) { 32 | return json_decode($cacheResult, true); 33 | } 34 | 35 | $result = (array) $this->subscriberList->handler($input); 36 | $this->cacheService->set(serialize($input), json_encode($result)); 37 | 38 | return $result; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /src/GraphQL/Resolver/Query/Subscriber/SubscriberRetrieveResolver.php: -------------------------------------------------------------------------------- 1 | subscriberRepository->getById($args['id']); 23 | 24 | return (array) $this->subscriberFullOutputMapper->map($subscriber); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/GraphQL/RootValue.php: -------------------------------------------------------------------------------- 1 | graphQLResolverContainer = $graphQLResolverContainer; 21 | } 22 | 23 | public function getRootValue(): array 24 | { 25 | return [ 26 | 'healthcheck' => function ($rootValue, $args, Context $context): array { 27 | return $this->graphQLResolverContainer->resolve(HealthCheckResolver::class, $rootValue, $args, $context); 28 | }, 29 | 'subscriberRetrieve' => function ($rootValue, $args, Context $context): array { 30 | return $this->graphQLResolverContainer->resolve(SubscriberRetrieveResolver::class, $rootValue, $args, $context); 31 | }, 32 | 'subscriberList' => function ($rootValue, $args, Context $context): array { 33 | return $this->graphQLResolverContainer->resolve(SubscriberListResolver::class, $rootValue, $args, $context); 34 | }, 35 | 'subscriberCreate' => function ($rootValue, $args, Context $context): array { 36 | return $this->graphQLResolverContainer->resolve(SubscriberCreateResolver::class, $rootValue, $args, $context); 37 | }, 38 | 'subscriberUpdate' => function ($rootValue, $args, Context $context): array { 39 | return $this->graphQLResolverContainer->resolve(SubscriberUpdateResolver::class, $rootValue, $args, $context); 40 | }, 41 | ]; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/GraphQL/schema.gql: -------------------------------------------------------------------------------- 1 | schema { 2 | query: Query 3 | mutation: Mutation 4 | } 5 | 6 | type Query { 7 | healthcheck: Healthcheck 8 | subscriberRetrieve(id: Int!): SubscriberFullOutput 9 | subscriberList(input: SubscriberListFiltersInput): SubscriberListOutput 10 | } 11 | 12 | type Mutation { 13 | subscriberCreate(input: SubscriberCreateInput!): SubscriberFullOutput 14 | subscriberUpdate(id: Int!, input: SubscriberUpdateInput!): SubscriberFullOutput 15 | } 16 | 17 | type Healthcheck { 18 | time: Int! 19 | status: String! 20 | } 21 | 22 | input SubscriberCreateInput { 23 | firstName: String! 24 | lastName: String! 25 | email: String! 26 | } 27 | 28 | input SubscriberUpdateInput { 29 | firstName: String 30 | lastName: String 31 | } 32 | 33 | input SubscriberListFiltersInput { 34 | page: Int 35 | limit: Int 36 | } 37 | 38 | type SubscriberFullOutput { 39 | id: Int! 40 | firstName: String! 41 | lastName: String! 42 | email: String! 43 | } 44 | 45 | type SubscriberPartialOutput { 46 | id: Int! 47 | firstName: String! 48 | lastName: String! 49 | } 50 | 51 | type SubscriberListOutput { 52 | items: [SubscriberPartialOutput] 53 | } -------------------------------------------------------------------------------- /src/Kernel.php: -------------------------------------------------------------------------------- 1 | addCompilerPass(new GraphQLResolversCompilerPass(), PassConfig::TYPE_OPTIMIZE); 23 | } 24 | 25 | protected function configureContainer(ContainerConfigurator $container): void 26 | { 27 | $container->import('../config/{packages}/*.yaml'); 28 | $container->import('../config/{packages}/' . $this->environment . '/*.yaml'); 29 | 30 | if (is_file(\dirname(__DIR__) . '/config/services.yaml')) { 31 | $container->import('../config/services.yaml'); 32 | $container->import('../config/{services}_' . $this->environment . '.yaml'); 33 | } else { 34 | $container->import('../config/{services}.php'); 35 | } 36 | } 37 | 38 | protected function configureRoutes(RoutingConfigurator $routes): void 39 | { 40 | $routes->import('../config/{routes}/' . $this->environment . '/*.yaml'); 41 | $routes->import('../config/{routes}/*.yaml'); 42 | 43 | if (is_file(\dirname(__DIR__) . '/config/routes.yaml')) { 44 | $routes->import('../config/routes.yaml'); 45 | } else { 46 | $routes->import('../config/{routes}.php'); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Rest/Action/GraphQLAction.php: -------------------------------------------------------------------------------- 1 | graphqlSchemaPath = $graphqlSchemaPath; 46 | $this->rootValue = $rootValue; 47 | $this->context = $context; 48 | } 49 | 50 | public function __invoke(Request $request): Response 51 | { 52 | $httpStatusCode = Response::HTTP_OK; 53 | $data = json_decode($request->getContent(), true); 54 | $schema = BuildSchema::build(file_get_contents($this->graphqlSchemaPath)); 55 | 56 | $errorFormatter = function (Error $error) { 57 | return FormattedError::createFromException($error); 58 | }; 59 | 60 | $errorHandler = function (array $errors, callable $formatter) { 61 | return array_map($formatter, $errors); 62 | }; 63 | 64 | $result = GraphQL::executeQuery( 65 | $schema, 66 | $data['query'], 67 | $this->rootValue->getRootValue(), 68 | $this->context, 69 | $data['variables'] ?? null, 70 | $data['operationName'] ?? null 71 | ); 72 | 73 | $result->setErrorFormatter($errorFormatter); 74 | $result->setErrorsHandler($errorHandler); 75 | 76 | $output = $result->toArray(); 77 | 78 | if (array_key_exists('errors', $output)) { 79 | $httpStatusCode = Response::HTTP_INTERNAL_SERVER_ERROR; 80 | } 81 | 82 | return new JsonResponse($output, $httpStatusCode); 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /src/Rest/Action/HealthCheckAction.php: -------------------------------------------------------------------------------- 1 | 'Ok', 'time' => time()]); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /src/Rest/Action/Subscriber/SubscriberCreateAction.php: -------------------------------------------------------------------------------- 1 | getContent(), true); 39 | $input = SubscriberCreateInput::createFromArray($data); 40 | $output = $this->subscriberCreate->handler($input); 41 | 42 | return new JsonResponse(json_encode($output)); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/Rest/Action/Subscriber/SubscriberListAction.php: -------------------------------------------------------------------------------- 1 | $request->query->getInt('page', 1), 36 | 'limit' => $request->query->getInt('limit', 10), 37 | ]); 38 | 39 | $output = $this->subscriberList->handler($input); 40 | 41 | return new JsonResponse(json_encode($output)); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/Rest/Action/Subscriber/SubscriberRetrieveAction.php: -------------------------------------------------------------------------------- 1 | attributes->getInt('id'); 36 | $subscriber = $this->subscriberRepository->getById($id); 37 | $output = $this->subscriberFullOutputMapper->map($subscriber); 38 | 39 | return new JsonResponse(json_encode($output)); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/Rest/Action/Subscriber/SubscriberUpdateAction.php: -------------------------------------------------------------------------------- 1 | attributes->getInt('id'); 39 | $data = json_decode($request->getContent(), true); 40 | $input = SubscriberUpdateInput::createFromArray($data); 41 | $output = $this->subscriberUpdate->handler($id, $input); 42 | 43 | return new JsonResponse(json_encode($output)); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/Rest/OpenApi.php: -------------------------------------------------------------------------------- 1 | $this->message, 17 | ], Response::HTTP_BAD_REQUEST); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /src/Shared/Exception/ResponseException.php: -------------------------------------------------------------------------------- 1 | errors; 27 | } 28 | 29 | public function getResponseException(): Response 30 | { 31 | return new JsonResponse($this->errors, Response::HTTP_BAD_REQUEST); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/Subscriber/Entity/Subscriber.php: -------------------------------------------------------------------------------- 1 | id; 31 | } 32 | 33 | public function getFirstName(): string 34 | { 35 | return $this->firstName; 36 | } 37 | 38 | public function setFirstName(string $firstName): self 39 | { 40 | $this->firstName = $firstName; 41 | 42 | return $this; 43 | } 44 | 45 | public function getLastName(): string 46 | { 47 | return $this->lastName; 48 | } 49 | 50 | public function setLastName(string $lastName): self 51 | { 52 | $this->lastName = $lastName; 53 | 54 | return $this; 55 | } 56 | 57 | public function getEmail(): string 58 | { 59 | return $this->email; 60 | } 61 | 62 | public function setEmail(string $email): self 63 | { 64 | $this->email = $email; 65 | 66 | return $this; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /src/Subscriber/Input/Mapper/SubscriberCreateInputMapper.php: -------------------------------------------------------------------------------- 1 | subscriberCreateInputValidator->validate($input); 21 | 22 | return new Subscriber( 23 | $input->firstName, 24 | $input->lastName, 25 | $input->email 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Subscriber/Input/Mapper/SubscriberUpdateInputMapper.php: -------------------------------------------------------------------------------- 1 | subscriberUpdateInputValidator->validate($input); 23 | 24 | $subscriber = $this->subscriberRepository->getById($id); 25 | $subscriber->setFirstName($input->firstName); 26 | $subscriber->setLastName($input->lastName); 27 | 28 | return $subscriber; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Subscriber/Input/SubscriberCreateInput.php: -------------------------------------------------------------------------------- 1 | firstName = $firstName; 37 | $this->lastName = $lastName; 38 | $this->email = $email; 39 | } 40 | 41 | public static function createFromArray(array $data = []): self 42 | { 43 | return new self( 44 | $data['firstName'] ?? null, 45 | $data['lastName'] ?? null, 46 | $data['email'] ?? null 47 | ); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Subscriber/Input/SubscriberListFiltersInput.php: -------------------------------------------------------------------------------- 1 | page = $page; 18 | $this->limit = $limit; 19 | } 20 | 21 | public static function createFromArray(array $query = []): self 22 | { 23 | return new self( 24 | $query['page'] ?? 1, 25 | $query['limit'] ?? 10 26 | ); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/Subscriber/Input/SubscriberUpdateInput.php: -------------------------------------------------------------------------------- 1 | firstName = $firstName; 32 | $this->lastName = $lastName; 33 | $this->email = $email; 34 | } 35 | 36 | public static function createFromArray(array $data = []): self 37 | { 38 | return new self( 39 | $data['firstName'] ?? null, 40 | $data['lastName'] ?? null, 41 | $data['email'] ?? null 42 | ); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/Subscriber/Input/Validator/SubscriberCreateInputValidator.php: -------------------------------------------------------------------------------- 1 | firstName)) { 17 | $errors['firstName'] = 'is_required'; 18 | } 19 | 20 | if (!is_string($input->lastName)) { 21 | $errors['lastName'] = 'is_required'; 22 | } 23 | 24 | if (!is_string($input->email)) { 25 | $errors['email'] = 'is_required'; 26 | } 27 | 28 | if ($errors) { 29 | throw new ValidatorException('Invalid input.', $errors); 30 | } 31 | 32 | return true; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /src/Subscriber/Input/Validator/SubscriberListFiltersInputValidator.php: -------------------------------------------------------------------------------- 1 | page) && !$input->page >= 1) { 17 | $errors['page'] = 'invalid'; 18 | } 19 | 20 | if (is_numeric($input->limit) && !$input->limit >= 1) { 21 | $errors['page'] = 'invalid'; 22 | } 23 | 24 | if ($errors) { 25 | throw new ValidatorException('Invalid input.', $errors); 26 | } 27 | 28 | return true; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Subscriber/Input/Validator/SubscriberUpdateInputValidator.php: -------------------------------------------------------------------------------- 1 | firstName)) { 17 | $errors['firstName'] = 'is_required'; 18 | } 19 | 20 | if (!is_string($input->lastName)) { 21 | $errors['lastName'] = 'is_required'; 22 | } 23 | 24 | if ($errors) { 25 | throw new ValidatorException('Invalid input.', $errors); 26 | } 27 | 28 | return true; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Subscriber/Output/Mapper/SubscriberFullOutputMapper.php: -------------------------------------------------------------------------------- 1 | id = $subscriber->getId(); 17 | $output->firstName = $subscriber->getFirstName(); 18 | $output->lastName = $subscriber->getLastName(); 19 | $output->email = $subscriber->getEmail(); 20 | 21 | return $output; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /src/Subscriber/Output/Mapper/SubscriberListOutputMapper.php: -------------------------------------------------------------------------------- 1 | items = array_map( 20 | fn ($subscriber) => $this->subscriberPartialOutputMapper->map($subscriber), 21 | $subscribers 22 | ); 23 | 24 | return $output; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/Subscriber/Output/Mapper/SubscriberPartialOutputMapper.php: -------------------------------------------------------------------------------- 1 | id = $subscriber->getId(); 17 | $output->firstName = $subscriber->getFirstName(); 18 | $output->lastName = $subscriber->getLastName(); 19 | 20 | return $output; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/Subscriber/Output/SubscriberFullOutput.php: -------------------------------------------------------------------------------- 1 | findOneBy([ 25 | 'id' => $id, 26 | ]); 27 | } 28 | 29 | public function getById(int $id): Subscriber 30 | { 31 | $subscriber = $this->findOneById($id); 32 | 33 | if (!$subscriber) { 34 | throw new DomainLogicException('Subscriber not found.'); 35 | } 36 | 37 | return $subscriber; 38 | } 39 | 40 | public function create(Subscriber $subscriber): void 41 | { 42 | try { 43 | $this->getEntityManager()->persist($subscriber); 44 | $this->getEntityManager()->flush(); 45 | } catch (Throwable $exception) { 46 | throw new DomainLogicException('Subscriber could not be created.', 0, $exception); 47 | } 48 | } 49 | 50 | public function update(Subscriber $subscriber): void 51 | { 52 | try { 53 | $this->getEntityManager()->persist($subscriber); 54 | $this->getEntityManager()->flush(); 55 | } catch (Throwable $exception) { 56 | throw new DomainLogicException('Subscriber could not be updated.', 0, $exception); 57 | } 58 | } 59 | 60 | public function list(SubscriberListFiltersInput $filters): array 61 | { 62 | return $this->createQueryBuilder('s') 63 | ->setFirstResult(--$filters->page * $filters->limit) 64 | ->setMaxResults($filters->limit) 65 | ->orderBy('s.id', 'ASC') 66 | ->getQuery() 67 | ->getResult(); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/Subscriber/SubscriberRepositoryInterface.php: -------------------------------------------------------------------------------- 1 | subscriberCreateInputMapper->map($input); 25 | $this->subscriberRepository->create($subscriber); 26 | 27 | return $this->subscriberFullOutputMapper->map($subscriber); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/Subscriber/UseCase/SubscriberList.php: -------------------------------------------------------------------------------- 1 | subscriberListFiltersInputValidator->validate($input); 25 | 26 | $subscribers = $this->subscriberRepository->list($input); 27 | 28 | return $this->subscriberListOutputMapper->map($subscribers); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/Subscriber/UseCase/SubscriberUpdate.php: -------------------------------------------------------------------------------- 1 | subscriberUpdateInputMapper->map($id, $input); 25 | $this->subscriberRepository->update($subscriber); 26 | 27 | return $this->subscriberFullOutputMapper->map($subscriber); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/ZMQ/Subscriber/SubscriberCreateHandler.php: -------------------------------------------------------------------------------- 1 | subscriberCreate->handler($input); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/ZMQ/Subscriber/SubscriberRetrieveHandler.php: -------------------------------------------------------------------------------- 1 | subscriberRepository->getById($data['id']); 27 | 28 | return $this->subscriberFullOutputMapper->map($subscriber); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/gRPC/Parser.php: -------------------------------------------------------------------------------- 1 | encode(); 25 | } elseif (method_exists($data, 'serializeToString')) { 26 | $data = $data->serializeToString(); 27 | } elseif (method_exists($data, 'serialize')) { 28 | $data = $data->serialize(); 29 | } 30 | 31 | return self::pack((string) $data); 32 | } 33 | 34 | public static function deserializeMessage($deserialize, string $value) 35 | { 36 | if (empty($value)) { 37 | return null; 38 | } 39 | $value = self::unpack($value); 40 | 41 | if (is_array($deserialize)) { 42 | [$className, $deserializeFunc] = $deserialize; 43 | /** @var \Google\Protobuf\Internal\Message $object */ 44 | $object = new $className(); 45 | if ($deserializeFunc && method_exists($object, $deserializeFunc)) { 46 | $object->{$deserializeFunc}($value); 47 | } else { 48 | $object->mergeFromString($value); 49 | } 50 | 51 | return $object; 52 | } 53 | 54 | return call_user_func($deserialize, $value); 55 | } 56 | 57 | public static function parseResponse($response, $deserialize): array 58 | { 59 | if (!$response) { 60 | return ['No response', self::GRPC_ERROR_NO_RESPONSE, $response]; 61 | } 62 | if (self::isinvalidStatus($response->statusCode)) { 63 | $message = $response->headers['grpc-message'] ?? 'Http status Error'; 64 | $code = $response->headers['grpc-status'] ?? ($response->errCode ?: $response->statusCode); 65 | 66 | return [$message, (int) $code, $response]; 67 | } 68 | $grpcStatus = (int) ($response->headers['grpc-status'] ?? 0); 69 | if (0 !== $grpcStatus) { 70 | return [$response->headers['grpc-message'] ?? 'Unknown error', $grpcStatus, $response]; 71 | } 72 | $data = $response->data; 73 | $reply = self::deserializeMessage($deserialize, $data); 74 | $status = (int) ($response->headers['grpc-status'] ?? 0 ?: 0); 75 | 76 | return [$reply, $status, $response]; 77 | } 78 | 79 | private static function isInvalidStatus(int $code) 80 | { 81 | return 0 !== $code && 200 !== $code && 400 !== $code; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/gRPC/Subscriber/Reply/SubscriberOutputReplyMapper.php: -------------------------------------------------------------------------------- 1 | setId($output->id); 16 | $reply->setFirstName($output->firstName); 17 | $reply->setLastName($output->lastName); 18 | $reply->setEmail($output->email); 19 | 20 | return $reply; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /src/gRPC/Subscriber/SubscriberCreateRPC.php: -------------------------------------------------------------------------------- 1 | getFirstName(), 25 | $request->getLastName(), 26 | $request->getEmail() 27 | ); 28 | 29 | $output = $this->subscriberCreate->handler($input); 30 | 31 | return $this->outputReplyMapper->map($output); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/gRPC/Subscriber/SubscriberRetrieveRPC.php: -------------------------------------------------------------------------------- 1 | subscriberRepository->getById($request->getId()); 25 | $output = $this->subscriberFullOutputMapper->map($subscriber); 26 | 27 | return $this->subscriberOutputReplyMapper->map($output); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /symfony.lock: -------------------------------------------------------------------------------- 1 | { 2 | "composer/package-versions-deprecated": { 3 | "version": "1.11.99.2" 4 | }, 5 | "composer/semver": { 6 | "version": "3.2.5" 7 | }, 8 | "composer/xdebug-handler": { 9 | "version": "2.0.1" 10 | }, 11 | "doctrine/annotations": { 12 | "version": "1.0", 13 | "recipe": { 14 | "repo": "github.com/symfony/recipes", 15 | "branch": "master", 16 | "version": "1.0", 17 | "ref": "a2759dd6123694c8d901d0ec80006e044c2e6457" 18 | }, 19 | "files": [ 20 | "config/routes/annotations.yaml" 21 | ] 22 | }, 23 | "doctrine/cache": { 24 | "version": "2.1.1" 25 | }, 26 | "doctrine/collections": { 27 | "version": "1.6.7" 28 | }, 29 | "doctrine/common": { 30 | "version": "3.1.2" 31 | }, 32 | "doctrine/dbal": { 33 | "version": "2.13.2" 34 | }, 35 | "doctrine/deprecations": { 36 | "version": "v0.5.3" 37 | }, 38 | "doctrine/doctrine-bundle": { 39 | "version": "2.4", 40 | "recipe": { 41 | "repo": "github.com/symfony/recipes", 42 | "branch": "master", 43 | "version": "2.4", 44 | "ref": "dda18c8830b143bc31c0e0457fb13b9029614d76" 45 | }, 46 | "files": [ 47 | "config/packages/doctrine.yaml", 48 | "config/packages/prod/doctrine.yaml", 49 | "config/packages/test/doctrine.yaml", 50 | "src/Entity/.gitignore", 51 | "src/Repository/.gitignore" 52 | ] 53 | }, 54 | "doctrine/doctrine-migrations-bundle": { 55 | "version": "3.1", 56 | "recipe": { 57 | "repo": "github.com/symfony/recipes", 58 | "branch": "master", 59 | "version": "3.1", 60 | "ref": "ee609429c9ee23e22d6fa5728211768f51ed2818" 61 | }, 62 | "files": [ 63 | "config/packages/doctrine_migrations.yaml", 64 | "migrations/.gitignore" 65 | ] 66 | }, 67 | "doctrine/event-manager": { 68 | "version": "1.1.1" 69 | }, 70 | "doctrine/inflector": { 71 | "version": "2.0.3" 72 | }, 73 | "doctrine/instantiator": { 74 | "version": "1.4.0" 75 | }, 76 | "doctrine/lexer": { 77 | "version": "1.2.1" 78 | }, 79 | "doctrine/migrations": { 80 | "version": "3.2.0" 81 | }, 82 | "doctrine/orm": { 83 | "version": "2.9.3" 84 | }, 85 | "doctrine/persistence": { 86 | "version": "2.2.1" 87 | }, 88 | "doctrine/sql-formatter": { 89 | "version": "1.1.1" 90 | }, 91 | "friendsofphp/php-cs-fixer": { 92 | "version": "3.0", 93 | "recipe": { 94 | "repo": "github.com/symfony/recipes", 95 | "branch": "master", 96 | "version": "3.0", 97 | "ref": "be2103eb4a20942e28a6dd87736669b757132435" 98 | }, 99 | "files": [ 100 | ".php-cs-fixer.dist.php" 101 | ] 102 | }, 103 | "friendsofphp/proxy-manager-lts": { 104 | "version": "v1.0.5" 105 | }, 106 | "google/protobuf": { 107 | "version": "v3.17.3" 108 | }, 109 | "grpc/grpc": { 110 | "version": "1.39.0" 111 | }, 112 | "laminas/laminas-code": { 113 | "version": "4.4.2" 114 | }, 115 | "nikic/php-parser": { 116 | "version": "v4.11.0" 117 | }, 118 | "php-cs-fixer/diff": { 119 | "version": "v2.0.2" 120 | }, 121 | "predis/predis": { 122 | "version": "v1.1.7" 123 | }, 124 | "psr/cache": { 125 | "version": "2.0.0" 126 | }, 127 | "psr/container": { 128 | "version": "1.1.1" 129 | }, 130 | "psr/event-dispatcher": { 131 | "version": "1.0.0" 132 | }, 133 | "psr/log": { 134 | "version": "1.1.4" 135 | }, 136 | "symfony/cache": { 137 | "version": "v5.3.3" 138 | }, 139 | "symfony/cache-contracts": { 140 | "version": "v2.4.0" 141 | }, 142 | "symfony/config": { 143 | "version": "v5.3.3" 144 | }, 145 | "symfony/console": { 146 | "version": "5.3", 147 | "recipe": { 148 | "repo": "github.com/symfony/recipes", 149 | "branch": "master", 150 | "version": "5.3", 151 | "ref": "da0c8be8157600ad34f10ff0c9cc91232522e047" 152 | }, 153 | "files": [ 154 | "bin/console" 155 | ] 156 | }, 157 | "symfony/dependency-injection": { 158 | "version": "v5.3.3" 159 | }, 160 | "symfony/deprecation-contracts": { 161 | "version": "v2.4.0" 162 | }, 163 | "symfony/doctrine-bridge": { 164 | "version": "v5.3.3" 165 | }, 166 | "symfony/dotenv": { 167 | "version": "v5.3.0" 168 | }, 169 | "symfony/error-handler": { 170 | "version": "v5.3.3" 171 | }, 172 | "symfony/event-dispatcher": { 173 | "version": "v5.3.0" 174 | }, 175 | "symfony/event-dispatcher-contracts": { 176 | "version": "v2.4.0" 177 | }, 178 | "symfony/filesystem": { 179 | "version": "v5.3.3" 180 | }, 181 | "symfony/finder": { 182 | "version": "v5.3.0" 183 | }, 184 | "symfony/flex": { 185 | "version": "1.0", 186 | "recipe": { 187 | "repo": "github.com/symfony/recipes", 188 | "branch": "master", 189 | "version": "1.0", 190 | "ref": "c0eeb50665f0f77226616b6038a9b06c03752d8e" 191 | }, 192 | "files": [ 193 | ".env" 194 | ] 195 | }, 196 | "symfony/framework-bundle": { 197 | "version": "5.3", 198 | "recipe": { 199 | "repo": "github.com/symfony/recipes", 200 | "branch": "master", 201 | "version": "5.3", 202 | "ref": "772b77cfb5017644547ef7f9364c54e4eb9a6c61" 203 | }, 204 | "files": [ 205 | "config/packages/cache.yaml", 206 | "config/packages/framework.yaml", 207 | "config/preload.php", 208 | "config/routes/framework.yaml", 209 | "config/services.yaml", 210 | "public/index.php", 211 | "src/Controller/.gitignore", 212 | "src/Kernel.php" 213 | ] 214 | }, 215 | "symfony/http-client-contracts": { 216 | "version": "v2.4.0" 217 | }, 218 | "symfony/http-foundation": { 219 | "version": "v5.3.3" 220 | }, 221 | "symfony/http-kernel": { 222 | "version": "v5.3.3" 223 | }, 224 | "symfony/maker-bundle": { 225 | "version": "1.0", 226 | "recipe": { 227 | "repo": "github.com/symfony/recipes", 228 | "branch": "master", 229 | "version": "1.0", 230 | "ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f" 231 | } 232 | }, 233 | "symfony/options-resolver": { 234 | "version": "v5.3.0" 235 | }, 236 | "symfony/orm-pack": { 237 | "version": "v2.1.0" 238 | }, 239 | "symfony/polyfill-intl-grapheme": { 240 | "version": "v1.23.0" 241 | }, 242 | "symfony/polyfill-intl-normalizer": { 243 | "version": "v1.23.0" 244 | }, 245 | "symfony/polyfill-mbstring": { 246 | "version": "v1.23.0" 247 | }, 248 | "symfony/polyfill-php73": { 249 | "version": "v1.23.0" 250 | }, 251 | "symfony/polyfill-php80": { 252 | "version": "v1.23.0" 253 | }, 254 | "symfony/polyfill-php81": { 255 | "version": "v1.23.0" 256 | }, 257 | "symfony/process": { 258 | "version": "v5.3.2" 259 | }, 260 | "symfony/proxy-manager-bridge": { 261 | "version": "v5.3.0" 262 | }, 263 | "symfony/routing": { 264 | "version": "5.3", 265 | "recipe": { 266 | "repo": "github.com/symfony/recipes", 267 | "branch": "master", 268 | "version": "5.3", 269 | "ref": "44633353926a0382d7dfb0530922c5c0b30fae11" 270 | }, 271 | "files": [ 272 | "config/packages/routing.yaml", 273 | "config/routes.yaml" 274 | ] 275 | }, 276 | "symfony/runtime": { 277 | "version": "v5.3.3" 278 | }, 279 | "symfony/service-contracts": { 280 | "version": "v2.4.0" 281 | }, 282 | "symfony/stopwatch": { 283 | "version": "v5.3.0" 284 | }, 285 | "symfony/string": { 286 | "version": "v5.3.3" 287 | }, 288 | "symfony/var-dumper": { 289 | "version": "v5.3.3" 290 | }, 291 | "symfony/var-exporter": { 292 | "version": "v5.3.3" 293 | }, 294 | "symfony/yaml": { 295 | "version": "v5.3.3" 296 | }, 297 | "webonyx/graphql-php": { 298 | "version": "v14.9.0" 299 | }, 300 | "zircote/swagger-php": { 301 | "version": "3.2.3" 302 | } 303 | } 304 | -------------------------------------------------------------------------------- /zmq-client.php: -------------------------------------------------------------------------------- 1 | connect('tcp://localhost:5555'); 9 | 10 | $event = new StdClass(); 11 | $event->namespace = 'Subscriber'; 12 | $event->action = 'SubscriberCreateHandler'; 13 | $event->payload = json_encode([ 14 | 'firstName' => 'Alef', 15 | 'lastName' => 'ZMQ Server', 16 | 'email' => 'alef@zmq.com', 17 | ]); 18 | 19 | $reply = json_decode($requester->send(json_encode($event))->recv()); 20 | 21 | var_dump($reply); 22 | 23 | $event = new StdClass(); 24 | $event->namespace = 'Subscriber'; 25 | $event->action = 'SubscriberRetrieveHandler'; 26 | $event->payload = json_encode(['id' => $reply->id]); 27 | 28 | var_dump(json_decode($requester->send(json_encode($event))->recv())); 29 | --------------------------------------------------------------------------------