Skip to content

Target [RoachPHP\Scheduling\RequestSchedulerInterface] is not instantiable while building [RoachPHP\Core\Engine]. #5

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

Closed
mohamedsabil83 opened this issue Jan 17, 2022 · 5 comments

Comments

@mohamedsabil83
Copy link

I just trying this package to start using it in my new project.

When use Roach::startSpider(DataSpider::class), it returns the error mentioned in the title.

@ksassnowski
Copy link
Contributor

ksassnowski commented Jan 17, 2022

I’m pretty sure it’s because you forgot to publish the config. Try running php artisan vendor:publish --provider='RoachPHP\Laravel\RoachServiceProvider' and try again.

https://roach-php.dev/docs/laravel#installing-the-laravel-adapter

There’s something wrong with the way the default config gets merged if the user didn’t publish the config.

@mohamedsabil83
Copy link
Author

Yes, that's the problem. In docs, the sound looks like publishing the config is optional.

Is it able to filter using class name or just html tags?
Also, is there a discord or similar for roach to discuss?

@mohamedsabil83
Copy link
Author

Is it able to filter using class name or just html tags?

Yes, it is.

Also, is there a discord or similar for roach to discuss?

if there, please mention me. I'll close it now

@zepfietje
Copy link

I also ran into this.
Like @mohamedsabil83 said, from the docs it looks like publishing the config is optional.

@ksassnowski
Copy link
Contributor

FYI, this problem has been fixed in the 0.3.1 release. Publishing the config should now be truly optional.

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

3 participants