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

(change): concrete to abstract implementation #565

Merged
merged 1 commit into from
Sep 30, 2021
Merged

(change): concrete to abstract implementation #565

merged 1 commit into from
Sep 30, 2021

Conversation

edwinsiebel
Copy link
Contributor

@edwinsiebel edwinsiebel commented Jun 2, 2021

You are using an concreate implementation of Illuminate\Foundation\Application, while using the contract/interface Illuminate\Contracts\Foundation\Application allows for less rigid fixation, while still have the desired usage.

We are using a fork of Application with the interface; in our case, Corcel::isLaravel() returns false because we're not using Illuminate\Foundation\Application. However, with this PR, Corcel still works, and everybody who implements the Application interface still can enjoy using Corcel.

Should also be propagated to the older version of Corcel of course. If this will be merged, I can also make PR's for older version of Corcel.

@jgrossi jgrossi merged commit cf968e8 into corcel:5.0 Sep 30, 2021
@edwinsiebel edwinsiebel deleted the feat/use-application-contract branch September 30, 2021 19:58
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.

None yet

2 participants