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

Integration With Lumen #101

Open
appsdev85 opened this issue Feb 21, 2019 · 5 comments
Open

Integration With Lumen #101

appsdev85 opened this issue Feb 21, 2019 · 5 comments

Comments

@appsdev85
Copy link

appsdev85 commented Feb 21, 2019

Hi,

I tried to add your library to my lumen project, so i registered the provider and alias in the bootstrap/app.php

$app->register(Berkayk\OneSignal\OneSignalServiceProvider::class);

class_alias(Berkayk\OneSignal\OneSignalFacade::class,'OneSignal');

but i'm getting the following error,

Call to undefined function Berkayk\OneSignal\config_path() in OneSignalServiceProvider.php line 18

of curse cause lumen don't have this function, although you add this code for lumen i think in the OneSignalServiceProvider.php

if ( class_exists('Laravel\Lumen\Application') ) {
            $this->app->configure('onesignal');
        } 

Any help will be much appreciated.

@berkayk
Copy link
Owner

berkayk commented Aug 18, 2019

This must be fixed with the latest release.

@ThaDaVos
Copy link

Why is it still in the source? Or are you talking about Lumen 6.*?

@canerd7u
Copy link

@HWSTS https://gist.github.com/mabasic/21d13eab12462e596120 add helper class in config_path function.

@rvkvino
Copy link

rvkvino commented Jun 22, 2020

Hello I used OneSignal::sendNotificationToAll() but it showing Class 'OneSignal' not found error showing.

@suijt
Copy link

suijt commented Dec 7, 2022

@HWSTS https://gist.github.com/mabasic/21d13eab12462e596120 add helper class in config_path function.

this solved the issue

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

6 participants