php-pm/php-pm-httpkernel

laravel5.6 error?

Closed this issue · 8 comments

dnna commented

Are you running it via docker? Also could you post the contents of your composer.json?

andig commented

I love screenshots instead of error descriptions. Did you actually install the httpkernel package?

@andig

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": "^7.1.3",
        "fideloper/proxy": "^4.0",
        "laravel/framework": "5.6.*",
        "laravel/tinker": "^1.0",
        "php-pm/httpkernel-adapter": "1.0.4",
        "php-pm/php-pm": "1.0.4"
    },
    "require-dev": {
        "filp/whoops": "^2.0",
        "fzaninotto/faker": "^1.4",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^2.0",
        "phpunit/phpunit": "^7.0"
    },
    "autoload": {
        "classmap": [
            "database/seeds",
            "database/factories"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "extra": {
        "laravel": {
            "dont-discover": [
            ]
        }
    },
    "scripts": {
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate"
        ],
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover"
        ]
    },
    "config": {
        "preferred-install": "dist",
        "sort-packages": true,
        "optimize-autoloader": true
    },
    "minimum-stability": "dev",
    "prefer-stable": true
}

not docker.
php7.2.7 ubuntu16.04

dnna commented

How are you running it? Could you post the command and what directory you are running it from?

@dnna laravel root dir (artisan dir)

ppm start --bootstarp=laravel --debug=1 --workers=2

the system is wsl

dnna commented

Well the error indicates it cannot find PHPPM\Bridges\HttpKernel which in terms of the filesystem should be located in vendor/php-pm/httpkernel-adapter/Bridges/HttpKernel.php

Can you check if the related files exist? If not its probably an installation problem.
Also can you try running ppm with vendor/bin/ppm start --bootstarp=laravel --debug=1 --workers=2 and seeing if the same error appears?

andig commented
—bootstarp ?

I know what's going on. use the global command(ppm) is error, use vendor/bin/ppm , it can run. @dnna