Waavi/translation

Laravel 5.5 ReflectionException: php artisan translator:flush

DieselPower200 opened this issue · 5 comments

I get next exception:

[ReflectionException]                                                         
Method Waavi\Translation\Commands\CacheFlushCommand::handle() does not exist 

Could you suggest something?

composer.lock:
{
            "name": "waavi/translation",
            "version": "2.3.1",
            "source": {
                "type": "git",
                "url": "https://github.com/Waavi/translation.git",
                "reference": "c89d1023cef62f26c2cbc431511fd8c08af69617"
            },
            "dist": {
                "type": "zip",
                "url": "https://api.github.com/repos/Waavi/translation/zipball/c89d1023cef62f26c2cbc431511fd8c08af69617",
                "reference": "c89d1023cef62f26c2cbc431511fd8c08af69617",
                "shasum": ""
            },
            "require": {
                "doctrine/dbal": "^2.5",
                "laravel/framework": "~5.5"
            },
            "require-dev": {
                "mockery/mockery": "^0.9.9",
                "orchestra/testbench": "~3.5",
                "phpunit/phpunit": "~6.0"
            },
            "type": "library",
            "autoload": {
                "psr-4": {
                    "Waavi\\Translation\\": "src/"
                }
            },
            "notification-url": "https://packagist.org/downloads/",
            "license": [
                "MIT"
            ],
            "authors": [
                {
                    "name": "Waavi",
                    "email": "info@waavi.com",
                    "homepage": "http://waavi.com"
                }
            ],
            "description": "A Translation package for Laravel 5 with database and cache support",
            "keywords": [
                "laravel",
                "laravel-translator",
                "localization",
                "translation",
                "translator",
                "waavi"
            ],
            "time": "2017-09-01T15:24:21+00:00"
        }

Maybe it is important to note: PHP 7.1

I renamed "fire" to "handle" in the CacheFlushCommand and it looks fixed

The same with: Waavi\Translation\Commands\FileLoaderCommand

Yes we need a 2.3.1 fix for the above, since artisan in L5.5.* removed the support of fire() instead to use handle() now.

2.3.3 fixes this issue.