-
Notifications
You must be signed in to change notification settings - Fork 20
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
Dependency Injection with Laravel #5
Comments
It seems Laravel is resolving |
Well I've followed the tutorial here: http://www.mackhankins.com/blog/laravel/recent-flickr-photos-with-flickr-api-and-laravel and it says to put the following in the app/config/app.php file 'aliases' => array( |
Yeah but that's if you're going to use the Flickering facade directly, if you're going to use the class directly by injection, you don't need it. |
So I've tried removing the alias and what I'm getting now is
my code is class PhotographyController extends BaseController {
public function __construct(Flickering\Flickering $flickering)
{
$this->flickering = $flickering;
$this->flickering->handshake(Config::get('flickr.app_key'), Config::get('flickr.api_secret'));
}
} |
Can you show me the full code of the controller ? |
I pasted it here: http://paste.laravel.com/ZHY |
I have a detailed my issue here: http://forums.laravel.io/viewtopic.php?pid=58597#p58597
The text was updated successfully, but these errors were encountered: