This repository was archived by the owner on Apr 23, 2025. It is now read-only.
Improve ServiceProvider - #182
Merged
Merged
Conversation
Contributor
Author
|
BTW: Tests are all passing. It only fails on hhvm due to travis: |
Owner
|
Thanks so much @arubacao! :) |
pouu69
reviewed
Sep 6, 2017
| if ($this->isLumen()) { | ||
| $app->configure('laravel-facebook-sdk'); | ||
| } | ||
| $this->mergeConfigFrom(__DIR__.'/../config/laravel-facebook-sdk.php', 'laravel-facebook-sdk'); |
There was a problem hiding this comment.
This code causes an error. So I asked for a new solution.
Contributor
Author
There was a problem hiding this comment.
In which context is this causing errors? Could you give more information and error messages?
There was a problem hiding this comment.
PHP Fatal error: Uncaught ReflectionException: Class config does not exist in /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php:752
Stack trace:
#0 /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(752): ReflectionClass->__construct('config')
#1 /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(631): Illuminate\Container\Container->build('config')
#2 /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(586): Illuminate\Container\Container->resolve('config', Array)
#3 /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(721): Illuminate\Container\Container->make('config', Array)
#4 /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php(1195): Illuminate\Foundation\Application->make('config')
#5 /Users/tubloo/Site/lar in /Users/tubloo/Site/laravel/tyle-laravel/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 752
i changed like this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cheers,
Chris