Skip to content

It doesn't work for me  #1

@hawkefly

Description

@hawkefly

It seems that not load the config file . It always reports:
Symfony \ Component \ Workflow \ Exception \ InvalidArgumentException
Unable to find a workflow for class "App\Models\Article\Article".

And workflow:dump doesn't work:

php artisan workflow:dump straight

Exception : Workflow straight has no support for class

at /Users/liwei/PhpstormProjects/eCollect/vendor/litepie/workflow/src/Commands/WorkflowDumpCommand.php:53
49| throw new Exception("Workflow $workflowName is not configured.");
50| }
51|
52| if (false === array_search($class, $config[$workflowName]['supports'])) {

53| throw new Exception("Workflow $workflowName has no support for class $class");
54| }
55|
56| $subject = new $class;
57| $workflow = Workflow::get($subject, $workflowName);

Exception trace:

1 Litepie\Workflow\Commands\WorkflowDumpCommand::handle()
/Users/liwei/PhpstormProjects/eCollect/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29

2 call_user_func_array([])
/Users/liwei/PhpstormProjects/eCollect/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:29

Please use the argument -v to see more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions