-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Cannot Access some $App components inside ServiceProvider #25
Comments
Use the "boot" method instead of register. On Jan 13, 2013, at 8:27 AM, Raf [email protected] wrote:
|
Thanks, this works inside the boot method. |
I have created a basic workbench package and I am trying to inject Auth class instance to the main class of the package. It seems some of the components like Auth, Log, are not available inside the register method when using $this->app['auth'] or $this->app['log'].
It seems they are not loaded when the register method is called on service provider of workbench package.
I am getting the following errors
ReflectionException: Class auth does not exist
ReflectionException: Class log does not exist
This is the Service Provider Class I am using
The text was updated successfully, but these errors were encountered: