Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to undefined method Laracasts\Commander\ValidationCommandBus::decorate() #17

Closed
ronnievisser opened this issue Jul 30, 2014 · 2 comments

Comments

@ronnievisser
Copy link

I have created a so called decorator and passed it to the execute method like so

$this->execute( ImportPlayerCommand::class, $input, [
                'ImportPlayerPositionConverter'
            ] );

the decorator isn't doing anything yet

use Laracasts\Commander\CommandBus;

class ImportPlayerPositionConverter implements CommandBus {

    public function execute( $command ) {
       die('dddddd');
    }

}

the error thrown is: Call to undefined method Laracasts\Commander\ValidationCommandBus::decorate()

regards,
Ronnie

@laracasts
Copy link
Collaborator

Can you composer update to at least 1.3.8 of this package and try again? Thx! That should fix it.

@ronnievisser
Copy link
Author

After updating is get this error. Code is still the same as above, class is inthe same namespace as the command and handler classes

Class ImportPlayerPositionConverter does not exist

edit: Nevermind, forgot to put the full namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant