Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Created a provider to inject the session object into Elogram's container #25

Closed
wants to merge 3 commits into from

Conversation

hassankhan
Copy link

No description provided.

@vinkla
Copy link
Owner

vinkla commented Mar 19, 2016

Thanks, I'll take a look in this as soon as I've time to spare.

$container = $this->getContainer();

$container->share(SessionStore::class, function () use ($config) {
$app = Application::getInstance();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that isn't correct

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no reason to assume someone is actually using laravel, so they might not have facades booted, or even have an application class

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a package to bridge Laravel with my package, why wouldn't you assume they're using Laravel?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is still incorrect

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a package to bridge Laravel with my package, why wouldn't you assume they're using Laravel?

Why should you assume that? It's a bridge package to anyone using laravel COMPONENTS. This could include the lumen framework. This package DOES NOT depend on laravel/framework.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Laravel Instagram is an Instagram bridge for Laravel and Lumen.

Didn't see "components" anywhere. If you're using plain Laravel components, why even bother using this package? Why not use the Instagram one directly? If you're using Laravel/Lumen, then use this? You do make a valid point about Lumen support, though.

@jufy
Copy link

jufy commented May 5, 2016

Please merge this

@poci-hu
Copy link

poci-hu commented May 6, 2016

This repo is just useless until this is merged, isn't it?

@vinkla
Copy link
Owner

vinkla commented May 7, 2016

I'll take a look at this soon.

@vinkla vinkla closed this May 7, 2016
@vinkla vinkla reopened this May 7, 2016
@wutmikee
Copy link

Is this fixed and merged yet? Need this library.

@vinkla
Copy link
Owner

vinkla commented Jun 30, 2016

Green = not merged
Purple = merged
Red = closed

@GrahamCampbell
Copy link
Contributor

That change I pointed out still needs fixing.

@vinkla
Copy link
Owner

vinkla commented Jul 6, 2016

Closing this in favour of larabros/elogram#40

@vinkla vinkla closed this Jul 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants