jason-guru / laravel-make-repository

A simple package for adding make:repository command to Laravel 5 and above
Other
57 stars 32 forks source link

Composer 2: does not comply with psr-4 autoloading standard. #5

Open fraq opened 3 years ago

fraq commented 3 years ago

Hi! I've got some problem:


mac$ composer update

...
Generating optimized autoload files
Class JasonGuru\LaravelMakeRepository\Exceptions\GeneralException located in ./vendor/jason-guru/laravel-make-repository/src/exceptions/GeneralException.php does not comply with psr-4 autoloading standard. Skipping.
Class JasonGuru\LaravelMakeRepository\Repository\BaseRepository located in ./vendor/jason-guru/laravel-make-repository/src/repository/BaseRepository.php does not comply with psr-4 autoloading standard. Skipping.
Class JasonGuru\LaravelMakeRepository\Repository\RepositoryContract located in ./vendor/jason-guru/laravel-make-repository/src/repository/RepositoryContract.php does not comply with psr-4 autoloading standard. Skipping.
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
...

Details

mac$ ddev composer | grep Composer
Composer version 2.0.11 2021-02-24 14:57:23

composer.json


{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.2",
        "butschster/meta-tags": "^1.7",
        "davejamesmiller/laravel-breadcrumbs": "5.x",
        "fideloper/proxy": "^4.0",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/framework": "^6.2",
        "laravel/tinker": "^2.0",
        "maatwebsite/excel": "^3.1",
        "tcg/voyager": "^1.4"
    },
    "require-dev": {
        "barryvdh/laravel-debugbar": "^3.3",
        "barryvdh/laravel-ide-helper": "^2.7",
        "facade/ignition": "^1.4",
        "fzaninotto/faker": "^1.9.1",
        "jason-guru/laravel-make-repository": "^0.0.2",
        "mockery/mockery": "^1.0",
        "nunomaduro/collision": "^3.0",
        "phpunit/phpunit": "^8.0"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "files": [
            "app/helpers.php"
        ],
        "psr-4": {
            "App\\": "app/"
        },
        "classmap": [
            "database/seeds",
            "database/factories"
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "repositories": {
        "hooks": {
            "type": "composer",
            "url": "https://larapack.io"
        }
    }
}
fathialamre commented 3 years ago

Any updates,