Commit 0026f821 authored by Адлан Шамавов's avatar Адлан Шамавов
Browse files

GRPC + Tests

parent 0ab53417
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -222,3 +222,8 @@ fabric.properties
###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###

###> symfony/phpunit-bridge ###
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

app/.rr.dev.yaml

0 → 100644
+22 −0
Original line number Diff line number Diff line
version: "3"

server:
  command: "php public/index.php"
  env:
    - APP_RUNTIME: Baldinof\RoadRunnerBundle\Runtime\Runtime

grpc:
  listen: "tcp://0.0.0.0:9001"
  proto:
    - "proto/post.proto"

logs:
  mode: development
  channels:
    http:
      level: debug # Log all http requests, set to info to disable
    server:
      level: info # Everything written to worker stderr is logged
      mode: raw
    metrics:
      level: debug

app/.rr.yaml

0 → 100644
+31 −0
Original line number Diff line number Diff line
version: "3"

server:
  command: "php public/index.php"
  env:
    - APP_RUNTIME: Baldinof\RoadRunnerBundle\Runtime\Runtime

grpc:
  listen: "tcp://0.0.0.0:9001"
  proto:
    - "proto/post.proto"

logs:
  mode: production
  channels:
    http:
      level: debug # Log all http requests, set to info to disable
    server:
      level: info # Everything written to worker stderr is logged
      mode: raw
    metrics:
      level: error

# Uncomment to use metrics integration
# rpc:
#   listen: tcp://127.0.0.1:6001

# Uncomment to use metrics integration
# metrics:
#   # prometheus client address (path /metrics added automatically)
#   address: "0.0.0.0:9180"
+9 −1
Original line number Diff line number Diff line
@@ -12,6 +12,8 @@
        "doctrine/doctrine-bundle": "^2.13",
        "doctrine/doctrine-migrations-bundle": "^3.3",
        "doctrine/orm": "^3.2",
        "grpc/grpc": "^1.57",
        "spiral/roadrunner-grpc": "^3.4",
        "symfony/console": "7.1.*",
        "symfony/dotenv": "7.1.*",
        "symfony/flex": "^2",
@@ -30,7 +32,9 @@
    },
    "autoload": {
        "psr-4": {
            "App\\": "src/"
            "App\\": "src/",
            "GPBMetadata\\": "generated/GPBMetadata",
            "Grpc\\": "generated/Grpc"
        }
    },
    "autoload-dev": {
@@ -75,7 +79,11 @@
        "friendsofphp/php-cs-fixer": "^3.64",
        "phpstan/phpstan": "^1.12",
        "phpunit/phpunit": "^11.4",
        "spiral/roadrunner-cli": "^2.6",
        "symfony/browser-kit": "7.1.*",
        "symfony/css-selector": "7.1.*",
        "symfony/maker-bundle": "^1.61",
        "symfony/phpunit-bridge": "^7.1",
        "symfony/var-dumper": "7.1.*"
    }
}
+1280 −70

File changed.

Preview size limit exceeded, changes collapsed.

Loading