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

Error on "composer require cboden/ratchet" #5

Closed
hambern opened this issue Mar 7, 2018 · 4 comments
Closed

Error on "composer require cboden/ratchet" #5

hambern opened this issue Mar 7, 2018 · 4 comments
Assignees
Labels

Comments

@hambern
Copy link

hambern commented Mar 7, 2018

I'm trying out your plugin on Homestead but I'm getting stuck already at composer require cboden/ratchet. The result I get is:

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package cboden/ratchet ^0.3.5 is satisfiable by cboden/ratchet[v0.3.5, v0.3.6] but these conflict with your requirements or minimum-stability.

And I don't know what to do. If I go to my plugin folder, initiate composer and run composer require cboden/ratchet is seems to work. But not when I try to add it to the October CMS composer file. How do I solve this?

@hambern hambern changed the title Can't run php require cboden/ratchet Can't run composer require cboden/ratchet Mar 7, 2018
@hambern hambern changed the title Can't run composer require cboden/ratchet Error on "composer require cboden/ratchet" Mar 7, 2018
@leocavalcante
Copy link
Owner

Hi @hambern
Don't worry, you don't need to explicit require the dependency anymore.
October will already handle plugin dependencies.
Cheers.

@hambern
Copy link
Author

hambern commented Mar 9, 2018

Thank you. Saw that now :) The next problem is that I get the following error message when i run php artisan websockets:run:

Method LeoCavalcante\WebSockets\Console\RunCommand::handle() does not exist

Seems like it wants a handle-method that doesn't exist.

@hambern
Copy link
Author

hambern commented Mar 9, 2018

It seems to work if I add:

public function handle()
    {
        $this->fire();
    }

to LeoCavalcante\WebSockets\Console\RunCommand

@leocavalcante leocavalcante self-assigned this Mar 9, 2018
@leocavalcante
Copy link
Owner

Thanks for reporting, just updated to the new interface. Also, I could run a simple chat here, everything is working, but on any doubts don't mind to tell. Cheers.

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

No branches or pull requests

2 participants