faithgen /
messages
| 1 | <?php |
||||||
| 2 | |||||||
| 3 | namespace FaithGen\Messages\Providers; |
||||||
| 4 | |||||||
| 5 | use FaithGen\Messages\MessageService; |
||||||
| 6 | use FaithGen\Messages\Models\Message; |
||||||
| 7 | use FaithGen\Messages\Observers\MessageObserver; |
||||||
| 8 | use FaithGen\SDK\Traits\ConfigTrait; |
||||||
| 9 | use Illuminate\Support\ServiceProvider; |
||||||
| 10 | |||||||
| 11 | class MessagesServiceProvider extends ServiceProvider |
||||||
| 12 | { |
||||||
| 13 | use ConfigTrait; |
||||||
| 14 | |||||||
| 15 | /** |
||||||
| 16 | * Bootstrap services. |
||||||
| 17 | * |
||||||
| 18 | * @return void |
||||||
| 19 | */ |
||||||
| 20 | public function boot() |
||||||
| 21 | { |
||||||
| 22 | $this->registerRoutes(__DIR__.'/../../routes/messages.php', __DIR__.'/../../routes/source.php'); |
||||||
| 23 | |||||||
| 24 | $this->setUpSourceFiles(function () { |
||||||
| 25 | $this->loadMigrationsFrom(__DIR__.'/../../database/migrations'); |
||||||
|
0 ignored issues
–
show
|
|||||||
| 26 | |||||||
| 27 | $this->publishes([ |
||||||
|
0 ignored issues
–
show
The method
publishes() does not exist on FaithGen\Messages\Provid...MessagesServiceProvider.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 28 | __DIR__.'/../../database/migrations/' => database_path('migrations'), |
||||||
| 29 | ], 'faithgen-messages-migrations'); |
||||||
| 30 | }); |
||||||
| 31 | |||||||
| 32 | $this->publishes([ |
||||||
| 33 | __DIR__.'/../../config/faithgen-messages.php' => config_path('faithgen-messages.php'), |
||||||
| 34 | ], 'faithgen-messages-config'); |
||||||
| 35 | |||||||
| 36 | Message::observe(MessageObserver::class); |
||||||
| 37 | } |
||||||
| 38 | |||||||
| 39 | /** |
||||||
| 40 | * Register services. |
||||||
| 41 | * |
||||||
| 42 | * @return void |
||||||
| 43 | */ |
||||||
| 44 | public function register() |
||||||
| 45 | { |
||||||
| 46 | $this->mergeConfigFrom(__DIR__.'/../../config/faithgen-messages.php', 'faithgen-messages'); |
||||||
|
0 ignored issues
–
show
The method
mergeConfigFrom() does not exist on FaithGen\Messages\Provid...MessagesServiceProvider.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 47 | $this->app->singleton(MessageService::class); |
||||||
|
0 ignored issues
–
show
The method
singleton() does not exist on Tests\Laravel\App.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces. This is most likely a typographical error or the method has been renamed. Loading history...
|
|||||||
| 48 | } |
||||||
| 49 | |||||||
| 50 | /** |
||||||
| 51 | * @return array |
||||||
| 52 | */ |
||||||
| 53 | public function routeConfiguration(): array |
||||||
| 54 | { |
||||||
| 55 | return [ |
||||||
| 56 | 'prefix' => config('faithgen-messages.prefix'), |
||||||
| 57 | 'middleware' => config('faithgen-messages.middlewares'), |
||||||
| 58 | ]; |
||||||
| 59 | } |
||||||
| 60 | } |
||||||
| 61 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.