Skip to content

Invalid Provider Exception #16

@leo-combes

Description

@leo-combes

Hello!
First of all.. I'm are a composer noob, so I'm not much familiarized with him.

I are trying to test the "ChatProvider" example in front page, with no luck...

I do a folder "minion" and inside put a composer.json file with "vinelab/minion": "*" then I ran "composer update" and everything installs.
I create "start.php" and "ChatProvider.php" as tutorial says and I put in your place:

├── composer.json
├── composer.lock
├── composer.phar
├── src
│   └── ChatProvider.php
├── start.php
└── vendor
    ├── autoload.php
    ├── bin
    ├── cboden
    ├── composer
    ├── doctrine
    ├── evenement
    ├── guzzle
    ├── illuminate
    ├── leo
    ├── nesbot
    ├── paragonie
    ├── psr
    ├── ratchet
    ├── react
    ├── symfony
    ├── vinelab
    └── voryx

I tried start with php -f start.php and I get a error:

PHP Fatal error: Uncaught exception 'Vinelab\Minion\InvalidProviderException' with message 'Provider ChatProvider must be an instance of \Vinelab\Minion\Provider' in /var/www/minion/vendor/vinelab/minion/src/Vinelab/Minion/Minion.php:43

What may be missing?
I'm not are using Laravel or other stuff...
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions