Skip to content
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

Update check system #1189

Merged
merged 4 commits into from
Dec 1, 2015
Merged

Update check system #1189

merged 4 commits into from
Dec 1, 2015

Conversation

jbrooksuk
Copy link
Member

No description provided.

@jbrooksuk jbrooksuk changed the title Update system Update check system Nov 28, 2015
@jbrooksuk jbrooksuk added this to the V2.1.0 milestone Nov 28, 2015
@jbrooksuk
Copy link
Member Author

Ping @cachethq/owners

@joecohens
Copy link
Contributor

Very nice James! 😍

*
* @return \Illuminate\Http\JsonResponse
*/
public function checkVersion()
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use method injection here checkVersion(Release $release) instead :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll update to use this.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or, just app(Release::class)->.... That would be just fine too. I think we do that in StyleCI now eveywhere rather than method injection.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why we where not injecting? I forgot lol

Copy link
Member Author

Choose a reason for hiding this comment

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

Overhead I presume?

Copy link
Contributor

Choose a reason for hiding this comment

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

Because there's less code to write by not being parsed to inject. ;P

Copy link
Contributor

Choose a reason for hiding this comment

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

Adding phpdoc is a ball ache, lol.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, for performance reasons, we can resolve as late as possible, so we might bail out before we need to resolve an object.

Copy link
Member Author

Choose a reason for hiding this comment

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

I was only complaining about phpdoc like 2 days a go ;)

@jbrooksuk
Copy link
Member Author

Thanks Joe!

/**
* Cache instance.
*
* @var \Illuminate\Cache\CacheManager
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't inject a cache manager. Inject the cache repository contract.

@jbrooksuk
Copy link
Member Author

We good to merge this then? :)

joecohens added a commit that referenced this pull request Dec 1, 2015
@joecohens joecohens merged commit f3fec2c into master Dec 1, 2015
@joecohens joecohens deleted the update-system branch December 1, 2015 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants